Class AccountLinkCreateParams.Builder

  • Enclosing class:
    AccountLinkCreateParams

    public static class AccountLinkCreateParams.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setAccount

        public AccountLinkCreateParams.Builder setAccount​(java.lang.String account)
        The identifier of the account to create an account link for.
      • addExpand

        public AccountLinkCreateParams.Builder addExpand​(java.lang.String element)
        Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See AccountLinkCreateParams.expand for the field documentation.
      • addAllExpand

        public AccountLinkCreateParams.Builder addAllExpand​(java.util.List<java.lang.String> elements)
        Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See AccountLinkCreateParams.expand for the field documentation.
      • putExtraParam

        public AccountLinkCreateParams.Builder putExtraParam​(java.lang.String key,
                                                             java.lang.Object value)
        Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See AccountLinkCreateParams.extraParams for the field documentation.
      • putAllExtraParam

        public AccountLinkCreateParams.Builder putAllExtraParam​(java.util.Map<java.lang.String,​java.lang.Object> map)
        Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See AccountLinkCreateParams.extraParams for the field documentation.
      • setRefreshUrl

        public AccountLinkCreateParams.Builder setRefreshUrl​(java.lang.String refreshUrl)
        The URL the user will be redirected to if the account link is expired, has been previously-visited, or is otherwise invalid. The URL you specify should attempt to generate a new account link with the same parameters used to create the original account link, then redirect the user to the new account link's URL so they can continue with Connect Onboarding. If a new account link cannot be generated or the redirect fails you should display a useful error to the user.
      • setReturnUrl

        public AccountLinkCreateParams.Builder setReturnUrl​(java.lang.String returnUrl)
        The URL that the user will be redirected to upon leaving or completing the linked flow.