@Override public int hashCode() { final int prime = 31; int hashCode = 1; 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 + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getResourceStatus() == null) ? 0 : getResourceStatus().hashCode()); hashCode = prime * hashCode + ((getResourceStatusReason() == null) ? 0 : getResourceStatusReason().hashCode()); hashCode = prime * hashCode + ((getDriftInformation() == null) ? 0 : getDriftInformation().hashCode()); return hashCode; }
/** * <p> * Information about whether the resource's actual configuration differs, or has <i>drifted</i>, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting * Unregulated Configuration Changes to Stacks and Resources</a>. * </p> * * @param driftInformation * Information about whether the resource's actual configuration differs, or has <i>drifted</i>, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting * Unregulated Configuration Changes to Stacks and Resources</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceSummary withDriftInformation(StackResourceDriftInformationSummary driftInformation) { setDriftInformation(driftInformation); return this; }
/** * <p> * Time the status was updated. * </p> * * @param lastUpdatedTimestamp * Time the status was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceSummary withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); return this; }
public StackResourceSummary unmarshall(StaxUnmarshallerContext context) throws Exception { StackResourceSummary stackResourceSummary = new StackResourceSummary(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackResourceSummary.setLogicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setPhysicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setLastUpdatedTimestamp(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; stackResourceSummary.setResourceStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setResourceStatusReason(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setDriftInformation(StackResourceDriftInformationSummaryStaxUnmarshaller.getInstance().unmarshall(context)); continue;
private Map<String, StackResource> convertToStackResourceMappings(String prefix, List<StackResourceSummary> stackResourceSummaries) { Map<String, StackResource> stackResourceMappings = new HashMap<>(); for (StackResourceSummary stackResourceSummary : stackResourceSummaries) { String logicalResourceId = toNestedResourceId(prefix, stackResourceSummary.getLogicalResourceId()); stackResourceMappings.put(logicalResourceId, new StackResource(logicalResourceId, stackResourceSummary.getPhysicalResourceId(), stackResourceSummary.getResourceType())); } return stackResourceMappings; }
public StackResourceSummary unmarshall(StaxUnmarshallerContext context) throws Exception { StackResourceSummary stackResourceSummary = new StackResourceSummary(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackResourceSummary.setLogicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setPhysicalResourceId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setResourceType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setLastUpdatedTimestamp(DateStaxUnmarshallerFactory.getInstance("iso8601").unmarshall(context)); continue; stackResourceSummary.setResourceStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setResourceStatusReason(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackResourceSummary.setDriftInformation(StackResourceDriftInformationSummaryStaxUnmarshaller.getInstance().unmarshall(context)); continue;
private Map<String, StackResource> convertToStackResourceMappings(String prefix, List<StackResourceSummary> stackResourceSummaries) { Map<String, StackResource> stackResourceMappings = new HashMap<>(); for (StackResourceSummary stackResourceSummary : stackResourceSummaries) { String logicalResourceId = toNestedResourceId(prefix, stackResourceSummary.getLogicalResourceId()); stackResourceMappings.put(logicalResourceId, new StackResource(logicalResourceId, stackResourceSummary.getPhysicalResourceId(), stackResourceSummary.getResourceType())); } return stackResourceMappings; }
return false; StackResourceSummary other = (StackResourceSummary) obj; 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.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) return false; if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) return false; if (other.getResourceStatus() == null ^ this.getResourceStatus() == null) return false; if (other.getResourceStatus() != null && other.getResourceStatus().equals(this.getResourceStatus()) == false) return false; if (other.getResourceStatusReason() == null ^ this.getResourceStatusReason() == null) return false; if (other.getResourceStatusReason() != null && other.getResourceStatusReason().equals(this.getResourceStatusReason()) == false) return false; if (other.getDriftInformation() == null ^ this.getDriftInformation() == null) return false; if (other.getDriftInformation() != null && other.getDriftInformation().equals(this.getDriftInformation()) == false)
/** * <p> * Time the status was updated. * </p> * * @param lastUpdatedTimestamp * Time the status was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceSummary withLastUpdatedTimestamp(java.util.Date lastUpdatedTimestamp) { setLastUpdatedTimestamp(lastUpdatedTimestamp); return this; }
/** * <p> * Information about whether the resource's actual configuration differs, or has <i>drifted</i>, from its expected * configuration, as defined in the stack template and any values specified as template parameters. For more * information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting * Unregulated Configuration Changes to Stacks and Resources</a>. * </p> * * @param driftInformation * Information about whether the resource's actual configuration differs, or has <i>drifted</i>, from its * expected configuration, as defined in the stack template and any values specified as template parameters. * For more information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html">Detecting * Unregulated Configuration Changes to Stacks and Resources</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public StackResourceSummary withDriftInformation(StackResourceDriftInformationSummary driftInformation) { setDriftInformation(driftInformation); 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 (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 (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); if (getResourceStatus() != null) sb.append("ResourceStatus: ").append(getResourceStatus()).append(","); if (getResourceStatusReason() != null) sb.append("ResourceStatusReason: ").append(getResourceStatusReason()).append(","); if (getDriftInformation() != null) sb.append("DriftInformation: ").append(getDriftInformation()); sb.append("}"); return sb.toString(); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; 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 + ((getLastUpdatedTimestamp() == null) ? 0 : getLastUpdatedTimestamp().hashCode()); hashCode = prime * hashCode + ((getResourceStatus() == null) ? 0 : getResourceStatus().hashCode()); hashCode = prime * hashCode + ((getResourceStatusReason() == null) ? 0 : getResourceStatusReason().hashCode()); hashCode = prime * hashCode + ((getDriftInformation() == null) ? 0 : getDriftInformation().hashCode()); return hashCode; }
return false; StackResourceSummary other = (StackResourceSummary) obj; 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.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getLastUpdatedTimestamp() == null ^ this.getLastUpdatedTimestamp() == null) return false; if (other.getLastUpdatedTimestamp() != null && other.getLastUpdatedTimestamp().equals(this.getLastUpdatedTimestamp()) == false) return false; if (other.getResourceStatus() == null ^ this.getResourceStatus() == null) return false; if (other.getResourceStatus() != null && other.getResourceStatus().equals(this.getResourceStatus()) == false) return false; if (other.getResourceStatusReason() == null ^ this.getResourceStatusReason() == null) return false; if (other.getResourceStatusReason() != null && other.getResourceStatusReason().equals(this.getResourceStatusReason()) == false) return false; if (other.getDriftInformation() == null ^ this.getDriftInformation() == null) return false; if (other.getDriftInformation() != null && other.getDriftInformation().equals(this.getDriftInformation()) == 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 (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 (getLastUpdatedTimestamp() != null) sb.append("LastUpdatedTimestamp: ").append(getLastUpdatedTimestamp()).append(","); if (getResourceStatus() != null) sb.append("ResourceStatus: ").append(getResourceStatus()).append(","); if (getResourceStatusReason() != null) sb.append("ResourceStatusReason: ").append(getResourceStatusReason()).append(","); if (getDriftInformation() != null) sb.append("DriftInformation: ").append(getDriftInformation()); sb.append("}"); return sb.toString(); }