public JobFlowInstancesDetail withInstanceGroups(java.util.Collection<InstanceGroupDetail> instanceGroups) {
        setInstanceGroups(instanceGroups);
        return this;
    }
<p>
Details about the instance groups in a cluster.
</p>

@param instanceGroups
       Details about the instance groups in a cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/JobFlowInstancesDetail.java