public DescribeSubnetGroupsRequest withSubnetGroupNames(String... subnetGroupNames) {
        if (this.subnetGroupNames == null) {
            setSubnetGroupNames(new java.util.ArrayList<String>(subnetGroupNames.length));
        }
        for (String ele : subnetGroupNames) {
            this.subnetGroupNames.add(ele);
        }
        return this;
    }
public DescribeSubnetGroupsRequest withSubnetGroupNames ( String ... subnetGroupNames ) { if ( this . subnetGroupNames == null ) { setSubnetGroupNames ( new java . util . ArrayList < String > ( subnetGroupNames . length ) ) ; } for ( String ele : subnetGroupNames ) { this . subnetGroupNames . add ( ele ) ; } return this ; }
<p>
The name of the subnet group.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubnetGroupNames(java.util.Collection)} or {@link #withSubnetGroupNames(java.util.Collection)} if you
want to override the existing values.
</p>

@param subnetGroupNames
The name of the subnet group.
@return Returns a reference to this object so that method calls can be chained together.