public ElasticLoadBalancer withSubnetIds(String... subnetIds) {
        if (this.subnetIds == null) {
            setSubnetIds(new com.amazonaws.internal.SdkInternalList<String>(subnetIds.length));
        }
        for (String ele : subnetIds) {
            this.subnetIds.add(ele);
        }
        return this;
    }
public ElasticLoadBalancer withSubnetIds ( String ... subnetIds ) { if ( this . subnetIds == null ) { setSubnetIds ( new com . amazonaws . internal . SdkInternalList < String > ( subnetIds . length ) ) ; } for ( String ele : subnetIds ) { this . subnetIds . add ( ele ) ; } return this ; }
<p>
A list of subnet IDs, if the stack is running in a VPC.
</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, if the stack is running in a VPC.
@return Returns a reference to this object so that method calls can be chained together.