public Instance withInstanceGroupId(String instanceGroupId) {
        setInstanceGroupId(instanceGroupId);
        return this;
    }
<p>
The identifier of the instance group to which this instance belongs.
</p>

@param instanceGroupId
       The identifier of the instance group to which this instance belongs.
@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/Instance.java