public PutAutoScalingPolicyRequest withInstanceGroupId(String instanceGroupId) {
        setInstanceGroupId(instanceGroupId);
        return this;
    }
<p>
Specifies the ID of the instance group to which the automatic scaling policy is applied.
</p>

@param instanceGroupId
       Specifies the ID of the instance group to which the automatic scaling policy is applied.
@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/PutAutoScalingPolicyRequest.java