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