Interface CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnBotPropsMixin
@Stability(Stable)
public static interface CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Provides settings for a message that is sent to the user when a fulfillment Lambda function starts running.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lex.*;
FulfillmentStartResponseSpecificationProperty fulfillmentStartResponseSpecificationProperty = FulfillmentStartResponseSpecificationProperty.builder()
.allowInterrupt(false)
.delayInSeconds(123)
.messageGroups(List.of(MessageGroupProperty.builder()
.message(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.title("title")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build())
.variations(List.of(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.title("title")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build()))
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectDetermines whether the user can interrupt the start message while it is playing.default NumberThe delay between when the Lambda fulfillment function starts running and the start message is played.default Object1 - 5 message groups that contain start messages.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAllowInterrupt
Determines whether the user can interrupt the start message while it is playing.Returns union: either
BooleanorIResolvable- See Also:
-
getDelayInSeconds
The delay between when the Lambda fulfillment function starts running and the start message is played.If the Lambda function returns before the delay is over, the start message isn't played.
- See Also:
-
getMessageGroups
1 - 5 message groups that contain start messages.Amazon Lex chooses one of the messages to play to the user.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnBotPropsMixin.MessageGroupProperty>- See Also:
-
builder
@Stability(Stable) static CfnBotPropsMixin.FulfillmentStartResponseSpecificationProperty.Builder builder()
-