Class InputComponent

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

public final class InputComponent extends Object
  • Method Details

    • getId

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

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

      public Optional<String> getPlaceholder()
      Returns:
      An example value shown inside the component when it's empty.
    • getValue

      public Optional<String> getValue()
      Returns:
      An entered value which is already inside the component.
    • getAction

      public Optional<ActionComponent> getAction()
      Returns:
      This can be a Submit Action, URL Action, or Sheets Action.
    • getSaveState

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

      public Optional<Boolean> getDisabled()
      Returns:
      Styles the input 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 InputComponent.IdStage builder()