Interface SlotValueOverride.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SlotValueOverride.Builder,SlotValueOverride>,SdkBuilder<SlotValueOverride.Builder,SlotValueOverride>,SdkPojo
- Enclosing class:
- SlotValueOverride
public static interface SlotValueOverride.Builder extends SdkPojo, CopyableBuilder<SlotValueOverride.Builder,SlotValueOverride>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SlotValueOverride.Buildershape(String shape)When the shape value isList, it indicates that thevaluesfield contains a list of slot values.SlotValueOverride.Buildershape(SlotShape shape)When the shape value isList, it indicates that thevaluesfield contains a list of slot values.default SlotValueOverride.Buildervalue(Consumer<SlotValue.Builder> value)The current value of the slot.SlotValueOverride.Buildervalue(SlotValue value)The current value of the slot.SlotValueOverride.Buildervalues(Collection<SlotValueOverride> values)A list of one or more values that the user provided for the slot.SlotValueOverride.Buildervalues(Consumer<SlotValueOverride.Builder>... values)A list of one or more values that the user provided for the slot.SlotValueOverride.Buildervalues(SlotValueOverride... values)A list of one or more values that the user provided for the slot.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
shape
SlotValueOverride.Builder shape(String shape)
When the shape value is
List, it indicates that thevaluesfield contains a list of slot values. When the value isScalar, it indicates that thevaluefield contains a single value.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotShape,SlotShape
-
shape
SlotValueOverride.Builder shape(SlotShape shape)
When the shape value is
List, it indicates that thevaluesfield contains a list of slot values. When the value isScalar, it indicates that thevaluefield contains a single value.- 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:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SlotShape,SlotShape
-
value
SlotValueOverride.Builder value(SlotValue value)
The current value of the slot.
- Parameters:
value- The current value of the slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
value
default SlotValueOverride.Builder value(Consumer<SlotValue.Builder> value)
The current value of the slot.
This is a convenience method that creates an instance of theSlotValue.Builderavoiding the need to create one manually viaSlotValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(SlotValue).- Parameters:
value- a consumer that will call methods onSlotValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(SlotValue)
-
values
SlotValueOverride.Builder values(Collection<SlotValueOverride> 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."
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
values
SlotValueOverride.Builder values(SlotValueOverride... 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."
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
values
SlotValueOverride.Builder values(Consumer<SlotValueOverride.Builder>... 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."
This is a convenience method that creates an instance of theSlotValueOverride.Builderavoiding the need to create one manually viaSlotValueOverride.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#values(List.) - Parameters:
values- a consumer that will call methods onSlotValueOverride.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#values(java.util.Collection)
-
-