public InstanceGroup withAutoScalingPolicy(AutoScalingPolicyDescription autoScalingPolicy) {
        setAutoScalingPolicy(autoScalingPolicy);
        return this;
    }
<p>
An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The
automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in
response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
</p>

@param autoScalingPolicy
       An automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The
       automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2
       instances in response to the value of a CloudWatch metric. See PutAutoScalingPolicy.
@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/InstanceGroup.java