Class CfnBot.IntentOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.IntentOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.IntentOverrideProperty>
- Enclosing interface:
CfnBot.IntentOverrideProperty
@Stability(Stable)
public static final class CfnBot.IntentOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.IntentOverrideProperty>
A builder for
CfnBot.IntentOverrideProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnBot.IntentOverrideProperty.getName()
Sets the value ofCfnBot.IntentOverrideProperty.getSlots()
slots
(IResolvable slots) Sets the value ofCfnBot.IntentOverrideProperty.getSlots()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnBot.IntentOverrideProperty.getName()
- Parameters:
name
- The name of the intent. Only required when you're switching intents.- Returns:
this
-
slots
Sets the value ofCfnBot.IntentOverrideProperty.getSlots()
- Parameters:
slots
- A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.- Returns:
this
-
slots
Sets the value ofCfnBot.IntentOverrideProperty.getSlots()
- Parameters:
slots
- A map of all of the slot value overrides for the intent. The name of the slot maps to the value of the slot. Slots that are not included in the map aren't overridden.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnBot.IntentOverrideProperty>
- Returns:
- a new instance of
CfnBot.IntentOverrideProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-