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 java.lang.Object implements CheckboxComponent.IdStage, CheckboxComponent.LabelStage, CheckboxComponent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckboxComponent._FinalStageaddAllOption(java.util.List<CheckboxOption> option)The list of options.CheckboxComponent._FinalStageaddOption(CheckboxOption option)The list of options.CheckboxComponentbuild()CheckboxComponent._FinalStagedisabled(java.lang.Boolean disabled)Styles all options and prevents the action.CheckboxComponent._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles all options and prevents the action.CheckboxComponent.Builderfrom(CheckboxComponent other)CheckboxComponent.LabelStageid(java.lang.String id)A unique identifier for the component.CheckboxComponent._FinalStagelabel(java.lang.String label)The text shown above the options.CheckboxComponent._FinalStageoption(java.util.List<CheckboxOption> option)The list of options.CheckboxComponent._FinalStagesaveState(CheckboxComponent.SaveState saveState)Styles the input.CheckboxComponent._FinalStagesaveState(java.util.Optional<CheckboxComponent.SaveState> saveState)Styles the input.CheckboxComponent._FinalStagevalue(java.util.List<java.lang.String> value)The option's that are selected by default.CheckboxComponent._FinalStagevalue(java.util.Optional<java.util.List<java.lang.String>> value)The option's that are selected by default.
-
-
-
Method Detail
-
from
public CheckboxComponent.Builder from(CheckboxComponent other)
- Specified by:
fromin interfaceCheckboxComponent.IdStage
-
id
public CheckboxComponent.LabelStage id(@NotNull java.lang.String id)
A unique identifier for the component.A unique identifier for the component.
- Specified by:
idin interfaceCheckboxComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
public CheckboxComponent._FinalStage label(@NotNull java.lang.String label)
The text shown above the options.The text shown above the options.
- Specified by:
labelin interfaceCheckboxComponent.LabelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public CheckboxComponent._FinalStage disabled(java.lang.Boolean 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
public CheckboxComponent._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles all options and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceCheckboxComponent._FinalStage
-
saveState
public CheckboxComponent._FinalStage saveState(CheckboxComponent.SaveState 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
public CheckboxComponent._FinalStage saveState(java.util.Optional<CheckboxComponent.SaveState> saveState)
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceCheckboxComponent._FinalStage
-
value
public CheckboxComponent._FinalStage value(java.util.List<java.lang.String> 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
public CheckboxComponent._FinalStage value(java.util.Optional<java.util.List<java.lang.String>> value)
The option's that are selected by default.
- Specified by:
valuein interfaceCheckboxComponent._FinalStage
-
addAllOption
public CheckboxComponent._FinalStage addAllOption(java.util.List<CheckboxOption> option)
The list of options. Minimum of 1.
- Specified by:
addAllOptionin interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addOption
public CheckboxComponent._FinalStage addOption(CheckboxOption option)
The list of options. Minimum of 1.
- Specified by:
addOptionin interfaceCheckboxComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
option
public CheckboxComponent._FinalStage option(java.util.List<CheckboxOption> option)
The list of options. Minimum of 1.
- Specified by:
optionin interfaceCheckboxComponent._FinalStage
-
build
public CheckboxComponent build()
- Specified by:
buildin interfaceCheckboxComponent._FinalStage
-
-