Package com.intercom.api.types
Class TextComponent
- java.lang.Object
-
- com.intercom.api.types.TextComponent
-
public final class TextComponent extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTextComponent._FinalStagestatic classTextComponent.Alignstatic classTextComponent.Builderstatic classTextComponent.Stylestatic interfaceTextComponent.TextStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TextComponent.TextStagebuilder()booleanequals(java.lang.Object other)java.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()java.util.Optional<TextComponent.Align>getAlign()java.util.Optional<java.lang.String>getBottomMargin()java.util.Optional<java.lang.String>getId()java.util.Optional<TextComponent.Style>getStyle()java.lang.StringgetText()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getId
public java.util.Optional<java.lang.String> getId()
- Returns:
- A unique identifier for the component.
-
getText
public java.lang.String getText()
- Returns:
- The text that will be rendered.
-
getAlign
public java.util.Optional<TextComponent.Align> getAlign()
- Returns:
- Aligns the text. Default is
left.
-
getStyle
public java.util.Optional<TextComponent.Style> getStyle()
- Returns:
- Styles the text. Default is
paragraph.
-
getBottomMargin
public java.util.Optional<java.lang.String> getBottomMargin()
- Returns:
- Disables a component's margin-bottom of 10px.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
builder
public static TextComponent.TextStage builder()
-
-