public void setAllowedPrefixesToDirectConnectGateway(java.util.Collection<RouteFilterPrefix> allowedPrefixesToDirectConnectGateway) {
        if (allowedPrefixesToDirectConnectGateway == null) {
            this.allowedPrefixesToDirectConnectGateway = null;
            return;
        }

        this.allowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>(allowedPrefixesToDirectConnectGateway);
    }
public void setAllowedPrefixesToDirectConnectGateway ( java . util . Collection < RouteFilterPrefix > allowedPrefixesToDirectConnectGateway ) { if ( allowedPrefixesToDirectConnectGateway == null ) { this . allowedPrefixesToDirectConnectGateway = null ; return ; } this . allowedPrefixesToDirectConnectGateway = new com . amazonaws . internal . SdkInternalList < RouteFilterPrefix > ( allowedPrefixesToDirectConnectGateway ) ; }
<p>
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
</p>

@param allowedPrefixesToDirectConnectGateway
The Amazon VPC prefixes to advertise to the Direct Connect gateway.