Class ButtonComponent

java.lang.Object
com.intercom.api.types.ButtonComponent

public final class ButtonComponent extends Object
  • Method Details

    • getId

      public String getId()
      Returns:
      A unique identifier for the component.
    • getLabel

      public String getLabel()
      Returns:
      The text that will be rendered inside the button.
    • getAction

      public ActionComponent getAction()
      Returns:
      This can be a Submit Action, URL Action, or Sheets Action.
    • getStyle

      public Optional<ButtonComponent.Style> getStyle()
      Returns:
      Styles the button. Default is 'primary'.
    • getDisabled

      public Optional<Boolean> getDisabled()
      Returns:
      Styles the button and prevents the action. Default is false.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static ButtonComponent.IdStage builder()