/** * <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(java.util.Collection<String> capabilities) { setCapabilities(capabilities); return this; }
setCapabilities(new com.amazonaws.internal.SdkInternalList<String>(capabilities.length));
/** * <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; }
/** * <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(java.util.Collection<String> capabilities) { setCapabilities(capabilities); return this; }
setCapabilities(new com.amazonaws.internal.SdkInternalList<String>(capabilities.length));
/** * <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; }