Interface Slot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Slot.Builder,Slot>,SdkBuilder<Slot.Builder,Slot>,SdkPojo
- Enclosing class:
- Slot
public static interface Slot.Builder extends SdkPojo, CopyableBuilder<Slot.Builder,Slot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Slot.Buildershape(String shape)When theshapevalue isList, it indicates that thevaluesfield contains a list of slot values.Slot.Buildershape(Shape shape)When theshapevalue isList, it indicates that thevaluesfield contains a list of slot values.Slot.BuildersubSlots(Map<String,Slot> subSlots)The constituent sub slots of a composite slot.default Slot.Buildervalue(Consumer<Value.Builder> value)The current value of the slot.Slot.Buildervalue(Value value)The current value of the slot.Slot.Buildervalues(Collection<Slot> values)A list of one or more values that the user provided for the slot.Slot.Buildervalues(Consumer<Slot.Builder>... values)A list of one or more values that the user provided for the slot.Slot.Buildervalues(Slot... 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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
value
Slot.Builder value(Value 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 Slot.Builder value(Consumer<Value.Builder> value)
The current value of the slot.
This is a convenience method that creates an instance of theValue.Builderavoiding the need to create one manually viaValue.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovalue(Value).- Parameters:
value- a consumer that will call methods onValue.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
value(Value)
-
shape
Slot.Builder shape(String shape)
When the
shapevalue isList, 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 theshapevalue 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:
Shape,Shape
-
shape
Slot.Builder shape(Shape shape)
When the
shapevalue isList, 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 theshapevalue 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:
Shape,Shape
-
values
Slot.Builder values(Collection<Slot> values)
A list of one or more values that the user provided for the slot. For example, if a 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, if a 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
Slot.Builder values(Slot... values)
A list of one or more values that the user provided for the slot. For example, if a 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, if a 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
Slot.Builder values(Consumer<Slot.Builder>... values)
A list of one or more values that the user provided for the slot. For example, if a for a slot that elicits pizza toppings, the values might be "pepperoni" and "pineapple."
This is a convenience method that creates an instance of theSlot.Builderavoiding the need to create one manually viaSlot.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 onSlot.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#values(java.util.Collection)
-
subSlots
Slot.Builder subSlots(Map<String,Slot> subSlots)
The constituent sub slots of a composite slot.
- Parameters:
subSlots- The constituent sub slots of a composite slot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-