public abstract class TextContentHelper extends Object
Constructor and Description |
---|
TextContentHelper() |
Modifier and Type | Method and Description |
---|---|
abstract com.amazon.ask.model.interfaces.display.TextContent |
build()
Abstract method to build an instance of TextContent.
|
static PlainTextContentContentHelper |
forPlainText()
Returns an instance of PlainTextContentContentHelper.
|
static RichContentTextContentHelper |
forRichText()
Returns an instance of RichContentTextContentHelper.
|
TextContentHelper |
withPrimaryText(String primaryText)
Adds primary text to TextContentHelper.
|
TextContentHelper |
withSecondaryText(String secondaryText)
Adds secondary text to TextContentHelper.
|
TextContentHelper |
withTertiaryText(String tertiaryText)
Adds tertiary text to TextContentHelper.
|
public static PlainTextContentContentHelper forPlainText()
PlainTextContentContentHelper
.public static RichContentTextContentHelper forRichText()
RichContentTextContentHelper
.public TextContentHelper withPrimaryText(String primaryText)
primaryText
- primary text.TextContentHelper
.public TextContentHelper withSecondaryText(String secondaryText)
secondaryText
- secondary text.TextContentHelper
.public TextContentHelper withTertiaryText(String tertiaryText)
tertiaryText
- tertiary text.TextContentHelper
.public abstract com.amazon.ask.model.interfaces.display.TextContent build()
TextContent
.Copyright © Amazon.com, Inc. or its affiliates. All Rights Reserved.