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

        this.addAllowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>(addAllowedPrefixesToDirectConnectGateway);
    }
<p>
The Amazon VPC prefixes to advertise to the Direct Connect gateway.
</p>

@param addAllowedPrefixesToDirectConnectGateway
       The Amazon VPC prefixes to advertise to the Direct Connect gateway.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/UpdateDirectConnectGatewayAssociationRequest.java