Interface LibraryTemplateButtonInput.Builder

  • Method Details

    • type

      The type of button (for example, QUICK_REPLY, CALL, or URL).

      Parameters:
      type - The type of button (for example, QUICK_REPLY, CALL, or URL).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • phoneNumber

      LibraryTemplateButtonInput.Builder phoneNumber(String phoneNumber)

      The phone number in E.164 format for CALL-type buttons.

      Parameters:
      phoneNumber - The phone number in E.164 format for CALL-type buttons.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • url

      The URL with dynamic parameters for URL-type buttons.

      Parameters:
      url - The URL with dynamic parameters for URL-type buttons.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • otpType

      The type of one-time password for OTP buttons.

      Parameters:
      otpType - The type of one-time password for OTP buttons.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • zeroTapTermsAccepted

      LibraryTemplateButtonInput.Builder zeroTapTermsAccepted(Boolean zeroTapTermsAccepted)

      When true, indicates acceptance of zero-tap terms for the button.

      Parameters:
      zeroTapTermsAccepted - When true, indicates acceptance of zero-tap terms for the button.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedApps

      LibraryTemplateButtonInput.Builder supportedApps(Collection<? extends Map<String,String>> supportedApps)

      List of supported applications for this button type.

      Parameters:
      supportedApps - List of supported applications for this button type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportedApps

      LibraryTemplateButtonInput.Builder supportedApps(Map<String,String>... supportedApps)

      List of supported applications for this button type.

      Parameters:
      supportedApps - List of supported applications for this button type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.