code: public DescribeEnvironmentsResult withEnvironments(EnvironmentDescription... environments) {
          if (this.environments == null) {
              setEnvironments(new com.amazonaws.internal.SdkInternalList<EnvironmentDescription>(environments.length));
          }
          for (EnvironmentDescription ele : environments) {
              this.environments.add(ele);
          }
          return this;
      }
docs: <p>
  Returns an <a>EnvironmentDescription</a> list.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setEnvironments(java.util.Collection)} or {@link #withEnvironments(java.util.Collection)} if you want to
  override the existing values.
  </p>
  
  @param environments
  Returns an <a>EnvironmentDescription</a> list.
  @return Returns a reference to this object so that method calls can be chained together.