Interface TestSetTurnRecord.Builder

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

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

    • recordNumber

      TestSetTurnRecord.Builder recordNumber(Long recordNumber)

      The record number associated with the turn.

      Parameters:
      recordNumber - The record number associated with the turn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • conversationId

      TestSetTurnRecord.Builder conversationId(String conversationId)

      The unique identifier for the conversation associated with the turn.

      Parameters:
      conversationId - The unique identifier for the conversation associated with the turn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turnNumber

      TestSetTurnRecord.Builder turnNumber(Integer turnNumber)

      The number of turns that has elapsed up to that turn.

      Parameters:
      turnNumber - The number of turns that has elapsed up to that turn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turnSpecification

      TestSetTurnRecord.Builder turnSpecification(TurnSpecification turnSpecification)

      Contains information about the agent or user turn depending upon type of turn.

      Parameters:
      turnSpecification - Contains information about the agent or user turn depending upon type of turn.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • turnSpecification

      default TestSetTurnRecord.Builder turnSpecification(Consumer<TurnSpecification.Builder> turnSpecification)

      Contains information about the agent or user turn depending upon type of turn.

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

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

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