Interface Slot.Builder

    • 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.
      • 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, Shape
      • 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:
        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 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).

        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:
        #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.