Class CfnBot.ResponseSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.ResponseSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.ResponseSpecificationProperty>
- Enclosing interface:
CfnBot.ResponseSpecificationProperty
@Stability(Stable)
public static final class CfnBot.ResponseSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.ResponseSpecificationProperty>
A builder for
CfnBot.ResponseSpecificationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallowInterrupt
(Boolean allowInterrupt) Sets the value ofCfnBot.ResponseSpecificationProperty.getAllowInterrupt()
allowInterrupt
(IResolvable allowInterrupt) Sets the value ofCfnBot.ResponseSpecificationProperty.getAllowInterrupt()
build()
Builds the configured instance.messageGroupsList
(List<? extends Object> messageGroupsList) Sets the value ofCfnBot.ResponseSpecificationProperty.getMessageGroupsList()
messageGroupsList
(IResolvable messageGroupsList) Sets the value ofCfnBot.ResponseSpecificationProperty.getMessageGroupsList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
messageGroupsList
@Stability(Stable) public CfnBot.ResponseSpecificationProperty.Builder messageGroupsList(IResolvable messageGroupsList) Sets the value ofCfnBot.ResponseSpecificationProperty.getMessageGroupsList()
- Parameters:
messageGroupsList
- A collection of responses that Amazon Lex can send to the user. This parameter is required. Amazon Lex chooses the actual response to send at runtime.- Returns:
this
-
messageGroupsList
@Stability(Stable) public CfnBot.ResponseSpecificationProperty.Builder messageGroupsList(List<? extends Object> messageGroupsList) Sets the value ofCfnBot.ResponseSpecificationProperty.getMessageGroupsList()
- Parameters:
messageGroupsList
- A collection of responses that Amazon Lex can send to the user. This parameter is required. Amazon Lex chooses the actual response to send at runtime.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.ResponseSpecificationProperty.Builder allowInterrupt(Boolean allowInterrupt) Sets the value ofCfnBot.ResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Indicates whether the user can interrupt a speech response from Amazon Lex.- Returns:
this
-
allowInterrupt
@Stability(Stable) public CfnBot.ResponseSpecificationProperty.Builder allowInterrupt(IResolvable allowInterrupt) Sets the value ofCfnBot.ResponseSpecificationProperty.getAllowInterrupt()
- Parameters:
allowInterrupt
- Indicates whether the user can interrupt a speech response from Amazon Lex.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.ResponseSpecificationProperty>
- Returns:
- a new instance of
CfnBot.ResponseSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-