code: public EnvironmentResourceDescription withAutoScalingGroups(AutoScalingGroup... autoScalingGroups) {
          if (this.autoScalingGroups == null) {
              setAutoScalingGroups(new com.amazonaws.internal.SdkInternalList<AutoScalingGroup>(autoScalingGroups.length));
          }
          for (AutoScalingGroup ele : autoScalingGroups) {
              this.autoScalingGroups.add(ele);
          }
          return this;
      }
docs: <p>
  The <code>AutoScalingGroups</code> used by this environment.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setAutoScalingGroups(java.util.Collection)} or {@link #withAutoScalingGroups(java.util.Collection)} if
  you want to override the existing values.
  </p>
  
  @param autoScalingGroups
  The <code>AutoScalingGroups</code> used by this environment.
  @return Returns a reference to this object so that method calls can be chained together.