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

        this.instanceGroups = new java.util.ArrayList<ClusterInstanceGroupDetails>(instanceGroups);
    }
<p>
The instance groups of the SageMaker HyperPod cluster.
</p>

@param instanceGroups
       The instance groups of the SageMaker HyperPod cluster.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/DescribeClusterResult.java