Class DropdownComponent

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

public final class DropdownComponent extends Object
  • Method Details

    • getId

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

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

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

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

      public Optional<DropdownComponent.SaveState> getSaveState()
      Returns:
      Styles all options and prevents the action. Default is unsaved. Will be overridden if save_state is 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.
    • 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 DropdownComponent.IdStage builder()