code: public AcceptDirectConnectGatewayAssociationProposalRequest withOverrideAllowedPrefixesToDirectConnectGateway(
              RouteFilterPrefix... overrideAllowedPrefixesToDirectConnectGateway) {
          if (this.overrideAllowedPrefixesToDirectConnectGateway == null) {
              setOverrideAllowedPrefixesToDirectConnectGateway(new com.amazonaws.internal.SdkInternalList<RouteFilterPrefix>(
                      overrideAllowedPrefixesToDirectConnectGateway.length));
          }
          for (RouteFilterPrefix ele : overrideAllowedPrefixesToDirectConnectGateway) {
              this.overrideAllowedPrefixesToDirectConnectGateway.add(ele);
          }
          return this;
      }
docs: <p>
  Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setOverrideAllowedPrefixesToDirectConnectGateway(java.util.Collection)} or
  {@link #withOverrideAllowedPrefixesToDirectConnectGateway(java.util.Collection)} if you want to override the
  existing values.
  </p>
  
  @param overrideAllowedPrefixesToDirectConnectGateway
  Overrides the Amazon VPC prefixes advertised to the Direct Connect gateway.
  @return Returns a reference to this object so that method calls can be chained together.