@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> * The identity of the entity that triggered this change. This entity is a member of the group that is specified by * the <code>ChangeSource</code> field. For example, if you modified the value of the <code>KeyPairName</code> * parameter, the <code>CausingEntity</code> is the name of the parameter (<code>KeyPairName</code>). * </p> * <p> * If the <code>ChangeSource</code> value is <code>DirectModification</code>, no value is given for * <code>CausingEntity</code>. * </p> * * @param causingEntity * The identity of the entity that triggered this change. This entity is a member of the group that is * specified by the <code>ChangeSource</code> field. For example, if you modified the value of the * <code>KeyPairName</code> parameter, the <code>CausingEntity</code> is the name of the parameter ( * <code>KeyPairName</code>).</p> * <p> * If the <code>ChangeSource</code> value is <code>DirectModification</code>, no value is given for * <code>CausingEntity</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceChangeDetail withCausingEntity(String causingEntity) { setCausingEntity(causingEntity); return this; }
setChangeSource(changeSource); return this;
public ResourceChangeDetail unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceChangeDetail resourceChangeDetail = new ResourceChangeDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; resourceChangeDetail.setTarget(ResourceTargetDefinitionStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setEvaluation(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setChangeSource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setCausingEntity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A <code>ResourceTargetDefinition</code> structure that describes the field that AWS CloudFormation will change * and whether the resource will be recreated. * </p> * * @param target * A <code>ResourceTargetDefinition</code> structure that describes the field that AWS CloudFormation will * change and whether the resource will be recreated. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceChangeDetail withTarget(ResourceTargetDefinition target) { setTarget(target); return this; }
setEvaluation(evaluation); return this;
withChangeSource(changeSource);
public ResourceChangeDetail unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceChangeDetail resourceChangeDetail = new ResourceChangeDetail(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; resourceChangeDetail.setTarget(ResourceTargetDefinitionStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setEvaluation(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setChangeSource(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; resourceChangeDetail.setCausingEntity(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
/** * <p> * A <code>ResourceTargetDefinition</code> structure that describes the field that AWS CloudFormation will change * and whether the resource will be recreated. * </p> * * @param target * A <code>ResourceTargetDefinition</code> structure that describes the field that AWS CloudFormation will * change and whether the resource will be recreated. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceChangeDetail withTarget(ResourceTargetDefinition target) { setTarget(target); return this; }
setEvaluation(evaluation); 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; }
/** * <p> * The identity of the entity that triggered this change. This entity is a member of the group that is specified by * the <code>ChangeSource</code> field. For example, if you modified the value of the <code>KeyPairName</code> * parameter, the <code>CausingEntity</code> is the name of the parameter (<code>KeyPairName</code>). * </p> * <p> * If the <code>ChangeSource</code> value is <code>DirectModification</code>, no value is given for * <code>CausingEntity</code>. * </p> * * @param causingEntity * The identity of the entity that triggered this change. This entity is a member of the group that is * specified by the <code>ChangeSource</code> field. For example, if you modified the value of the * <code>KeyPairName</code> parameter, the <code>CausingEntity</code> is the name of the parameter ( * <code>KeyPairName</code>).</p> * <p> * If the <code>ChangeSource</code> value is <code>DirectModification</code>, no value is given for * <code>CausingEntity</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceChangeDetail withCausingEntity(String causingEntity) { setCausingEntity(causingEntity); return this; }
setChangeSource(changeSource); 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 (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getEvaluation() != null) sb.append("Evaluation: ").append(getEvaluation()).append(","); if (getChangeSource() != null) sb.append("ChangeSource: ").append(getChangeSource()).append(","); if (getCausingEntity() != null) sb.append("CausingEntity: ").append(getCausingEntity()); sb.append("}"); return sb.toString(); }
@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; }
@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; }
/** * 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 (getTarget() != null) sb.append("Target: ").append(getTarget()).append(","); if (getEvaluation() != null) sb.append("Evaluation: ").append(getEvaluation()).append(","); if (getChangeSource() != null) sb.append("ChangeSource: ").append(getChangeSource()).append(","); if (getCausingEntity() != null) sb.append("CausingEntity: ").append(getCausingEntity()); sb.append("}"); return sb.toString(); }