public UpdateFleetCapacityRequest withMaxSize(Integer maxSize) {
        setMaxSize(maxSize);
        return this;
    }
<p>
The maximum number of instances that are allowed in the specified fleet location. If this parameter is not set,
the default is 1.
</p>

@param maxSize
       The maximum number of instances that are allowed in the specified fleet location. If this parameter is not
       set, the default is 1.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/UpdateFleetCapacityRequest.java