public AutoScalingConfiguration withMaxSize(Integer maxSize) {
        setMaxSize(maxSize);
        return this;
    }
<p>
The maximum number of instances that a service scales up to. At most <code>MaxSize</code> instances actively
serve traffic for your service.
</p>

@param maxSize
       The maximum number of instances that a service scales up to. At most <code>MaxSize</code> instances
       actively serve traffic for your service.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-apprunner/src/main/java/com/amazonaws/services/apprunner/model/AutoScalingConfiguration.java