Class CfnBotPropsMixin.MessageGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.MessageGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.MessageGroupProperty>
- Enclosing interface:
CfnBotPropsMixin.MessageGroupProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.MessageGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.MessageGroupProperty>
A builder for
CfnBotPropsMixin.MessageGroupProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.message(CfnBotPropsMixin.MessageProperty message) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getMessage()message(IResolvable message) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getMessage()variations(List<? extends Object> variations) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getVariations()variations(IResolvable variations) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getVariations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
@Stability(Stable) public CfnBotPropsMixin.MessageGroupProperty.Builder message(IResolvable message) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getMessage()- Parameters:
message- The primary message that Amazon Lex should send to the user.- Returns:
this
-
message
@Stability(Stable) public CfnBotPropsMixin.MessageGroupProperty.Builder message(CfnBotPropsMixin.MessageProperty message) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getMessage()- Parameters:
message- The primary message that Amazon Lex should send to the user.- Returns:
this
-
variations
@Stability(Stable) public CfnBotPropsMixin.MessageGroupProperty.Builder variations(IResolvable variations) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getVariations()- Parameters:
variations- Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.- Returns:
this
-
variations
@Stability(Stable) public CfnBotPropsMixin.MessageGroupProperty.Builder variations(List<? extends Object> variations) Sets the value ofCfnBotPropsMixin.MessageGroupProperty.getVariations()- Parameters:
variations- Message variations to send to the user. When variations are defined, Amazon Lex chooses the primary message or one of the variations to send to the user.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBotPropsMixin.MessageGroupProperty>- Returns:
- a new instance of
CfnBotPropsMixin.MessageGroupProperty - Throws:
NullPointerException- if any required attribute was not provided
-