public VPCDerivedInfo withSubnetIds(java.util.Collection<String> subnetIds) {
        setSubnetIds(subnetIds);
        return this;
    }
<p>
Specifies the subnets for VPC endpoint.
</p>

@param subnetIds
       Specifies the subnets for VPC endpoint.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/VPCDerivedInfo.java