Package com.intercom.api.types
Class SingleSelectComponent.Builder
java.lang.Object
com.intercom.api.types.SingleSelectComponent.Builder
- All Implemented Interfaces:
SingleSelectComponent._FinalStage,SingleSelectComponent.IdStage
- Enclosing class:
SingleSelectComponent
public static final class SingleSelectComponent.Builder
extends Object
implements SingleSelectComponent.IdStage, SingleSelectComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaction(ActionComponent action) This can be a Submit Action, URL Action, or Sheets Action.action(Optional<ActionComponent> action) addAllOptions(List<SingleSelectOption> options) The list of options.addOptions(SingleSelectOption options) The list of options.build()Styles all options and prevents the action.from(SingleSelectComponent other) A unique identifier for the component.The text shown above the options.options(List<SingleSelectOption> options) saveState(SingleSelectComponent.SaveState saveState) Styles the input.saveState(Optional<SingleSelectComponent.SaveState> saveState) The option that is selected by default.
-
Method Details
-
from
- Specified by:
fromin interfaceSingleSelectComponent.IdStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceSingleSelectComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
- Specified by:
actionin interfaceSingleSelectComponent._FinalStage
-
disabled
Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceSingleSelectComponent._FinalStage
-
saveState
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
public SingleSelectComponent._FinalStage saveState(Optional<SingleSelectComponent.SaveState> saveState) - Specified by:
saveStatein interfaceSingleSelectComponent._FinalStage
-
value
The option that is selected by default.
- Specified by:
valuein interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceSingleSelectComponent._FinalStage
-
label
The text shown above the options.
- Specified by:
labelin interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
- Specified by:
labelin interfaceSingleSelectComponent._FinalStage
-
addAllOptions
The list of options. Can provide 2 to 10.
- Specified by:
addAllOptionsin interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addOptions
The list of options. Can provide 2 to 10.
- Specified by:
addOptionsin interfaceSingleSelectComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
- Specified by:
optionsin interfaceSingleSelectComponent._FinalStage
-
build
- Specified by:
buildin interfaceSingleSelectComponent._FinalStage
-