public static interface SlotValueOverride.Builder extends SdkPojo, CopyableBuilder<SlotValueOverride.Builder,SlotValueOverride>
| Modifier and Type | Method and Description |
|---|---|
SlotValueOverride.Builder |
shape(SlotShape shape)
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
SlotValueOverride.Builder |
shape(String shape)
When the shape value is
List, it indicates that the values field contains a list of
slot values. |
default SlotValueOverride.Builder |
value(Consumer<SlotValue.Builder> value)
The current value of the slot.
|
SlotValueOverride.Builder |
value(SlotValue value)
The current value of the slot.
|
SlotValueOverride.Builder |
values(Collection<SlotValueOverride> values)
A list of one or more values that the user provided for the slot.
|
SlotValueOverride.Builder |
values(Consumer<SlotValueOverride.Builder>... values)
A list of one or more values that the user provided for the slot.
|
SlotValueOverride.Builder |
values(SlotValueOverride... values)
A list of one or more values that the user provided for the slot.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSlotValueOverride.Builder shape(String shape)
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
shape - When the shape value is List, it indicates that the values field contains a
list of slot values. When the value is Scalar, it indicates that the value
field contains a single value.SlotShape,
SlotShapeSlotValueOverride.Builder shape(SlotShape shape)
When the shape value is List, it indicates that the values field contains a list of
slot values. When the value is Scalar, it indicates that the value field contains a
single value.
shape - When the shape value is List, it indicates that the values field contains a
list of slot values. When the value is Scalar, it indicates that the value
field contains a single value.SlotShape,
SlotShapeSlotValueOverride.Builder value(SlotValue value)
The current value of the slot.
value - The current value of the slot.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.Builder avoiding the need to
create one manually via SlotValue.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to value(SlotValue).
value - a consumer that will call methods on SlotValue.Buildervalue(SlotValue)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."
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."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."
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."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.Builder avoiding the need to
create one manually via SlotValueOverride.builder()
.
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #values(List.
values - a consumer that will call methods on
SlotValueOverride.Builder#values(java.util.Collection) Copyright © 2022. All rights reserved.