code: public void setAddAllowedPrefixesToDirectConnectGateway(java.util.Collection<RouteFilterPrefix> addAllowedPrefixesToDirectConnectGateway) {
          if (addAllowedPrefixesToDirectConnectGateway == null) {
              this.addAllowedPrefixesToDirectConnectGateway = null;
              return;
          }
  
          this.addAllowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>(addAllowedPrefixesToDirectConnectGateway);
      }
docs: <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.