code: public GetTemplateResult withStagesAvailable(String... stagesAvailable) {
          if (this.stagesAvailable == null) {
              setStagesAvailable(new com.amazonaws.internal.SdkInternalList<String>(stagesAvailable.length));
          }
          for (String ele : stagesAvailable) {
              this.stagesAvailable.add(ele);
          }
          return this;
      }
docs: <p>
  The stage of the template that you can retrieve. For stacks, the <code>Original</code> and <code>Processed</code>
  templates are always available. For change sets, the <code>Original</code> template is always available. After
  AWS CloudFormation finishes creating the change set, the <code>Processed</code> template becomes available.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setStagesAvailable(java.util.Collection)} or {@link #withStagesAvailable(java.util.Collection)} if you
  want to override the existing values.
  </p>
  
  @param stagesAvailable
  The stage of the template that you can retrieve. For stacks, the <code>Original</code> and
  <code>Processed</code> templates are always available. For change sets, the <code>Original</code> template
  is always available. After AWS CloudFormation finishes creating the change set, the <code>Processed</code>
  template becomes available.
  @return Returns a reference to this object so that method calls can be chained together.
  @see TemplateStage