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 Summary
Modifier and TypeMethodDescriptionconversationId
(String conversationId) The unique identifier for the conversation associated with the turn.recordNumber
(Long recordNumber) The record number associated with the turn.turnNumber
(Integer turnNumber) The number of turns that has elapsed up to that turn.default TestSetTurnRecord.Builder
turnSpecification
(Consumer<TurnSpecification.Builder> turnSpecification) Contains information about the agent or user turn depending upon type of turn.turnSpecification
(TurnSpecification turnSpecification) Contains information about the agent or user turn depending upon type of turn.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, sdkFields
-
Method Details
-
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
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
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
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 theTurnSpecification.Builder
avoiding the need to create one manually viaTurnSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toturnSpecification(TurnSpecification)
.- Parameters:
turnSpecification
- a consumer that will call methods onTurnSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-