Package com.intercom.api.types
Class CheckboxOption.Builder
- java.lang.Object
-
- com.intercom.api.types.CheckboxOption.Builder
-
- All Implemented Interfaces:
CheckboxOption._FinalStage,CheckboxOption.IdStage,CheckboxOption.TextStage
- Enclosing class:
- CheckboxOption
public static final class CheckboxOption.Builder extends java.lang.Object implements CheckboxOption.IdStage, CheckboxOption.TextStage, CheckboxOption._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckboxOptionbuild()CheckboxOption._FinalStagedisabled(java.lang.Boolean disabled)Styles the option and prevents the action.CheckboxOption._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles the option and prevents the action.CheckboxOption.Builderfrom(CheckboxOption other)CheckboxOption.TextStageid(java.lang.String id)A unique identifier for the option.CheckboxOption._FinalStagetext(java.lang.String text)The text shown next to the checkbox.
-
-
-
Method Detail
-
from
public CheckboxOption.Builder from(CheckboxOption other)
- Specified by:
fromin interfaceCheckboxOption.IdStage
-
id
public CheckboxOption.TextStage id(@NotNull java.lang.String id)
A unique identifier for the option.A unique identifier for the option.
- Specified by:
idin interfaceCheckboxOption.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
text
public CheckboxOption._FinalStage text(@NotNull java.lang.String text)
The text shown next to the checkbox.The text shown next to the checkbox.
- Specified by:
textin interfaceCheckboxOption.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public CheckboxOption._FinalStage disabled(java.lang.Boolean disabled)
Styles the option and prevents the action. Default is false.
- Specified by:
disabledin interfaceCheckboxOption._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public CheckboxOption._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles the option and prevents the action. Default is false.
- Specified by:
disabledin interfaceCheckboxOption._FinalStage
-
build
public CheckboxOption build()
- Specified by:
buildin interfaceCheckboxOption._FinalStage
-
-