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