Class WhatsAppMessageTemplateComponent.Button

java.lang.Object
com.restfb.types.whatsapp.WhatsAppMessageTemplateComponent.Button
Enclosing class:
WhatsAppMessageTemplateComponent

  • Constructor Details

  • Method Details

    • getType

      Button type.
    • setType

      Button type.
    • getText

      public String getText()
      Button label text.
    • setText

      public void setText(String text)
      Button label text.
    • getUrl

      public String getUrl()
      URL of website. Supports 1 variable.
    • setUrl

      public void setUrl(String url)
      URL of website. Supports 1 variable.
    • getPhoneNumber

    • setPhoneNumber

      public void setPhoneNumber(String phoneNumber)
    • getExample

      public List<String> getExample()
      Single element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter.
    • setExample

      public void setExample(List<String> example)
      Single element list with the strings to copy to the device's clipboard if the type is 'COPY_CODE', or sample URL if the type is 'URL' and has a parameter.
    • getFlowId

      public String getFlowId()
      Unique identifier of the Flow provided by WhatsApp. The Flow must be published.
    • setFlowId

      public void setFlowId(String flowId)
      Unique identifier of the Flow provided by WhatsApp. The Flow must be published.
    • getFlowName

      public String getFlowName()
      The name of the Flow, supported in Cloud API only. Cannot be used with flow_id or flow_json.
    • setFlowName

      public void setFlowName(String flowName)
      The name of the Flow, supported in Cloud API only. Cannot be used with flow_id or flow_json.
    • getFlowJson

      public String getFlowJson()
      JSON string specifying the layout of the Flow. Cannot be used with flow_id or flow_name.
    • setFlowJson

      public void setFlowJson(String flowJson)
      JSON string specifying the layout of the Flow. Cannot be used with flow_id or flow_name.
    • getFlowAction

      Action to define the Flow behavior. Can be 'navigate' for predefined screens or 'data_exchange' for dynamic screens.
    • setFlowAction

      public void setFlowAction(String flowAction)
      Action to define the Flow behavior. Can be 'navigate' for predefined screens or 'data_exchange' for dynamic screens.
    • getNavigateScreen

      ID of the entry screen in the Flow if flow_action is 'navigate'. Optional. Default is 'FIRST_ENTRY_SCREEN'.
    • setNavigateScreen

      public void setNavigateScreen(String navigateScreen)
      ID of the entry screen in the Flow if flow_action is 'navigate'. Optional. Default is 'FIRST_ENTRY_SCREEN'.