code: public GetTemplateSummaryResult 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;
      }
docs: <p>
  The capabilities found within the template. If your template contains IAM resources, you must specify the
  CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the <a>CreateStack</a> or
  <a>UpdateStack</a> actions with your template; otherwise, those actions return an InsufficientCapabilities 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 AWS CloudFormation Templates</a>.
  </p>
  
  @param capabilities
  The capabilities found within the template. If your template contains IAM resources, you must specify the
  CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the <a>CreateStack</a> or
  <a>UpdateStack</a> actions with your template; otherwise, those actions return an InsufficientCapabilities
  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 AWS CloudFormation Templates</a>.
  @return Returns a reference to this object so that method calls can be chained together.
  @see Capability