@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getLogicalResourceId() == null) ? 0 : getLogicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceId() == null) ? 0 : getPhysicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceIdContext() == null) ? 0 : getPhysicalResourceIdContext().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getExpectedProperties() == null) ? 0 : getExpectedProperties().hashCode()); hashCode = prime * hashCode + ((getActualProperties() == null) ? 0 : getActualProperties().hashCode()); hashCode = prime * hashCode + ((getPropertyDifferences() == null) ? 0 : getPropertyDifferences().hashCode()); hashCode = prime * hashCode + ((getStackResourceDriftStatus() == null) ? 0 : getStackResourceDriftStatus().hashCode()); hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); return hashCode; }
public StackResourceDrift unmarshall(StaxUnmarshallerContext context) throws Exception { StackResourceDrift stackResourceDrift = new StackResourceDrift(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackResourceDrift.setStackId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setLogicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setPhysicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.withPhysicalResourceIdContext(new ArrayList<PhysicalResourceIdContextKeyValuePair>()); continue; stackResourceDrift.withPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePairStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setExpectedProperties(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setActualProperties(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.withPropertyDifferences(new ArrayList<PropertyDifference>());
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectStackResourceDriftResult == false) return false; DetectStackResourceDriftResult other = (DetectStackResourceDriftResult) obj; if (other.getStackResourceDrift() == null ^ this.getStackResourceDrift() == null) return false; if (other.getStackResourceDrift() != null && other.getStackResourceDrift().equals(this.getStackResourceDrift()) == false) return false; return true; }
public StackResourceDrift unmarshall(StaxUnmarshallerContext context) throws Exception { StackResourceDrift stackResourceDrift = new StackResourceDrift(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackResourceDrift.setStackId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setLogicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setPhysicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.withPhysicalResourceIdContext(new ArrayList<PhysicalResourceIdContextKeyValuePair>()); continue; stackResourceDrift.withPhysicalResourceIdContext(PhysicalResourceIdContextKeyValuePairStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setExpectedProperties(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.setActualProperties(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceDrift.withPropertyDifferences(new ArrayList<PropertyDifference>());
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DetectStackResourceDriftResult == false) return false; DetectStackResourceDriftResult other = (DetectStackResourceDriftResult) obj; if (other.getStackResourceDrift() == null ^ this.getStackResourceDrift() == null) return false; if (other.getStackResourceDrift() != null && other.getStackResourceDrift().equals(this.getStackResourceDrift()) == false) return false; return true; }
return false; StackResourceDrift other = (StackResourceDrift) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getLogicalResourceId() == null ^ this.getLogicalResourceId() == null) return false; if (other.getLogicalResourceId() != null && other.getLogicalResourceId().equals(this.getLogicalResourceId()) == false) return false; if (other.getPhysicalResourceId() == null ^ this.getPhysicalResourceId() == null) return false; if (other.getPhysicalResourceId() != null && other.getPhysicalResourceId().equals(this.getPhysicalResourceId()) == false) return false; if (other.getPhysicalResourceIdContext() == null ^ this.getPhysicalResourceIdContext() == null) return false; if (other.getPhysicalResourceIdContext() != null && other.getPhysicalResourceIdContext().equals(this.getPhysicalResourceIdContext()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getExpectedProperties() == null ^ this.getExpectedProperties() == null) return false; if (other.getExpectedProperties() != null && other.getExpectedProperties().equals(this.getExpectedProperties()) == false) return false; if (other.getActualProperties() == null ^ this.getActualProperties() == null) return false; if (other.getActualProperties() != null && other.getActualProperties().equals(this.getActualProperties()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getLogicalResourceId() != null) sb.append("LogicalResourceId: ").append(getLogicalResourceId()).append(","); if (getPhysicalResourceId() != null) sb.append("PhysicalResourceId: ").append(getPhysicalResourceId()).append(","); if (getPhysicalResourceIdContext() != null) sb.append("PhysicalResourceIdContext: ").append(getPhysicalResourceIdContext()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getExpectedProperties() != null) sb.append("ExpectedProperties: ").append(getExpectedProperties()).append(","); if (getActualProperties() != null) sb.append("ActualProperties: ").append(getActualProperties()).append(","); if (getPropertyDifferences() != null) sb.append("PropertyDifferences: ").append(getPropertyDifferences()).append(","); if (getStackResourceDriftStatus() != null) sb.append("StackResourceDriftStatus: ").append(getStackResourceDriftStatus()).append(","); if (getTimestamp() != null) sb.append("Timestamp: ").append(getTimestamp()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getLogicalResourceId() == null) ? 0 : getLogicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceId() == null) ? 0 : getPhysicalResourceId().hashCode()); hashCode = prime * hashCode + ((getPhysicalResourceIdContext() == null) ? 0 : getPhysicalResourceIdContext().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getExpectedProperties() == null) ? 0 : getExpectedProperties().hashCode()); hashCode = prime * hashCode + ((getActualProperties() == null) ? 0 : getActualProperties().hashCode()); hashCode = prime * hashCode + ((getPropertyDifferences() == null) ? 0 : getPropertyDifferences().hashCode()); hashCode = prime * hashCode + ((getStackResourceDriftStatus() == null) ? 0 : getStackResourceDriftStatus().hashCode()); hashCode = prime * hashCode + ((getTimestamp() == null) ? 0 : getTimestamp().hashCode()); return hashCode; }
return false; StackResourceDrift other = (StackResourceDrift) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getLogicalResourceId() == null ^ this.getLogicalResourceId() == null) return false; if (other.getLogicalResourceId() != null && other.getLogicalResourceId().equals(this.getLogicalResourceId()) == false) return false; if (other.getPhysicalResourceId() == null ^ this.getPhysicalResourceId() == null) return false; if (other.getPhysicalResourceId() != null && other.getPhysicalResourceId().equals(this.getPhysicalResourceId()) == false) return false; if (other.getPhysicalResourceIdContext() == null ^ this.getPhysicalResourceIdContext() == null) return false; if (other.getPhysicalResourceIdContext() != null && other.getPhysicalResourceIdContext().equals(this.getPhysicalResourceIdContext()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getExpectedProperties() == null ^ this.getExpectedProperties() == null) return false; if (other.getExpectedProperties() != null && other.getExpectedProperties().equals(this.getExpectedProperties()) == false) return false; if (other.getActualProperties() == null ^ this.getActualProperties() == null) return false; if (other.getActualProperties() != null && other.getActualProperties().equals(this.getActualProperties()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getLogicalResourceId() != null) sb.append("LogicalResourceId: ").append(getLogicalResourceId()).append(","); if (getPhysicalResourceId() != null) sb.append("PhysicalResourceId: ").append(getPhysicalResourceId()).append(","); if (getPhysicalResourceIdContext() != null) sb.append("PhysicalResourceIdContext: ").append(getPhysicalResourceIdContext()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getExpectedProperties() != null) sb.append("ExpectedProperties: ").append(getExpectedProperties()).append(","); if (getActualProperties() != null) sb.append("ActualProperties: ").append(getActualProperties()).append(","); if (getPropertyDifferences() != null) sb.append("PropertyDifferences: ").append(getPropertyDifferences()).append(","); if (getStackResourceDriftStatus() != null) sb.append("StackResourceDriftStatus: ").append(getStackResourceDriftStatus()).append(","); if (getTimestamp() != null) sb.append("Timestamp: ").append(getTimestamp()); sb.append("}"); return sb.toString();