public VPCOptions withSubnetIds(String... subnetIds) {
        if (this.subnetIds == null) {
            setSubnetIds(new java.util.ArrayList<String>(subnetIds.length));
        }
        for (String ele : subnetIds) {
            this.subnetIds.add(ele);
        }
        return this;
    }
<p>
A list of subnet IDs associated with the VPC endpoints for the domain. If your domain uses multiple Availability
Zones, you need to provide two subnet IDs, one per zone. Otherwise, provide only one.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubnetIds(java.util.Collection)} or {@link #withSubnetIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param subnetIds
       A list of subnet IDs associated with the VPC endpoints for the domain. If your domain uses multiple
       Availability Zones, you need to provide two subnet IDs, one per zone. Otherwise, provide only one.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/VPCOptions.java