Package com.intercom.api.types
Class TextAreaComponent.Builder
- java.lang.Object
-
- com.intercom.api.types.TextAreaComponent.Builder
-
- All Implemented Interfaces:
TextAreaComponent._FinalStage,TextAreaComponent.IdStage
- Enclosing class:
- TextAreaComponent
public static final class TextAreaComponent.Builder extends java.lang.Object implements TextAreaComponent.IdStage, TextAreaComponent._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextAreaComponentbuild()TextAreaComponent._FinalStagedisabled(java.lang.Boolean disabled)Styles the input and prevents the action.TextAreaComponent._FinalStagedisabled(java.util.Optional<java.lang.Boolean> disabled)Styles the input and prevents the action.TextAreaComponent._FinalStageerror(java.lang.Boolean error)Styles the input as failed.TextAreaComponent._FinalStageerror(java.util.Optional<java.lang.Boolean> error)Styles the input as failed.TextAreaComponent.Builderfrom(TextAreaComponent other)TextAreaComponent._FinalStageid(java.lang.String id)A unique identifier for the component.TextAreaComponent._FinalStagelabel(java.lang.String label)The text shown above the text area.TextAreaComponent._FinalStagelabel(java.util.Optional<java.lang.String> label)The text shown above the text area.TextAreaComponent._FinalStageplaceholder(java.lang.String placeholder)An example value shown inside the component when it's empty.TextAreaComponent._FinalStageplaceholder(java.util.Optional<java.lang.String> placeholder)An example value shown inside the component when it's empty.TextAreaComponent._FinalStagevalue(java.lang.String value)An entered value which is already inside the component.TextAreaComponent._FinalStagevalue(java.util.Optional<java.lang.String> value)An entered value which is already inside the component.
-
-
-
Method Detail
-
from
public TextAreaComponent.Builder from(TextAreaComponent other)
- Specified by:
fromin interfaceTextAreaComponent.IdStage
-
id
public TextAreaComponent._FinalStage id(@NotNull java.lang.String id)
A unique identifier for the component.A unique identifier for the component.
- Specified by:
idin interfaceTextAreaComponent.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public TextAreaComponent._FinalStage disabled(java.lang.Boolean disabled)
Styles the input and prevents the action. Default is false.
- Specified by:
disabledin interfaceTextAreaComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
disabled
public TextAreaComponent._FinalStage disabled(java.util.Optional<java.lang.Boolean> disabled)
Styles the input and prevents the action. Default is false.
- Specified by:
disabledin interfaceTextAreaComponent._FinalStage
-
error
public TextAreaComponent._FinalStage error(java.lang.Boolean error)
Styles the input as failed. Default is false.
- Specified by:
errorin interfaceTextAreaComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
error
public TextAreaComponent._FinalStage error(java.util.Optional<java.lang.Boolean> error)
Styles the input as failed. Default is false.
- Specified by:
errorin interfaceTextAreaComponent._FinalStage
-
value
public TextAreaComponent._FinalStage value(java.lang.String value)
An entered value which is already inside the component.
- Specified by:
valuein interfaceTextAreaComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
value
public TextAreaComponent._FinalStage value(java.util.Optional<java.lang.String> value)
An entered value which is already inside the component.
- Specified by:
valuein interfaceTextAreaComponent._FinalStage
-
placeholder
public TextAreaComponent._FinalStage placeholder(java.lang.String placeholder)
An example value shown inside the component when it's empty.
- Specified by:
placeholderin interfaceTextAreaComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
placeholder
public TextAreaComponent._FinalStage placeholder(java.util.Optional<java.lang.String> placeholder)
An example value shown inside the component when it's empty.
- Specified by:
placeholderin interfaceTextAreaComponent._FinalStage
-
label
public TextAreaComponent._FinalStage label(java.lang.String label)
The text shown above the text area.
- Specified by:
labelin interfaceTextAreaComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
label
public TextAreaComponent._FinalStage label(java.util.Optional<java.lang.String> label)
The text shown above the text area.
- Specified by:
labelin interfaceTextAreaComponent._FinalStage
-
build
public TextAreaComponent build()
- Specified by:
buildin interfaceTextAreaComponent._FinalStage
-
-