@Stability(value=Stable)
public static interface CfnBot.FulfillmentStartResponseSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lex.*;
FulfillmentStartResponseSpecificationProperty fulfillmentStartResponseSpecificationProperty = FulfillmentStartResponseSpecificationProperty.builder()
.delayInSeconds(123)
.messageGroups(List.of(MessageGroupProperty.builder()
.message(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build())
// the properties below are optional
.variations(List.of(MessageProperty.builder()
.customPayload(CustomPayloadProperty.builder()
.value("value")
.build())
.imageResponseCard(ImageResponseCardProperty.builder()
.title("title")
// the properties below are optional
.buttons(List.of(ButtonProperty.builder()
.text("text")
.value("value")
.build()))
.imageUrl("imageUrl")
.subtitle("subtitle")
.build())
.plainTextMessage(PlainTextMessageProperty.builder()
.value("value")
.build())
.ssmlMessage(SSMLMessageProperty.builder()
.value("value")
.build())
.build()))
.build()))
// the properties below are optional
.allowInterrupt(false)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBot.FulfillmentStartResponseSpecificationProperty.Builder
A builder for
CfnBot.FulfillmentStartResponseSpecificationProperty |
static class |
CfnBot.FulfillmentStartResponseSpecificationProperty.Jsii$Proxy
An implementation for
CfnBot.FulfillmentStartResponseSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBot.FulfillmentStartResponseSpecificationProperty.Builder |
builder() |
default Object |
getAllowInterrupt()
Determines whether the user can interrupt the start message while it is playing.
|
Number |
getDelayInSeconds()
The delay between when the Lambda fulfillment function starts running and the start message is played.
|
Object |
getMessageGroups()
One to 5 message groups that contain start messages.
|
@Stability(value=Stable) @NotNull Number getDelayInSeconds()
If the Lambda function returns before the delay is over, the start message isn't played.
@Stability(value=Stable) @NotNull Object getMessageGroups()
Amazon Lex chooses one of the messages to play to the user.
@Stability(value=Stable) @Nullable default Object getAllowInterrupt()
@Stability(value=Stable) static CfnBot.FulfillmentStartResponseSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.