@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttribute() == null) ? 0 : getAttribute().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRequiresRecreation() == null) ? 0 : getRequiresRecreation().hashCode()); return hashCode; }
/** * <p> * 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 attribute * 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 ResourceTargetDefinition withAttribute(String attribute) { setAttribute(attribute); return this; }
/** * <p> * If the <code>Attribute</code> value is <code>Properties</code>, the name of the property. For all other * attributes, the value is null. * </p> * * @param name * If the <code>Attribute</code> value is <code>Properties</code>, the name of the property. For all other * attributes, the value is null. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceTargetDefinition withName(String name) { setName(name); return this; }
public ResourceTargetDefinition unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceTargetDefinition resourceTargetDefinition = new ResourceTargetDefinition(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return resourceTargetDefinition; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Attribute", targetDepth)) { resourceTargetDefinition.setAttribute(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Name", targetDepth)) { resourceTargetDefinition.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RequiresRecreation", targetDepth)) { resourceTargetDefinition.setRequiresRecreation(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return resourceTargetDefinition; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode()); hashCode = prime * hashCode + ((getChangeSource() == null) ? 0 : getChangeSource().hashCode()); hashCode = prime * hashCode + ((getCausingEntity() == null) ? 0 : getCausingEntity().hashCode()); return hashCode; }
/** * <p> * 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 attribute * 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>. * @see ResourceAttribute */ public void setAttribute(ResourceAttribute attribute) { withAttribute(attribute); }
/** * <p> * If the <code>Attribute</code> value is <code>Properties</code>, indicates whether a change to this property * causes the resource to be recreated. The value can be <code>Never</code>, <code>Always</code>, or * <code>Conditionally</code>. To determine the conditions for a <code>Conditionally</code> recreation, see the * update behavior for that <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html" * >property</a> in the AWS CloudFormation User Guide. * </p> * * @param requiresRecreation * If the <code>Attribute</code> value is <code>Properties</code>, indicates whether a change to this * property causes the resource to be recreated. The value can be <code>Never</code>, <code>Always</code>, or * <code>Conditionally</code>. To determine the conditions for a <code>Conditionally</code> recreation, see * the update behavior for that <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html" * >property</a> in the AWS CloudFormation User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see RequiresRecreation */ public ResourceTargetDefinition withRequiresRecreation(String requiresRecreation) { setRequiresRecreation(requiresRecreation); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceChangeDetail == false) return false; ResourceChangeDetail other = (ResourceChangeDetail) obj; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getEvaluation() == null ^ this.getEvaluation() == null) return false; if (other.getEvaluation() != null && other.getEvaluation().equals(this.getEvaluation()) == false) return false; if (other.getChangeSource() == null ^ this.getChangeSource() == null) return false; if (other.getChangeSource() != null && other.getChangeSource().equals(this.getChangeSource()) == false) return false; if (other.getCausingEntity() == null ^ this.getCausingEntity() == null) return false; if (other.getCausingEntity() != null && other.getCausingEntity().equals(this.getCausingEntity()) == false) return false; return true; }
public ResourceTargetDefinition unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceTargetDefinition resourceTargetDefinition = new ResourceTargetDefinition(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return resourceTargetDefinition; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Attribute", targetDepth)) { resourceTargetDefinition.setAttribute(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("Name", targetDepth)) { resourceTargetDefinition.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("RequiresRecreation", targetDepth)) { resourceTargetDefinition.setRequiresRecreation(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return resourceTargetDefinition; } } } }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTarget() == null) ? 0 : getTarget().hashCode()); hashCode = prime * hashCode + ((getEvaluation() == null) ? 0 : getEvaluation().hashCode()); hashCode = prime * hashCode + ((getChangeSource() == null) ? 0 : getChangeSource().hashCode()); hashCode = prime * hashCode + ((getCausingEntity() == null) ? 0 : getCausingEntity().hashCode()); return hashCode; }
/** * <p> * 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 attribute * 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>. * @see ResourceAttribute */ public void setAttribute(ResourceAttribute attribute) { withAttribute(attribute); }
/** * <p> * If the <code>Attribute</code> value is <code>Properties</code>, indicates whether a change to this property * causes the resource to be recreated. The value can be <code>Never</code>, <code>Always</code>, or * <code>Conditionally</code>. To determine the conditions for a <code>Conditionally</code> recreation, see the * update behavior for that <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html" * >property</a> in the AWS CloudFormation User Guide. * </p> * * @param requiresRecreation * If the <code>Attribute</code> value is <code>Properties</code>, indicates whether a change to this * property causes the resource to be recreated. The value can be <code>Never</code>, <code>Always</code>, or * <code>Conditionally</code>. To determine the conditions for a <code>Conditionally</code> recreation, see * the update behavior for that <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html" * >property</a> in the AWS CloudFormation User Guide. * @return Returns a reference to this object so that method calls can be chained together. * @see RequiresRecreation */ public ResourceTargetDefinition withRequiresRecreation(String requiresRecreation) { setRequiresRecreation(requiresRecreation); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceChangeDetail == false) return false; ResourceChangeDetail other = (ResourceChangeDetail) obj; if (other.getTarget() == null ^ this.getTarget() == null) return false; if (other.getTarget() != null && other.getTarget().equals(this.getTarget()) == false) return false; if (other.getEvaluation() == null ^ this.getEvaluation() == null) return false; if (other.getEvaluation() != null && other.getEvaluation().equals(this.getEvaluation()) == false) return false; if (other.getChangeSource() == null ^ this.getChangeSource() == null) return false; if (other.getChangeSource() != null && other.getChangeSource().equals(this.getChangeSource()) == false) return false; if (other.getCausingEntity() == null ^ this.getCausingEntity() == null) return false; if (other.getCausingEntity() != null && other.getCausingEntity().equals(this.getCausingEntity()) == false) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceTargetDefinition == false) return false; ResourceTargetDefinition other = (ResourceTargetDefinition) obj; if (other.getAttribute() == null ^ this.getAttribute() == null) return false; if (other.getAttribute() != null && other.getAttribute().equals(this.getAttribute()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRequiresRecreation() == null ^ this.getRequiresRecreation() == null) return false; if (other.getRequiresRecreation() != null && other.getRequiresRecreation().equals(this.getRequiresRecreation()) == false) return false; return true; }
/** * <p> * If the <code>Attribute</code> value is <code>Properties</code>, the name of the property. For all other * attributes, the value is null. * </p> * * @param name * If the <code>Attribute</code> value is <code>Properties</code>, the name of the property. For all other * attributes, the value is null. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceTargetDefinition withName(String name) { setName(name); return this; }
/** * <p> * 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 attribute * 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 ResourceTargetDefinition withAttribute(String attribute) { setAttribute(attribute); 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 (getAttribute() != null) sb.append("Attribute: ").append(getAttribute()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRequiresRecreation() != null) sb.append("RequiresRecreation: ").append(getRequiresRecreation()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAttribute() == null) ? 0 : getAttribute().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getRequiresRecreation() == null) ? 0 : getRequiresRecreation().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceTargetDefinition == false) return false; ResourceTargetDefinition other = (ResourceTargetDefinition) obj; if (other.getAttribute() == null ^ this.getAttribute() == null) return false; if (other.getAttribute() != null && other.getAttribute().equals(this.getAttribute()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getRequiresRecreation() == null ^ this.getRequiresRecreation() == null) return false; if (other.getRequiresRecreation() != null && other.getRequiresRecreation().equals(this.getRequiresRecreation()) == false) return false; return true; }
/** * 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 (getAttribute() != null) sb.append("Attribute: ").append(getAttribute()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getRequiresRecreation() != null) sb.append("RequiresRecreation: ").append(getRequiresRecreation()); sb.append("}"); return sb.toString(); }