Class CfnBot.MessageGroupProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.MessageGroupProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.MessageGroupProperty>
- Enclosing interface:
CfnBot.MessageGroupProperty
@Stability(Stable)
public static final class CfnBot.MessageGroupProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.MessageGroupProperty>
A builder for
CfnBot.MessageGroupProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.message
(IResolvable message) Sets the value ofCfnBot.MessageGroupProperty.getMessage()
message
(CfnBot.MessageProperty message) Sets the value ofCfnBot.MessageGroupProperty.getMessage()
variations
(List<? extends Object> variations) Sets the value ofCfnBot.MessageGroupProperty.getVariations()
variations
(IResolvable variations) Sets the value ofCfnBot.MessageGroupProperty.getVariations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
Sets the value ofCfnBot.MessageGroupProperty.getMessage()
- Parameters:
message
- The primary message that Amazon Lex should send to the user. This parameter is required.- Returns:
this
-
message
@Stability(Stable) public CfnBot.MessageGroupProperty.Builder message(CfnBot.MessageProperty message) Sets the value ofCfnBot.MessageGroupProperty.getMessage()
- Parameters:
message
- The primary message that Amazon Lex should send to the user. This parameter is required.- Returns:
this
-
variations
Sets the value ofCfnBot.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 CfnBot.MessageGroupProperty.Builder variations(List<? extends Object> variations) Sets the value ofCfnBot.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:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.MessageGroupProperty>
- Returns:
- a new instance of
CfnBot.MessageGroupProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-