@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetId() == null) ? 0 : getStackSetId().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getAccount() == null) ? 0 : getAccount().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getParameterOverrides() == null) ? 0 : getParameterOverrides().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackInstance() == null) ? 0 : getStackInstance().hashCode()); return hashCode; }
public StackInstance unmarshall(StaxUnmarshallerContext context) throws Exception { StackInstance stackInstance = new StackInstance(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackInstance.setStackSetId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setRegion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setAccount(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStackId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.withParameterOverrides(new ArrayList<Parameter>()); continue; stackInstance.withParameterOverrides(ParameterStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStatusReason(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackInstanceResult == false) return false; DescribeStackInstanceResult other = (DescribeStackInstanceResult) obj; if (other.getStackInstance() == null ^ this.getStackInstance() == null) return false; if (other.getStackInstance() != null && other.getStackInstance().equals(this.getStackInstance()) == false) return false; return true; }
public StackInstance unmarshall(StaxUnmarshallerContext context) throws Exception { StackInstance stackInstance = new StackInstance(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackInstance.setStackSetId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setRegion(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setAccount(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStackId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.withParameterOverrides(new ArrayList<Parameter>()); continue; stackInstance.withParameterOverrides(ParameterStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackInstance.setStatusReason(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackInstanceResult == false) return false; DescribeStackInstanceResult other = (DescribeStackInstanceResult) obj; if (other.getStackInstance() == null ^ this.getStackInstance() == null) return false; if (other.getStackInstance() != null && other.getStackInstance().equals(this.getStackInstance()) == false) return false; return true; }
return false; StackInstance other = (StackInstance) obj; if (other.getStackSetId() == null ^ this.getStackSetId() == null) return false; if (other.getStackSetId() != null && other.getStackSetId().equals(this.getStackSetId()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getAccount() == null ^ this.getAccount() == null) return false; if (other.getAccount() != null && other.getAccount().equals(this.getAccount()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getParameterOverrides() == null ^ this.getParameterOverrides() == null) return false; if (other.getParameterOverrides() != null && other.getParameterOverrides().equals(this.getParameterOverrides()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackInstance() == null) ? 0 : getStackInstance().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 (getStackSetId() != null) sb.append("StackSetId: ").append(getStackSetId()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getAccount() != null) sb.append("Account: ").append(getAccount()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getParameterOverrides() != null) sb.append("ParameterOverrides: ").append(getParameterOverrides()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetId() == null) ? 0 : getStackSetId().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getAccount() == null) ? 0 : getAccount().hashCode()); hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getParameterOverrides() == null) ? 0 : getParameterOverrides().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusReason() == null) ? 0 : getStatusReason().hashCode()); return hashCode; }
return false; StackInstance other = (StackInstance) obj; if (other.getStackSetId() == null ^ this.getStackSetId() == null) return false; if (other.getStackSetId() != null && other.getStackSetId().equals(this.getStackSetId()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getAccount() == null ^ this.getAccount() == null) return false; if (other.getAccount() != null && other.getAccount().equals(this.getAccount()) == false) return false; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getParameterOverrides() == null ^ this.getParameterOverrides() == null) return false; if (other.getParameterOverrides() != null && other.getParameterOverrides().equals(this.getParameterOverrides()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusReason() == null ^ this.getStatusReason() == null) return false; if (other.getStatusReason() != null && other.getStatusReason().equals(this.getStatusReason()) == false)
/** * 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 (getStackSetId() != null) sb.append("StackSetId: ").append(getStackSetId()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getAccount() != null) sb.append("Account: ").append(getAccount()).append(","); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getParameterOverrides() != null) sb.append("ParameterOverrides: ").append(getParameterOverrides()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusReason() != null) sb.append("StatusReason: ").append(getStatusReason()); sb.append("}"); return sb.toString(); }