Package com.intercom.api.types
Class DropdownComponent.Builder
- java.lang.Object
-
- com.intercom.api.types.DropdownComponent.Builder
-
- All Implemented Interfaces:
DropdownComponent._FinalStage,DropdownComponent.IdStage
- Enclosing class:
- DropdownComponent
public static final class DropdownComponent.Builder extends java.lang.Object implements DropdownComponent.IdStage, DropdownComponent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DropdownComponent._FinalStageaddAllOptions(java.util.List<DropdownOption> options)The list of options.DropdownComponent._FinalStageaddOptions(DropdownOption options)The list of options.DropdownComponentbuild()DropdownComponent._FinalStagedisabled(java.lang.Boolean disabled)Styles all options and prevents the action.DropdownComponent._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles all options and prevents the action.DropdownComponent.Builderfrom(DropdownComponent other)DropdownComponent._FinalStageid(java.lang.String id)A unique identifier for the component.DropdownComponent._FinalStagelabel(java.lang.String label)The text shown above the dropdown.DropdownComponent._FinalStagelabel(java.util.Optional<java.lang.String> label)The text shown above the dropdown.DropdownComponent._FinalStageoptions(java.util.List<DropdownOption> options)The list of options.DropdownComponent._FinalStagesaveState(DropdownComponent.SaveState saveState)Styles all options and prevents the action.DropdownComponent._FinalStagesaveState(java.util.Optional<DropdownComponent.SaveState> saveState)Styles all options and prevents the action.DropdownComponent._FinalStagevalue(java.lang.String value)The option that is selected by default.DropdownComponent._FinalStagevalue(java.util.Optional<java.lang.String> value)The option that is selected by default.
-
-
-
Method Detail
-
from
public DropdownComponent.Builder from(DropdownComponent other)
- Specified by:
fromin interfaceDropdownComponent.IdStage
-
id
public DropdownComponent._FinalStage id(@NotNull java.lang.String id)
A unique identifier for the component.A unique identifier for the component.
- Specified by:
idin interfaceDropdownComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public DropdownComponent._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 interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public DropdownComponent._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 interfaceDropdownComponent._FinalStage
-
saveState
public DropdownComponent._FinalStage saveState(DropdownComponent.SaveState saveState)
Styles all options and prevents the action. Default is
unsaved. Will be overridden ifsave_stateissaved.- Specified by:
saveStatein interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
public DropdownComponent._FinalStage saveState(java.util.Optional<DropdownComponent.SaveState> saveState)
Styles all options and prevents the action. Default is
unsaved. Will be overridden ifsave_stateissaved.- Specified by:
saveStatein interfaceDropdownComponent._FinalStage
-
value
public DropdownComponent._FinalStage value(java.lang.String value)
The option that is selected by default.
- Specified by:
valuein interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public DropdownComponent._FinalStage value(java.util.Optional<java.lang.String> value)
The option that is selected by default.
- Specified by:
valuein interfaceDropdownComponent._FinalStage
-
label
public DropdownComponent._FinalStage label(java.lang.String label)
The text shown above the dropdown.
- Specified by:
labelin interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
public DropdownComponent._FinalStage label(java.util.Optional<java.lang.String> label)
The text shown above the dropdown.
- Specified by:
labelin interfaceDropdownComponent._FinalStage
-
addAllOptions
public DropdownComponent._FinalStage addAllOptions(java.util.List<DropdownOption> options)
The list of options. Can provide 2 to 10.
- Specified by:
addAllOptionsin interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addOptions
public DropdownComponent._FinalStage addOptions(DropdownOption options)
The list of options. Can provide 2 to 10.
- Specified by:
addOptionsin interfaceDropdownComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
options
public DropdownComponent._FinalStage options(java.util.List<DropdownOption> options)
The list of options. Can provide 2 to 10.
- Specified by:
optionsin interfaceDropdownComponent._FinalStage
-
build
public DropdownComponent build()
- Specified by:
buildin interfaceDropdownComponent._FinalStage
-
-