Interface Message.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Message.Builder,Message>,SdkBuilder<Message.Builder,Message>,SdkPojo
- Enclosing class:
- Message
public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Message.BuildercustomPayload(Consumer<CustomPayload.Builder> customPayload)A message in a custom format defined by the client application.Message.BuildercustomPayload(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.Message.BuilderimageResponseCard(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.Message.BuilderplainTextMessage(PlainTextMessage plainTextMessage)A message in plain text format.default Message.BuilderssmlMessage(Consumer<SSMLMessage.Builder> ssmlMessage)A message in Speech Synthesis Markup Language (SSML).Message.BuilderssmlMessage(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, sdkFields
-
-
-
-
Method Detail
-
plainTextMessage
Message.Builder plainTextMessage(PlainTextMessage 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
default Message.Builder plainTextMessage(Consumer<PlainTextMessage.Builder> plainTextMessage)
A 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 onPlainTextMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
plainTextMessage(PlainTextMessage)
-
customPayload
Message.Builder customPayload(CustomPayload 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
default Message.Builder customPayload(Consumer<CustomPayload.Builder> customPayload)
A 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 onCustomPayload.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
customPayload(CustomPayload)
-
ssmlMessage
Message.Builder ssmlMessage(SSMLMessage 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
default Message.Builder ssmlMessage(Consumer<SSMLMessage.Builder> ssmlMessage)
A 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 onSSMLMessage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ssmlMessage(SSMLMessage)
-
imageResponseCard
Message.Builder imageResponseCard(ImageResponseCard 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
default Message.Builder imageResponseCard(Consumer<ImageResponseCard.Builder> 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.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)
-
-