@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetName() == null) ? 0 : getStackSetName().hashCode()); hashCode = prime * hashCode + ((getStackSetId() == null) ? 0 : getStackSetId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTemplateBody() == null) ? 0 : getTemplateBody().hashCode()); hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getStackSetARN() == null) ? 0 : getStackSetARN().hashCode()); hashCode = prime * hashCode + ((getAdministrationRoleARN() == null) ? 0 : getAdministrationRoleARN().hashCode()); hashCode = prime * hashCode + ((getExecutionRoleName() == null) ? 0 : getExecutionRoleName().hashCode()); return hashCode; }
/** * <p> * The capabilities that are allowed in the stack set. Some stack set templates might include resources that can * affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management (IAM) * users. For more information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities" * >Acknowledging IAM Resources in AWS CloudFormation Templates.</a> * </p> * * @param capabilities * The capabilities that are allowed in the stack set. Some stack set templates might include resources that * can affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management * (IAM) users. For more information, see <a href= * "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities" * >Acknowledging IAM Resources in AWS CloudFormation Templates.</a> * @return Returns a reference to this object so that method calls can be chained together. * @see Capability */ public StackSet withCapabilities(Capability... capabilities) { com.amazonaws.internal.SdkInternalList<String> capabilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(capabilities.length); for (Capability value : capabilities) { capabilitiesCopy.add(value.toString()); } if (getCapabilities() == null) { setCapabilities(capabilitiesCopy); } else { getCapabilities().addAll(capabilitiesCopy); } return this; }
public StackSet unmarshall(StaxUnmarshallerContext context) throws Exception { StackSet stackSet = new StackSet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackSet.setStackSetName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setStackSetId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setTemplateBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.withParameters(new ArrayList<Parameter>()); continue; stackSet.withParameters(ParameterStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.withCapabilities(new ArrayList<String>()); continue; stackSet.withCapabilities(StringStaxUnmarshaller.getInstance().unmarshall(context));
DescribeStackSetResult waitForStackState(StackSetStatus expectedStatus, Duration pollInterval) throws InterruptedException { DescribeStackSetResult result = describe(); this.listener.getLogger().println("stackSetId=" + result.getStackSet().getStackSetId() + " status=" + result.getStackSet().getStatus()); StackSetStatus currentStatus = StackSetStatus.fromValue(result.getStackSet().getStatus()); if (currentStatus == expectedStatus) { this.listener.getLogger().println("Stack set operation completed successfully"); return result; } else { Thread.sleep(pollInterval.toMillis()); return waitForStackState(expectedStatus, pollInterval); } }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackSetResult == false) return false; DescribeStackSetResult other = (DescribeStackSetResult) obj; if (other.getStackSet() == null ^ this.getStackSet() == null) return false; if (other.getStackSet() != null && other.getStackSet().equals(this.getStackSet()) == false) return false; return true; }
public StackSet unmarshall(StaxUnmarshallerContext context) throws Exception { StackSet stackSet = new StackSet(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; stackSet.setStackSetName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setStackSetId(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setDescription(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setStatus(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.setTemplateBody(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.withParameters(new ArrayList<Parameter>()); continue; stackSet.withParameters(ParameterStaxUnmarshaller.getInstance().unmarshall(context)); continue; stackSet.withCapabilities(new ArrayList<String>()); continue; stackSet.withCapabilities(StringStaxUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The capabilities that are allowed in the stack set. Some stack set templates might include resources that can * affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management (IAM) * users. For more information, see <a * href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities" * >Acknowledging IAM Resources in AWS CloudFormation Templates.</a> * </p> * * @param capabilities * The capabilities that are allowed in the stack set. Some stack set templates might include resources that * can affect permissions in your AWS account—for example, by creating new AWS Identity and Access Management * (IAM) users. For more information, see <a href= * "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities" * >Acknowledging IAM Resources in AWS CloudFormation Templates.</a> * @return Returns a reference to this object so that method calls can be chained together. * @see Capability */ public StackSet withCapabilities(Capability... capabilities) { com.amazonaws.internal.SdkInternalList<String> capabilitiesCopy = new com.amazonaws.internal.SdkInternalList<String>(capabilities.length); for (Capability value : capabilities) { capabilitiesCopy.add(value.toString()); } if (getCapabilities() == null) { setCapabilities(capabilitiesCopy); } else { getCapabilities().addAll(capabilitiesCopy); } return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStackSetResult == false) return false; DescribeStackSetResult other = (DescribeStackSetResult) obj; if (other.getStackSet() == null ^ this.getStackSet() == null) return false; if (other.getStackSet() != null && other.getStackSet().equals(this.getStackSet()) == false) return false; return true; }
return false; StackSet other = (StackSet) obj; if (other.getStackSetName() == null ^ this.getStackSetName() == null) return false; if (other.getStackSetName() != null && other.getStackSetName().equals(this.getStackSetName()) == false) return false; if (other.getStackSetId() == null ^ this.getStackSetId() == null) return false; if (other.getStackSetId() != null && other.getStackSetId().equals(this.getStackSetId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getTemplateBody() == null ^ this.getTemplateBody() == null) return false; if (other.getTemplateBody() != null && other.getTemplateBody().equals(this.getTemplateBody()) == false) return false; if (other.getParameters() == null ^ this.getParameters() == null) return false; if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false) return false; if (other.getCapabilities() == null ^ this.getCapabilities() == null) return false; if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackSetName() != null) sb.append("StackSetName: ").append(getStackSetName()).append(","); if (getStackSetId() != null) sb.append("StackSetId: ").append(getStackSetId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getTemplateBody() != null) sb.append("TemplateBody: ").append(getTemplateBody()).append(","); if (getParameters() != null) sb.append("Parameters: ").append(getParameters()).append(","); if (getCapabilities() != null) sb.append("Capabilities: ").append(getCapabilities()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getStackSetARN() != null) sb.append("StackSetARN: ").append(getStackSetARN()).append(","); if (getAdministrationRoleARN() != null) sb.append("AdministrationRoleARN: ").append(getAdministrationRoleARN()).append(","); if (getExecutionRoleName() != null) sb.append("ExecutionRoleName: ").append(getExecutionRoleName()); sb.append("}"); return sb.toString();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackSetName() == null) ? 0 : getStackSetName().hashCode()); hashCode = prime * hashCode + ((getStackSetId() == null) ? 0 : getStackSetId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getTemplateBody() == null) ? 0 : getTemplateBody().hashCode()); hashCode = prime * hashCode + ((getParameters() == null) ? 0 : getParameters().hashCode()); hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getStackSetARN() == null) ? 0 : getStackSetARN().hashCode()); hashCode = prime * hashCode + ((getAdministrationRoleARN() == null) ? 0 : getAdministrationRoleARN().hashCode()); hashCode = prime * hashCode + ((getExecutionRoleName() == null) ? 0 : getExecutionRoleName().hashCode()); return hashCode; }
return false; StackSet other = (StackSet) obj; if (other.getStackSetName() == null ^ this.getStackSetName() == null) return false; if (other.getStackSetName() != null && other.getStackSetName().equals(this.getStackSetName()) == false) return false; if (other.getStackSetId() == null ^ this.getStackSetId() == null) return false; if (other.getStackSetId() != null && other.getStackSetId().equals(this.getStackSetId()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == 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.getTemplateBody() == null ^ this.getTemplateBody() == null) return false; if (other.getTemplateBody() != null && other.getTemplateBody().equals(this.getTemplateBody()) == false) return false; if (other.getParameters() == null ^ this.getParameters() == null) return false; if (other.getParameters() != null && other.getParameters().equals(this.getParameters()) == false) return false; if (other.getCapabilities() == null ^ this.getCapabilities() == null) return false; if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackSetName() != null) sb.append("StackSetName: ").append(getStackSetName()).append(","); if (getStackSetId() != null) sb.append("StackSetId: ").append(getStackSetId()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getTemplateBody() != null) sb.append("TemplateBody: ").append(getTemplateBody()).append(","); if (getParameters() != null) sb.append("Parameters: ").append(getParameters()).append(","); if (getCapabilities() != null) sb.append("Capabilities: ").append(getCapabilities()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getStackSetARN() != null) sb.append("StackSetARN: ").append(getStackSetARN()).append(","); if (getAdministrationRoleARN() != null) sb.append("AdministrationRoleARN: ").append(getAdministrationRoleARN()).append(","); if (getExecutionRoleName() != null) sb.append("ExecutionRoleName: ").append(getExecutionRoleName()); sb.append("}"); return sb.toString();