public void setSubnetIds(java.util.Collection<String> subnetIds) {
        if (subnetIds == null) {
            this.subnetIds = null;
            return;
        }

        this.subnetIds = new com.amazonaws.internal.SdkInternalList<String>(subnetIds);
    }
<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.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CreateVpcEndpointRequest.java