Class CfnBot.MessageProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.MessageProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.MessageProperty>
- Enclosing interface:
CfnBot.MessageProperty
@Stability(Stable)
public static final class CfnBot.MessageProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.MessageProperty>
A builder for
CfnBot.MessageProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customPayload
(IResolvable customPayload) Sets the value ofCfnBot.MessageProperty.getCustomPayload()
customPayload
(CfnBot.CustomPayloadProperty customPayload) Sets the value ofCfnBot.MessageProperty.getCustomPayload()
imageResponseCard
(IResolvable imageResponseCard) Sets the value ofCfnBot.MessageProperty.getImageResponseCard()
imageResponseCard
(CfnBot.ImageResponseCardProperty imageResponseCard) Sets the value ofCfnBot.MessageProperty.getImageResponseCard()
plainTextMessage
(IResolvable plainTextMessage) Sets the value ofCfnBot.MessageProperty.getPlainTextMessage()
plainTextMessage
(CfnBot.PlainTextMessageProperty plainTextMessage) Sets the value ofCfnBot.MessageProperty.getPlainTextMessage()
ssmlMessage
(IResolvable ssmlMessage) Sets the value ofCfnBot.MessageProperty.getSsmlMessage()
ssmlMessage
(CfnBot.SSMLMessageProperty ssmlMessage) Sets the value ofCfnBot.MessageProperty.getSsmlMessage()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customPayload
Sets the value ofCfnBot.MessageProperty.getCustomPayload()
- Parameters:
customPayload
- A message in a custom format defined by the client application.- Returns:
this
-
customPayload
@Stability(Stable) public CfnBot.MessageProperty.Builder customPayload(CfnBot.CustomPayloadProperty customPayload) Sets the value ofCfnBot.MessageProperty.getCustomPayload()
- Parameters:
customPayload
- A message in a custom format defined by the client application.- Returns:
this
-
imageResponseCard
@Stability(Stable) public CfnBot.MessageProperty.Builder imageResponseCard(IResolvable imageResponseCard) Sets the value ofCfnBot.MessageProperty.getImageResponseCard()
- Parameters:
imageResponseCard
- A message that defines a response card that the client application can show to the user.- Returns:
this
-
imageResponseCard
@Stability(Stable) public CfnBot.MessageProperty.Builder imageResponseCard(CfnBot.ImageResponseCardProperty imageResponseCard) Sets the value ofCfnBot.MessageProperty.getImageResponseCard()
- Parameters:
imageResponseCard
- A message that defines a response card that the client application can show to the user.- Returns:
this
-
plainTextMessage
@Stability(Stable) public CfnBot.MessageProperty.Builder plainTextMessage(IResolvable plainTextMessage) Sets the value ofCfnBot.MessageProperty.getPlainTextMessage()
- Parameters:
plainTextMessage
- A message in plain text format.- Returns:
this
-
plainTextMessage
@Stability(Stable) public CfnBot.MessageProperty.Builder plainTextMessage(CfnBot.PlainTextMessageProperty plainTextMessage) Sets the value ofCfnBot.MessageProperty.getPlainTextMessage()
- Parameters:
plainTextMessage
- A message in plain text format.- Returns:
this
-
ssmlMessage
Sets the value ofCfnBot.MessageProperty.getSsmlMessage()
- Parameters:
ssmlMessage
- A message in Speech Synthesis Markup Language (SSML).- Returns:
this
-
ssmlMessage
@Stability(Stable) public CfnBot.MessageProperty.Builder ssmlMessage(CfnBot.SSMLMessageProperty ssmlMessage) Sets the value ofCfnBot.MessageProperty.getSsmlMessage()
- Parameters:
ssmlMessage
- A message in Speech Synthesis Markup Language (SSML).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.MessageProperty>
- Returns:
- a new instance of
CfnBot.MessageProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-