public Workgroup withSubnetIds(java.util.Collection<String> subnetIds) {
        setSubnetIds(subnetIds);
        return this;
    }
<p>
An array of subnet IDs the workgroup is associated with.
</p>

@param subnetIds
       An array of subnet IDs the workgroup is associated with.
@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/Workgroup.java