public WorkforceVpcConfigResponse withSubnets(java.util.Collection<String> subnets) {
        setSubnets(subnets);
        return this;
    }
<p>
The ID of the subnets in the VPC that you want to connect.
</p>

@param subnets
       The ID of the subnets in the VPC that you want to connect.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/WorkforceVpcConfigResponse.java