public static interface Message.Builder extends SdkPojo, CopyableBuilder<Message.Builder,Message>
| Modifier and Type | Method and Description |
|---|---|
default Message.Builder |
customPayload(Consumer<CustomPayload.Builder> customPayload)
A message in a custom format defined by the client application.
|
Message.Builder |
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.
|
Message.Builder |
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.
|
Message.Builder |
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).
|
Message.Builder |
ssmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildMessage.Builder plainTextMessage(PlainTextMessage plainTextMessage)
A message in plain text format.
plainTextMessage - A message in plain text format.default Message.Builder plainTextMessage(Consumer<PlainTextMessage.Builder> plainTextMessage)
A message in plain text format.
This is a convenience that creates an instance of thePlainTextMessage.Builder avoiding the need to
create one manually via PlainTextMessage.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to plainTextMessage(PlainTextMessage).plainTextMessage - a consumer that will call methods on PlainTextMessage.BuilderplainTextMessage(PlainTextMessage)Message.Builder customPayload(CustomPayload customPayload)
A message in a custom format defined by the client application.
customPayload - A message in a custom format defined by the client application.default Message.Builder customPayload(Consumer<CustomPayload.Builder> customPayload)
A message in a custom format defined by the client application.
This is a convenience that creates an instance of theCustomPayload.Builder avoiding the need to
create one manually via CustomPayload.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to customPayload(CustomPayload).customPayload - a consumer that will call methods on CustomPayload.BuildercustomPayload(CustomPayload)Message.Builder ssmlMessage(SSMLMessage ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
ssmlMessage - A message in Speech Synthesis Markup Language (SSML).default Message.Builder ssmlMessage(Consumer<SSMLMessage.Builder> ssmlMessage)
A message in Speech Synthesis Markup Language (SSML).
This is a convenience that creates an instance of theSSMLMessage.Builder avoiding the need to create
one manually via SSMLMessage.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to ssmlMessage(SSMLMessage).ssmlMessage - a consumer that will call methods on SSMLMessage.BuilderssmlMessage(SSMLMessage)Message.Builder imageResponseCard(ImageResponseCard imageResponseCard)
A message that defines a response card that the client application can show to the user.
imageResponseCard - A message that defines a response card that the client application can show to the user.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 that creates an instance of theImageResponseCard.Builder avoiding the need to
create one manually via ImageResponseCard.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to imageResponseCard(ImageResponseCard).imageResponseCard - a consumer that will call methods on ImageResponseCard.BuilderimageResponseCard(ImageResponseCard)Copyright © 2021. All rights reserved.