code: public Stack withCapabilities(String... capabilities) {
          if (this.capabilities == null) {
              setCapabilities(new com.amazonaws.internal.SdkInternalList<String>(capabilities.length));
          }
          for (String ele : capabilities) {
              this.capabilities.add(ele);
          }
          return this;
      }
docs: <p>
  The capabilities allowed in the stack.
  </p>
  <p>
  <b>NOTE:</b> 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.
  </p>
  
  @param capabilities
  The capabilities allowed in the stack.
  @return Returns a reference to this object so that method calls can be chained together.
  @see Capability