Interface Message.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Message.Builder,
,Message> SdkBuilder<Message.Builder,
,Message> SdkPojo
- Enclosing class:
Message
-
Method Summary
Modifier and TypeMethodDescriptiondefault Message.Builder
customPayload
(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.Builder
imageResponseCard
(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.Builder
plainTextMessage
(Consumer<PlainTextMessage.Builder> plainTextMessage) A message in plain text format.plainTextMessage
(PlainTextMessage plainTextMessage) A message in plain text format.default Message.Builder
ssmlMessage
(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.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
plainTextMessage
A 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.
-
plainTextMessage
A message in plain text format.
This is a convenience method that creates an instance of thePlainTextMessage.Builder
avoiding the need to create one manually viaPlainTextMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplainTextMessage(PlainTextMessage)
.- Parameters:
plainTextMessage
- a consumer that will call methods onPlainTextMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
customPayload
A 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.
-
customPayload
A message in a custom format defined by the client application.
This is a convenience method that creates an instance of theCustomPayload.Builder
avoiding the need to create one manually viaCustomPayload.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustomPayload(CustomPayload)
.- Parameters:
customPayload
- a consumer that will call methods onCustomPayload.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ssmlMessage
A 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.
-
ssmlMessage
A message in Speech Synthesis Markup Language (SSML).
This is a convenience method that creates an instance of theSSMLMessage.Builder
avoiding the need to create one manually viaSSMLMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tossmlMessage(SSMLMessage)
.- Parameters:
ssmlMessage
- a consumer that will call methods onSSMLMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
imageResponseCard
A 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.
-
imageResponseCard
A 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.Builder
avoiding the need to create one manually viaImageResponseCard.builder()
.When the
Consumer
completes,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:
-