public GetNetworkRoutesRequest withSubnetOfMatches(String... subnetOfMatches) {
        if (this.subnetOfMatches == null) {
            setSubnetOfMatches(new java.util.ArrayList<String>(subnetOfMatches.length));
        }
        for (String ele : subnetOfMatches) {
            this.subnetOfMatches.add(ele);
        }
        return this;
    }
<p>
The routes with a subnet that match the specified CIDR filter.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubnetOfMatches(java.util.Collection)} or {@link #withSubnetOfMatches(java.util.Collection)} if you
want to override the existing values.
</p>

@param subnetOfMatches
       The routes with a subnet that match the specified CIDR filter.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/GetNetworkRoutesRequest.java