/** * <p> * For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a * change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>. * </p> * * @param scope * For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as * a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceAttribute */ public ResourceChange withScope(ResourceAttribute... scope) { com.amazonaws.internal.SdkInternalList<String> scopeCopy = new com.amazonaws.internal.SdkInternalList<String>(scope.length); for (ResourceAttribute value : scope) { scopeCopy.add(value.toString()); } if (getScope() == null) { setScope(scopeCopy); } else { getScope().addAll(scopeCopy); } return this; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getLogicalResourceId() != null) sb.append("LogicalResourceId: ").append(getLogicalResourceId()).append(","); if (getPhysicalResourceId() != null) sb.append("PhysicalResourceId: ").append(getPhysicalResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getReplacement() != null) sb.append("Replacement: ").append(getReplacement()).append(","); if (getScope() != null) sb.append("Scope: ").append(getScope()).append(","); if (getDetails() != null) sb.append("Details: ").append(getDetails()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getLogicalResourceId() == null) ? 0 : getLogicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceId() == null) ? 0 : getPhysicalResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getReplacement() == null) ? 0 : getReplacement().hashCode()); hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode()); hashCode = prime * hashCode + ((getDetails() == null) ? 0 : getDetails().hashCode()); return hashCode; }
if (other.getReplacement() != null && other.getReplacement().equals(this.getReplacement()) == false) return false; if (other.getScope() == null ^ this.getScope() == null) return false; if (other.getScope() != null && other.getScope().equals(this.getScope()) == false) return false; if (other.getDetails() == null ^ this.getDetails() == null)
/** * <p> * For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as a * change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>. * </p> * * @param scope * For the <code>Modify</code> action, indicates which resource attribute is triggering this update, such as * a change in the resource attribute's <code>Metadata</code>, <code>Properties</code>, or <code>Tags</code>. * @return Returns a reference to this object so that method calls can be chained together. * @see ResourceAttribute */ public ResourceChange withScope(ResourceAttribute... scope) { com.amazonaws.internal.SdkInternalList<String> scopeCopy = new com.amazonaws.internal.SdkInternalList<String>(scope.length); for (ResourceAttribute value : scope) { scopeCopy.add(value.toString()); } if (getScope() == null) { setScope(scopeCopy); } else { getScope().addAll(scopeCopy); } return this; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAction() == null) ? 0 : getAction().hashCode()); hashCode = prime * hashCode + ((getLogicalResourceId() == null) ? 0 : getLogicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceId() == null) ? 0 : getPhysicalResourceId().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getReplacement() == null) ? 0 : getReplacement().hashCode()); hashCode = prime * hashCode + ((getScope() == null) ? 0 : getScope().hashCode()); hashCode = prime * hashCode + ((getDetails() == null) ? 0 : getDetails().hashCode()); return hashCode; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAction() != null) sb.append("Action: ").append(getAction()).append(","); if (getLogicalResourceId() != null) sb.append("LogicalResourceId: ").append(getLogicalResourceId()).append(","); if (getPhysicalResourceId() != null) sb.append("PhysicalResourceId: ").append(getPhysicalResourceId()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getReplacement() != null) sb.append("Replacement: ").append(getReplacement()).append(","); if (getScope() != null) sb.append("Scope: ").append(getScope()).append(","); if (getDetails() != null) sb.append("Details: ").append(getDetails()); sb.append("}"); return sb.toString(); }
if (other.getReplacement() != null && other.getReplacement().equals(this.getReplacement()) == false) return false; if (other.getScope() == null ^ this.getScope() == null) return false; if (other.getScope() != null && other.getScope().equals(this.getScope()) == false) return false; if (other.getDetails() == null ^ this.getDetails() == null)