public ModifyVpcEndpointRequest withAddSubnetIds(java.util.Collection<String> addSubnetIds) {
        setAddSubnetIds(addSubnetIds);
        return this;
    }
<p>
(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint. For a
Gateway Load Balancer endpoint, you can specify only one subnet.
</p>

@param addSubnetIds
       (Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint. 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/ModifyVpcEndpointRequest.java