public AllocatePrivateVirtualInterfaceResult withRouteFilterPrefixes(RouteFilterPrefix... routeFilterPrefixes) {
        if (this.routeFilterPrefixes == null) {
            setRouteFilterPrefixes(new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>(routeFilterPrefixes.length));
        }
        for (RouteFilterPrefix ele : routeFilterPrefixes) {
            this.routeFilterPrefixes.add(ele);
        }
        return this;
    }
<p>
The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual
interfaces.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRouteFilterPrefixes(java.util.Collection)} or {@link #withRouteFilterPrefixes(java.util.Collection)}
if you want to override the existing values.
</p>

@param routeFilterPrefixes
       The routes to be advertised to the Amazon Web Services network in this Region. Applies to public virtual
       interfaces.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/AllocatePrivateVirtualInterfaceResult.java