public CreateWorkgroupRequest withPort(Integer port) {
        setPort(port);
        return this;
    }
<p>
The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The default
is 5439.
</p>

@param port
       The custom port to use when connecting to a workgroup. Valid port ranges are 5431-5455 and 8191-8215. The
       default is 5439.
@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