Package com.intercom.api.types
Class TextComponent.Builder
java.lang.Object
com.intercom.api.types.TextComponent.Builder
- All Implemented Interfaces:
TextComponent._FinalStage,TextComponent.TextStage
- Enclosing class:
TextComponent
public static final class TextComponent.Builder
extends Object
implements TextComponent.TextStage, TextComponent._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionalign(TextComponent.Align align) Aligns the text.align(Optional<TextComponent.Align> align) bottomMargin(String bottomMargin) Disables a component's margin-bottom of 10px.bottomMargin(Optional<String> bottomMargin) build()from(TextComponent other) A unique identifier for the component.style(TextComponent.Style style) Styles the text.style(Optional<TextComponent.Style> style) The text that will be rendered.
-
Method Details
-
from
- Specified by:
fromin interfaceTextComponent.TextStage
-
text
The text that will be rendered.
- Specified by:
textin interfaceTextComponent.TextStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bottomMargin
Disables a component's margin-bottom of 10px.
- Specified by:
bottomMarginin interfaceTextComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
bottomMargin
- Specified by:
bottomMarginin interfaceTextComponent._FinalStage
-
style
Styles the text. Default is
paragraph.- Specified by:
stylein interfaceTextComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
style
- Specified by:
stylein interfaceTextComponent._FinalStage
-
align
Aligns the text. Default is
left.- Specified by:
alignin interfaceTextComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
align
- Specified by:
alignin interfaceTextComponent._FinalStage
-
id
A unique identifier for the component.
- Specified by:
idin interfaceTextComponent._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
id
- Specified by:
idin interfaceTextComponent._FinalStage
-
build
- Specified by:
buildin interfaceTextComponent._FinalStage
-