public PrivateLinkConfig withSubnetArns(String... subnetArns) {
        if (this.subnetArns == null) {
            setSubnetArns(new java.util.ArrayList<String>(subnetArns.length));
        }
        for (String ele : subnetArns) {
            this.subnetArns.add(ele);
        }
        return this;
    }
<p>
Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubnetArns(java.util.Collection)} or {@link #withSubnetArns(java.util.Collection)} if you want to
override the existing values.
</p>

@param subnetArns
       Specifies the ARN of the subnet where your VPC endpoint is located. You can only specify one ARN.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/PrivateLinkConfig.java