code: public void setInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups) {
          if (instanceGroups == null) {
              this.instanceGroups = null;
              return;
          }
  
          this.instanceGroups = new com.amazonaws.internal.SdkInternalList<InstanceGroupDetail>(instanceGroups);
      }
docs: <p>
  Details about the instance groups in a cluster.
  </p>
  
  @param instanceGroups
  Details about the instance groups in a cluster.