public void setInstanceGroups(java.util.Collection<InstanceGroup> instanceGroups) {
        if (instanceGroups == null) {
            this.instanceGroups = null;
            return;
        }

        this.instanceGroups = new com.amazonaws.internal.SdkInternalList<InstanceGroup>(instanceGroups);
    }
<p>
The list of instance groups for the cluster and given filters.
</p>

@param instanceGroups
       The list of instance groups for the cluster and given filters.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/ListInstanceGroupsResult.java