Class InputComponent.Builder
- java.lang.Object
-
- com.intercom.api.types.InputComponent.Builder
-
- All Implemented Interfaces:
InputComponent._FinalStage,InputComponent.IdStage
- Enclosing class:
- InputComponent
public static final class InputComponent.Builder extends java.lang.Object implements InputComponent.IdStage, InputComponent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputComponent._FinalStageaction(ActionComponent action)This can be a Submit Action, URL Action, or Sheets Action.InputComponent._FinalStageaction(java.util.Optional<ActionComponent> action)This can be a Submit Action, URL Action, or Sheets Action.InputComponentbuild()InputComponent._FinalStagedisabled(java.lang.Boolean disabled)Styles the input and prevents the action.InputComponent._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles the input and prevents the action.InputComponent.Builderfrom(InputComponent other)InputComponent._FinalStageid(java.lang.String id)A unique identifier for the component.InputComponent._FinalStagelabel(java.lang.String label)The text shown above the input.InputComponent._FinalStagelabel(java.util.Optional<java.lang.String> label)The text shown above the input.InputComponent._FinalStageplaceholder(java.lang.String placeholder)An example value shown inside the component when it's empty.InputComponent._FinalStageplaceholder(java.util.Optional<java.lang.String> placeholder)An example value shown inside the component when it's empty.InputComponent._FinalStagesaveState(InputComponent.SaveState saveState)Styles the input.InputComponent._FinalStagesaveState(java.util.Optional<InputComponent.SaveState> saveState)Styles the input.InputComponent._FinalStagevalue(java.lang.String value)An entered value which is already inside the component.InputComponent._FinalStagevalue(java.util.Optional<java.lang.String> value)An entered value which is already inside the component.
-
-
-
Method Detail
-
from
public InputComponent.Builder from(InputComponent other)
- Specified by:
fromin interfaceInputComponent.IdStage
-
id
public InputComponent._FinalStage id(@NotNull java.lang.String id)
A unique identifier for the component.A unique identifier for the component.
- Specified by:
idin interfaceInputComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public InputComponent._FinalStage disabled(java.lang.Boolean disabled)
Styles the input and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public InputComponent._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles the input and prevents the action. Default is false. Will be overridden if save_state is saved.
- Specified by:
disabledin interfaceInputComponent._FinalStage
-
saveState
public InputComponent._FinalStage saveState(InputComponent.SaveState saveState)
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
saveState
public InputComponent._FinalStage saveState(java.util.Optional<InputComponent.SaveState> saveState)
Styles the input. Default is
unsaved. Prevent action withsaved.- Specified by:
saveStatein interfaceInputComponent._FinalStage
-
action
public InputComponent._FinalStage action(ActionComponent action)
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
action
public InputComponent._FinalStage action(java.util.Optional<ActionComponent> action)
This can be a Submit Action, URL Action, or Sheets Action.
- Specified by:
actionin interfaceInputComponent._FinalStage
-
value
public InputComponent._FinalStage value(java.lang.String value)
An entered value which is already inside the component.
- Specified by:
valuein interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public InputComponent._FinalStage value(java.util.Optional<java.lang.String> value)
An entered value which is already inside the component.
- Specified by:
valuein interfaceInputComponent._FinalStage
-
placeholder
public InputComponent._FinalStage placeholder(java.lang.String placeholder)
An example value shown inside the component when it's empty.
- Specified by:
placeholderin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
placeholder
public InputComponent._FinalStage placeholder(java.util.Optional<java.lang.String> placeholder)
An example value shown inside the component when it's empty.
- Specified by:
placeholderin interfaceInputComponent._FinalStage
-
label
public InputComponent._FinalStage label(java.lang.String label)
The text shown above the input.
- Specified by:
labelin interfaceInputComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
public InputComponent._FinalStage label(java.util.Optional<java.lang.String> label)
The text shown above the input.
- Specified by:
labelin interfaceInputComponent._FinalStage
-
build
public InputComponent build()
- Specified by:
buildin interfaceInputComponent._FinalStage
-
-