Package com.intercom.api.types
Class InputComponent.Builder
java.lang.Object
com.intercom.api.types.InputComponent.Builder
- All Implemented Interfaces:
InputComponent._FinalStage,InputComponent.IdStage
- Enclosing class:
InputComponent
public static final class InputComponent.Builder
extends Object
implements InputComponent.IdStage, InputComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaction(ActionComponent action) This can be a Submit Action, URL Action, or Sheets Action.action(Optional<ActionComponent> action) build()Styles the input and prevents the action.from(InputComponent other) A unique identifier for the component.The text shown above the input.placeholder(String placeholder) An example value shown inside the component when it's empty.placeholder(Optional<String> placeholder) saveState(InputComponent.SaveState saveState) Styles the input.saveState(Optional<InputComponent.SaveState> saveState) An entered value which is already inside the component.
-
Method Details
-
from
- Specified by:
fromin interfaceInputComponent.IdStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceInputComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
Styles the input and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceInputComponent._FinalStage
-
saveState
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
- Specified by:
saveStatein interfaceInputComponent._FinalStage
-
action
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
- Specified by:
actionin interfaceInputComponent._FinalStage
-
value
An entered value which is already inside the component.
- Specified by:
valuein interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceInputComponent._FinalStage
-
placeholder
An example value shown inside the component when it's empty.
- Specified by:
placeholderin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
placeholder
- Specified by:
placeholderin interfaceInputComponent._FinalStage
-
label
The text shown above the input.
- Specified by:
labelin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
- Specified by:
labelin interfaceInputComponent._FinalStage
-
build
- Specified by:
buildin interfaceInputComponent._FinalStage
-