public UpdateEnvironmentRequest withDesiredCapacity(Integer desiredCapacity) {
        setDesiredCapacity(desiredCapacity);
        return this;
    }
<p>
The desired capacity for the runtime environment to update. The minimum possible value is 0 and the maximum is
100.
</p>

@param desiredCapacity
       The desired capacity for the runtime environment to update. The minimum possible value is 0 and the
       maximum is 100.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mainframemodernization/src/main/java/com/amazonaws/services/mainframemodernization/model/UpdateEnvironmentRequest.java