Package com.intercom.api.types
Class DropdownComponent.Builder
java.lang.Object
com.intercom.api.types.DropdownComponent.Builder
- All Implemented Interfaces:
DropdownComponent._FinalStage,DropdownComponent.IdStage
- Enclosing class:
DropdownComponent
public static final class DropdownComponent.Builder
extends Object
implements DropdownComponent.IdStage, DropdownComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptions(List<DropdownOption> options) The list of options.addOptions(DropdownOption options) The list of options.build()Styles all options and prevents the action.from(DropdownComponent other) A unique identifier for the component.The text shown above the dropdown.options(List<DropdownOption> options) saveState(DropdownComponent.SaveState saveState) Styles all options and prevents the action.saveState(Optional<DropdownComponent.SaveState> saveState) The option that is selected by default.
-
Method Details
-
from
- Specified by:
fromin interfaceDropdownComponent.IdStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceDropdownComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceDropdownComponent._FinalStage
-
saveState
Styles all options and prevents the action. Default is
unsaved. Will be overridden ifsave_stateissaved.- Specified by:
saveStatein interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
- Specified by:
saveStatein interfaceDropdownComponent._FinalStage
-
value
The option that is selected by default.
- Specified by:
valuein interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceDropdownComponent._FinalStage
-
label
The text shown above the dropdown.
- Specified by:
labelin interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
- Specified by:
labelin interfaceDropdownComponent._FinalStage
-
addAllOptions
The list of options. Can provide 2 to 10.
- Specified by:
addAllOptionsin interfaceDropdownComponent._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 interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
- Specified by:
optionsin interfaceDropdownComponent._FinalStage
-
build
- Specified by:
buildin interfaceDropdownComponent._FinalStage
-