Class CfnBot.GrammarSlotTypeSettingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.GrammarSlotTypeSettingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSettingProperty>
- Enclosing interface:
CfnBot.GrammarSlotTypeSettingProperty
@Stability(Stable)
public static final class CfnBot.GrammarSlotTypeSettingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSettingProperty>
A builder for
CfnBot.GrammarSlotTypeSettingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.source(IResolvable source) Sets the value ofCfnBot.GrammarSlotTypeSettingProperty.getSource()Sets the value ofCfnBot.GrammarSlotTypeSettingProperty.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
source
Sets the value ofCfnBot.GrammarSlotTypeSettingProperty.getSource()- Parameters:
source- The source of the grammar used to create the slot type.- Returns:
this
-
source
@Stability(Stable) public CfnBot.GrammarSlotTypeSettingProperty.Builder source(CfnBot.GrammarSlotTypeSourceProperty source) Sets the value ofCfnBot.GrammarSlotTypeSettingProperty.getSource()- Parameters:
source- The source of the grammar used to create the slot type.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.GrammarSlotTypeSettingProperty>- Returns:
- a new instance of
CfnBot.GrammarSlotTypeSettingProperty - Throws:
NullPointerException- if any required attribute was not provided
-