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 Details

    • 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 the Value.Builder avoiding the need to create one manually via Value.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to value(Value).

      Parameters:
      value - a consumer that will call methods on Value.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • shape

      Slot.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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • shape

      Slot.Builder shape(Shape 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.

      Parameters:
      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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the Slot.Builder avoiding the need to create one manually via Slot.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to values(List<Slot>).

      Parameters:
      values - a consumer that will call methods on Slot.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.