code: public void setMetricGroups(java.util.Collection<String> metricGroups) {
          if (metricGroups == null) {
              this.metricGroups = null;
              return;
          }
  
          this.metricGroups = new java.util.ArrayList<String>(metricGroups);
      }
docs: <p>
  Name of an Amazon CloudWatch metric group to add this fleet to. A metric group aggregates the metrics for all
  fleets in the group. Specify an existing metric group name, or provide a new name to create a new metric group. A
  fleet can only be included in one metric group at a time.
  </p>
  
  @param metricGroups
  Name of an Amazon CloudWatch metric group to add this fleet to. A metric group aggregates the metrics for
  all fleets in the group. Specify an existing metric group name, or provide a new name to create a new
  metric group. A fleet can only be included in one metric group at a time.