public java.util.List<ScalingRule> getRules() {
        if (rules == null) {
            rules = new com.amazonaws.internal.SdkInternalList<ScalingRule>();
        }
        return rules;
    }
<p>
The scale-in and scale-out rules that comprise the automatic scaling policy.
</p>

@return 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