Class SingleSelectComponent

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

public final class SingleSelectComponent extends Object
  • Method Details

    • getId

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

      public List<SingleSelectOption> getOptions()
      Returns:
      The list of options. Can provide 2 to 10.
    • getLabel

      public Optional<String> getLabel()
      Returns:
      The text shown above the options.
    • getValue

      public Optional<String> getValue()
      Returns:
      The option that is selected by default.
    • getSaveState

      public Optional<SingleSelectComponent.SaveState> getSaveState()
      Returns:
      Styles the input. Default is unsaved. Prevent action with saved.
    • getDisabled

      public Optional<Boolean> getDisabled()
      Returns:
      Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved.
    • getAction

      public Optional<ActionComponent> getAction()
      Returns:
      This can be a Submit Action, URL Action, or Sheets Action.
    • 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 SingleSelectComponent.IdStage builder()