public PutAutoScalingPolicyRequest withAutoScalingPolicy(AutoScalingPolicy autoScalingPolicy) {
        setAutoScalingPolicy(autoScalingPolicy);
        return this;
    }
<p>
Specifies the definition of the automatic scaling policy.
</p>

@param autoScalingPolicy
       Specifies the definition of the automatic scaling policy.
@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