public CreateWorkgroupRequest withMaxCapacity(Integer maxCapacity) {
        setMaxCapacity(maxCapacity);
        return this;
    }
<p>
The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is
specified in RPUs.
</p>

@param maxCapacity
       The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is
       specified in RPUs.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshiftserverless/src/main/java/com/amazonaws/services/redshiftserverless/model/CreateWorkgroupRequest.java