Interface UtteranceBotResponse.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>,SdkBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>,SdkPojo
- Enclosing class:
- UtteranceBotResponse
public static interface UtteranceBotResponse.Builder extends SdkPojo, CopyableBuilder<UtteranceBotResponse.Builder,UtteranceBotResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UtteranceBotResponse.Buildercontent(String content)The text of the response to the utterance from the bot.UtteranceBotResponse.BuildercontentType(String contentType)The type of the response.UtteranceBotResponse.BuildercontentType(UtteranceContentType contentType)The type of the response.default UtteranceBotResponse.BuilderimageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)Sets the value of the ImageResponseCard property for this object.UtteranceBotResponse.BuilderimageResponseCard(ImageResponseCard imageResponseCard)Sets the value of the ImageResponseCard property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
content
UtteranceBotResponse.Builder content(String content)
The text of the response to the utterance from the bot.
- Parameters:
content- The text of the response to the utterance from the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
UtteranceBotResponse.Builder contentType(String contentType)
The type of the response. The following values are possible:
-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
- Parameters:
contentType- The type of the response. The following values are possible:-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UtteranceContentType,UtteranceContentType
-
-
contentType
UtteranceBotResponse.Builder contentType(UtteranceContentType contentType)
The type of the response. The following values are possible:
-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
- Parameters:
contentType- The type of the response. The following values are possible:-
PlainText– A plain text string. -
CustomPayload– A response string that you can customize to include data or metadata for your application. -
SSML– A string that includes Speech Synthesis Markup Language to customize the audio response. -
ImageResponseCard– An image with buttons that the customer can select. See ImageResponseCard for more information.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
UtteranceContentType,UtteranceContentType
-
-
imageResponseCard
UtteranceBotResponse.Builder imageResponseCard(ImageResponseCard imageResponseCard)
Sets the value of the ImageResponseCard property for this object.- Parameters:
imageResponseCard- The new value for the ImageResponseCard property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageResponseCard
default UtteranceBotResponse.Builder imageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard)
Sets the value of the ImageResponseCard property for this object. This is a convenience method that creates an instance of theImageResponseCard.Builderavoiding the need to create one manually viaImageResponseCard.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimageResponseCard(ImageResponseCard).- Parameters:
imageResponseCard- a consumer that will call methods onImageResponseCard.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
imageResponseCard(ImageResponseCard)
-
-