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