public GetNetworkRoutesRequest withLongestPrefixMatches(String... longestPrefixMatches) {
        if (this.longestPrefixMatches == null) {
            setLongestPrefixMatches(new java.util.ArrayList<String>(longestPrefixMatches.length));
        }
        for (String ele : longestPrefixMatches) {
            this.longestPrefixMatches.add(ele);
        }
        return this;
    }
<p>
The most specific route that matches the traffic (longest prefix match).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLongestPrefixMatches(java.util.Collection)} or {@link #withLongestPrefixMatches(java.util.Collection)}
if you want to override the existing values.
</p>

@param longestPrefixMatches
       The most specific route that matches the traffic (longest prefix match).
@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