public GetTemplateSummaryResult withCapabilities(java.util.Collection<String> capabilities) {
        setCapabilities(capabilities);
        return this;
    }
<p>
The capabilities found within the template. If your template contains IAM resources, you must specify the
<code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> value for this parameter when you use the
<a>CreateStack</a> or <a>UpdateStack</a> actions with your template; otherwise, those actions return an
<code>InsufficientCapabilities</code> error.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities"
>Acknowledging IAM Resources in CloudFormation Templates</a>.
</p>

@param capabilities
       The capabilities found within the template. If your template contains IAM resources, you must specify the
       <code>CAPABILITY_IAM</code> or <code>CAPABILITY_NAMED_IAM</code> value for this parameter when you use the
       <a>CreateStack</a> or <a>UpdateStack</a> actions with your template; otherwise, those actions return an
       <code>InsufficientCapabilities</code> error.</p>
       <p>
       For more information, see <a href=
       "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-template.html#capabilities"
       >Acknowledging IAM Resources in CloudFormation Templates</a>.
@return Returns a reference to this object so that method calls can be chained together.
@see Capability
aws-java-sdk-cloudformation/src/main/java/com/amazonaws/services/cloudformation/model/GetTemplateSummaryResult.java