Class CfnBotPropsMixin.SlotValueOverrideProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lex.CfnBotPropsMixin.SlotValueOverrideProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueOverrideProperty>
- Enclosing interface:
CfnBotPropsMixin.SlotValueOverrideProperty
@Stability(Stable)
public static final class CfnBotPropsMixin.SlotValueOverrideProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBotPropsMixin.SlotValueOverrideProperty>
A builder for
CfnBotPropsMixin.SlotValueOverrideProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getShape()Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValue()value(IResolvable value) Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValue()Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValues()values(IResolvable values) Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shape
Sets the value ofCfnBotPropsMixin.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
@Stability(Stable) public CfnBotPropsMixin.SlotValueOverrideProperty.Builder value(IResolvable value) Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValue()- Parameters:
value- The current value of the slot.- Returns:
this
-
value
@Stability(Stable) public CfnBotPropsMixin.SlotValueOverrideProperty.Builder value(CfnBotPropsMixin.SlotValueProperty value) Sets the value ofCfnBotPropsMixin.SlotValueOverrideProperty.getValue()- Parameters:
value- The current value of the slot.- Returns:
this
-
values
@Stability(Stable) public CfnBotPropsMixin.SlotValueOverrideProperty.Builder values(IResolvable values) Sets the value ofCfnBotPropsMixin.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 CfnBotPropsMixin.SlotValueOverrideProperty.Builder values(List<? extends Object> values) Sets the value ofCfnBotPropsMixin.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<CfnBotPropsMixin.SlotValueOverrideProperty>- Returns:
- a new instance of
CfnBotPropsMixin.SlotValueOverrideProperty - Throws:
NullPointerException- if any required attribute was not provided
-