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