public void setRules(java.util.Collection<ScalingRule> rules) {
        if (rules == null) {
            this.rules = null;
            return;
        }

        this.rules = new com.amazonaws.internal.SdkInternalList<ScalingRule>(rules);
    }
<p>
The scale-in and scale-out rules that comprise the automatic scaling policy.
</p>

@param rules
       The scale-in and scale-out rules that comprise the automatic scaling policy.
aws-java-sdk-emr/src/main/java/com/amazonaws/services/elasticmapreduce/model/AutoScalingPolicy.java