public CreateVpcEndpointRequest withSubnetIds(java.util.Collection<String> subnetIds) {
        setSubnetIds(subnetIds);
        return this;
    }
<p>
(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to create endpoint network
interfaces. For a Gateway Load Balancer endpoint, you can specify only one subnet.
</p>

@param subnetIds
       (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to create endpoint network
       interfaces. For a Gateway Load Balancer endpoint, you can specify only one subnet.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVpcEndpointRequest.java