Interface SlotSummary.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SlotSummary.Builder,SlotSummary>, SdkBuilder<SlotSummary.Builder,SlotSummary>, SdkPojo
Enclosing class:
SlotSummary

public static interface SlotSummary.Builder extends SdkPojo, CopyableBuilder<SlotSummary.Builder,SlotSummary>
  • Method Details

    • slotId

      SlotSummary.Builder slotId(String slotId)

      The unique identifier of the slot.

      Parameters:
      slotId - The unique identifier of the slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slotName

      SlotSummary.Builder slotName(String slotName)

      The name given to the slot.

      Parameters:
      slotName - The name given to the slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      SlotSummary.Builder description(String description)

      The description of the slot.

      Parameters:
      description - The description of the slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slotConstraint

      SlotSummary.Builder slotConstraint(String slotConstraint)

      Whether the slot is required or optional. An intent is complete when all required slots are filled.

      Parameters:
      slotConstraint - Whether the slot is required or optional. An intent is complete when all required slots are filled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • slotConstraint

      SlotSummary.Builder slotConstraint(SlotConstraint slotConstraint)

      Whether the slot is required or optional. An intent is complete when all required slots are filled.

      Parameters:
      slotConstraint - Whether the slot is required or optional. An intent is complete when all required slots are filled.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • slotTypeId

      SlotSummary.Builder slotTypeId(String slotTypeId)

      The unique identifier for the slot type that defines the values for the slot.

      Parameters:
      slotTypeId - The unique identifier for the slot type that defines the values for the slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valueElicitationPromptSpecification

      SlotSummary.Builder valueElicitationPromptSpecification(PromptSpecification valueElicitationPromptSpecification)

      Prompts that are sent to the user to elicit a value for the slot.

      Parameters:
      valueElicitationPromptSpecification - Prompts that are sent to the user to elicit a value for the slot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • valueElicitationPromptSpecification

      default SlotSummary.Builder valueElicitationPromptSpecification(Consumer<PromptSpecification.Builder> valueElicitationPromptSpecification)

      Prompts that are sent to the user to elicit a value for the slot.

      This is a convenience method that creates an instance of the PromptSpecification.Builder avoiding the need to create one manually via PromptSpecification.builder().

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

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

      SlotSummary.Builder lastUpdatedDateTime(Instant lastUpdatedDateTime)

      The timestamp of the last date and time that the slot was updated.

      Parameters:
      lastUpdatedDateTime - The timestamp of the last date and time that the slot was updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.