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