All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cloudformation.model.StackSet Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS CloudFormation module holds the client classes that are used for communicating with AWS CloudFormation Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2012-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.cloudformation.model;

import java.io.Serializable;
import javax.annotation.Generated;

/**
 * 

* A structure that contains information about a stack set. A stack set enables you to provision stacks into AWS * accounts and across regions by using a single CloudFormation template. In the stack set, you specify the template to * use, as well as any parameters and capabilities that the template requires. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class StackSet implements Serializable, Cloneable { /** *

* The name that's associated with the stack set. *

*/ private String stackSetName; /** *

* The ID of the stack set. *

*/ private String stackSetId; /** *

* A description of the stack set that you specify when the stack set is created or updated. *

*/ private String description; /** *

* The status of the stack set. *

*/ private String status; /** *

* The structure that contains the body of the template that was used to create or update the stack set. *

*/ private String templateBody; /** *

* A list of input parameters for a stack set. *

*/ private com.amazonaws.internal.SdkInternalList parameters; /** *

* 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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

*/ private com.amazonaws.internal.SdkInternalList capabilities; /** *

* A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. *

*/ private com.amazonaws.internal.SdkInternalList tags; /** *

* The name that's associated with the stack set. *

* * @param stackSetName * The name that's associated with the stack set. */ public void setStackSetName(String stackSetName) { this.stackSetName = stackSetName; } /** *

* The name that's associated with the stack set. *

* * @return The name that's associated with the stack set. */ public String getStackSetName() { return this.stackSetName; } /** *

* The name that's associated with the stack set. *

* * @param stackSetName * The name that's associated with the stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withStackSetName(String stackSetName) { setStackSetName(stackSetName); return this; } /** *

* The ID of the stack set. *

* * @param stackSetId * The ID of the stack set. */ public void setStackSetId(String stackSetId) { this.stackSetId = stackSetId; } /** *

* The ID of the stack set. *

* * @return The ID of the stack set. */ public String getStackSetId() { return this.stackSetId; } /** *

* The ID of the stack set. *

* * @param stackSetId * The ID of the stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withStackSetId(String stackSetId) { setStackSetId(stackSetId); return this; } /** *

* A description of the stack set that you specify when the stack set is created or updated. *

* * @param description * A description of the stack set that you specify when the stack set is created or updated. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the stack set that you specify when the stack set is created or updated. *

* * @return A description of the stack set that you specify when the stack set is created or updated. */ public String getDescription() { return this.description; } /** *

* A description of the stack set that you specify when the stack set is created or updated. *

* * @param description * A description of the stack set that you specify when the stack set is created or updated. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withDescription(String description) { setDescription(description); return this; } /** *

* The status of the stack set. *

* * @param status * The status of the stack set. * @see StackSetStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the stack set. *

* * @return The status of the stack set. * @see StackSetStatus */ public String getStatus() { return this.status; } /** *

* The status of the stack set. *

* * @param status * The status of the stack set. * @return Returns a reference to this object so that method calls can be chained together. * @see StackSetStatus */ public StackSet withStatus(String status) { setStatus(status); return this; } /** *

* The status of the stack set. *

* * @param status * The status of the stack set. * @see StackSetStatus */ public void setStatus(StackSetStatus status) { withStatus(status); } /** *

* The status of the stack set. *

* * @param status * The status of the stack set. * @return Returns a reference to this object so that method calls can be chained together. * @see StackSetStatus */ public StackSet withStatus(StackSetStatus status) { this.status = status.toString(); return this; } /** *

* The structure that contains the body of the template that was used to create or update the stack set. *

* * @param templateBody * The structure that contains the body of the template that was used to create or update the stack set. */ public void setTemplateBody(String templateBody) { this.templateBody = templateBody; } /** *

* The structure that contains the body of the template that was used to create or update the stack set. *

* * @return The structure that contains the body of the template that was used to create or update the stack set. */ public String getTemplateBody() { return this.templateBody; } /** *

* The structure that contains the body of the template that was used to create or update the stack set. *

* * @param templateBody * The structure that contains the body of the template that was used to create or update the stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; } /** *

* A list of input parameters for a stack set. *

* * @return A list of input parameters for a stack set. */ public java.util.List getParameters() { if (parameters == null) { parameters = new com.amazonaws.internal.SdkInternalList(); } return parameters; } /** *

* A list of input parameters for a stack set. *

* * @param parameters * A list of input parameters for a stack set. */ public void setParameters(java.util.Collection parameters) { if (parameters == null) { this.parameters = null; return; } this.parameters = new com.amazonaws.internal.SdkInternalList(parameters); } /** *

* A list of input parameters for a stack set. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setParameters(java.util.Collection)} or {@link #withParameters(java.util.Collection)} if you want to * override the existing values. *

* * @param parameters * A list of input parameters for a stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withParameters(Parameter... parameters) { if (this.parameters == null) { setParameters(new com.amazonaws.internal.SdkInternalList(parameters.length)); } for (Parameter ele : parameters) { this.parameters.add(ele); } return this; } /** *

* A list of input parameters for a stack set. *

* * @param parameters * A list of input parameters for a stack set. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withParameters(java.util.Collection parameters) { setParameters(parameters); return this; } /** *

* 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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

* * @return 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 Acknowledging IAM Resources in AWS CloudFormation Templates. * @see Capability */ public java.util.List getCapabilities() { if (capabilities == null) { capabilities = new com.amazonaws.internal.SdkInternalList(); } return 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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

* * @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 Acknowledging IAM Resources in AWS CloudFormation Templates. * @see Capability */ public void setCapabilities(java.util.Collection capabilities) { if (capabilities == null) { this.capabilities = null; return; } this.capabilities = new com.amazonaws.internal.SdkInternalList(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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCapabilities(java.util.Collection)} or {@link #withCapabilities(java.util.Collection)} if you want to * override the existing values. *

* * @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 Acknowledging IAM Resources in AWS CloudFormation Templates. * @return Returns a reference to this object so that method calls can be chained together. * @see Capability */ public StackSet withCapabilities(String... capabilities) { if (this.capabilities == null) { setCapabilities(new com.amazonaws.internal.SdkInternalList(capabilities.length)); } for (String ele : capabilities) { this.capabilities.add(ele); } return this; } /** *

* 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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

* * @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 Acknowledging IAM Resources in AWS CloudFormation Templates. * @return Returns a reference to this object so that method calls can be chained together. * @see Capability */ public StackSet withCapabilities(java.util.Collection capabilities) { setCapabilities(capabilities); return this; } /** *

* 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 Acknowledging IAM Resources in AWS CloudFormation Templates. *

* * @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 Acknowledging IAM Resources in AWS CloudFormation Templates. * @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 capabilitiesCopy = new com.amazonaws.internal.SdkInternalList(capabilities.length); for (Capability value : capabilities) { capabilitiesCopy.add(value.toString()); } if (getCapabilities() == null) { setCapabilities(capabilitiesCopy); } else { getCapabilities().addAll(capabilitiesCopy); } return this; } /** *

* A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. *

* * @return A list of tags that specify information about the stack set. A maximum number of 50 tags can be * specified. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

* A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. *

* * @param tags * A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

* A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *

* * @param tags * A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. *

* * @param tags * A list of tags that specify information about the stack set. A maximum number of 50 tags can be specified. * @return Returns a reference to this object so that method calls can be chained together. */ public StackSet withTags(java.util.Collection tags) { setTags(tags); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StackSet == false) 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) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @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()); return hashCode; } @Override public StackSet clone() { try { return (StackSet) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy