Interface Message.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<Message.Builder,,- Message> - SdkBuilder<Message.Builder,,- Message> - SdkPojo
- Enclosing class:
- Message
- 
Method SummaryModifier and TypeMethodDescriptiondefault Message.BuildercustomPayload(Consumer<CustomPayload.Builder> customPayload) A message in a custom format defined by the client application.customPayload(CustomPayload customPayload) A message in a custom format defined by the client application.default Message.BuilderimageResponseCard(Consumer<ImageResponseCard.Builder> imageResponseCard) A message that defines a response card that the client application can show to the user.imageResponseCard(ImageResponseCard imageResponseCard) A message that defines a response card that the client application can show to the user.default Message.BuilderplainTextMessage(Consumer<PlainTextMessage.Builder> plainTextMessage) A message in plain text format.plainTextMessage(PlainTextMessage plainTextMessage) A message in plain text format.default Message.BuilderssmlMessage(Consumer<SSMLMessage.Builder> ssmlMessage) A message in Speech Synthesis Markup Language (SSML).ssmlMessage(SSMLMessage ssmlMessage) A message in Speech Synthesis Markup Language (SSML).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
plainTextMessageA message in plain text format. - Parameters:
- plainTextMessage- A message in plain text format.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
plainTextMessageA message in plain text format. This is a convenience method that creates an instance of thePlainTextMessage.Builderavoiding the need to create one manually viaPlainTextMessage.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toplainTextMessage(PlainTextMessage).- Parameters:
- plainTextMessage- a consumer that will call methods on- PlainTextMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
customPayloadA message in a custom format defined by the client application. - Parameters:
- customPayload- A message in a custom format defined by the client application.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
customPayloadA message in a custom format defined by the client application. This is a convenience method that creates an instance of theCustomPayload.Builderavoiding the need to create one manually viaCustomPayload.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocustomPayload(CustomPayload).- Parameters:
- customPayload- a consumer that will call methods on- CustomPayload.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
ssmlMessageA message in Speech Synthesis Markup Language (SSML). - Parameters:
- ssmlMessage- A message in Speech Synthesis Markup Language (SSML).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
ssmlMessageA message in Speech Synthesis Markup Language (SSML). This is a convenience method that creates an instance of theSSMLMessage.Builderavoiding the need to create one manually viaSSMLMessage.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tossmlMessage(SSMLMessage).- Parameters:
- ssmlMessage- a consumer that will call methods on- SSMLMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
imageResponseCardA message that defines a response card that the client application can show to the user. - Parameters:
- imageResponseCard- A message that defines a response card that the client application can show to the user.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
imageResponseCardA message that defines a response card that the client application can show to the user. 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 on- ImageResponseCard.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-