public Integer getMaxSize() {
        return this.maxSize;
    }
<p>
The maximum size of the group.
</p>
<note>
<p>
With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need to go above
<code>MaxSize</code> to meet your capacity requirements. In this event, Amazon EC2 Auto Scaling will never go
above <code>MaxSize</code> by more than your largest instance weight (weights that define how many units each
instance contributes to the desired capacity of the group).
</p>
</note>

@return The maximum size of the group.</p> <note>
        <p>
        With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need to go above
        <code>MaxSize</code> to meet your capacity requirements. In this event, Amazon EC2 Auto Scaling will
        never go above <code>MaxSize</code> by more than your largest instance weight (weights that define how
        many units each instance contributes to the desired capacity of the group).
        </p>
aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/model/CreateAutoScalingGroupRequest.java