Class CfnBot.SlotValueOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lex.CfnBot.SlotValueOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBot.SlotValueOverrideProperty>
- Enclosing interface:
- CfnBot.SlotValueOverrideProperty
@Stability(Stable)
public static final class CfnBot.SlotValueOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBot.SlotValueOverrideProperty>
A builder for
CfnBot.SlotValueOverrideProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBot.SlotValueOverrideProperty.getShape()value(IResolvable value) Sets the value ofCfnBot.SlotValueOverrideProperty.getValue()value(CfnBot.SlotValueProperty value) Sets the value ofCfnBot.SlotValueOverrideProperty.getValue()Sets the value ofCfnBot.SlotValueOverrideProperty.getValues()values(IResolvable values) Sets the value ofCfnBot.SlotValueOverrideProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shape
Sets the value ofCfnBot.SlotValueOverrideProperty.getShape()- Parameters:
shape- When the shape value isList, it indicates that thevaluesfield contains a list of slot values. When the value isScalar, it indicates that thevaluefield contains a single value.- Returns:
this
-
value
Sets the value ofCfnBot.SlotValueOverrideProperty.getValue()- Parameters:
value- The current value of the slot.- Returns:
this
-
value
@Stability(Stable) public CfnBot.SlotValueOverrideProperty.Builder value(CfnBot.SlotValueProperty value) Sets the value ofCfnBot.SlotValueOverrideProperty.getValue()- Parameters:
value- The current value of the slot.- Returns:
this
-
values
Sets the value ofCfnBot.SlotValueOverrideProperty.getValues()- Parameters:
values- A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."- Returns:
this
-
values
@Stability(Stable) public CfnBot.SlotValueOverrideProperty.Builder values(List<? extends Object> values) Sets the value ofCfnBot.SlotValueOverrideProperty.getValues()- Parameters:
values- A list of one or more values that the user provided for the slot. For example, for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBot.SlotValueOverrideProperty>- Returns:
- a new instance of
CfnBot.SlotValueOverrideProperty - Throws:
NullPointerException- if any required attribute was not provided
-