Package com.intercom.api.types
Class CheckboxComponent.Builder
java.lang.Object
com.intercom.api.types.CheckboxComponent.Builder
- All Implemented Interfaces:
CheckboxComponent._FinalStage,CheckboxComponent.IdStage,CheckboxComponent.LabelStage
- Enclosing class:
CheckboxComponent
public static final class CheckboxComponent.Builder
extends Object
implements CheckboxComponent.IdStage, CheckboxComponent.LabelStage, CheckboxComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOption(List<CheckboxOption> option) The list of options.addOption(CheckboxOption option) The list of options.build()Styles all options and prevents the action.from(CheckboxComponent other) A unique identifier for the component.The text shown above the options.option(List<CheckboxOption> option) saveState(CheckboxComponent.SaveState saveState) Styles the input.saveState(Optional<CheckboxComponent.SaveState> saveState) The option's that are selected by default.
-
Method Details
-
from
- Specified by:
fromin interfaceCheckboxComponent.IdStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceCheckboxComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
The text shown above the options.
- Specified by:
labelin interfaceCheckboxComponent.LabelStage- 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 interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
- Specified by:
disabledin interfaceCheckboxComponent._FinalStage
-
saveState
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
- Specified by:
saveStatein interfaceCheckboxComponent._FinalStage
-
value
The option's that are selected by default.
- Specified by:
valuein interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
- Specified by:
valuein interfaceCheckboxComponent._FinalStage
-
addAllOption
The list of options. Minimum of 1.
- Specified by:
addAllOptionin interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addOption
The list of options. Minimum of 1.
- Specified by:
addOptionin interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
option
- Specified by:
optionin interfaceCheckboxComponent._FinalStage
-
build
- Specified by:
buildin interfaceCheckboxComponent._FinalStage
-