Interface TestSetTurnResult.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TestSetTurnResult.Builder,
,TestSetTurnResult> SdkBuilder<TestSetTurnResult.Builder,
,TestSetTurnResult> SdkPojo
- Enclosing class:
TestSetTurnResult
public static interface TestSetTurnResult.Builder
extends SdkPojo, CopyableBuilder<TestSetTurnResult.Builder,TestSetTurnResult>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TestSetTurnResult.Builder
agent
(Consumer<AgentTurnResult.Builder> agent) Contains information about the agent messages in the turn.agent
(AgentTurnResult agent) Contains information about the agent messages in the turn.default TestSetTurnResult.Builder
user
(Consumer<UserTurnResult.Builder> user) Contains information about the user messages in the turn.user
(UserTurnResult user) Contains information about the user messages in the 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
-
agent
Contains information about the agent messages in the turn.
- Parameters:
agent
- Contains information about the agent messages in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agent
Contains information about the agent messages in the turn.
This is a convenience method that creates an instance of theAgentTurnResult.Builder
avoiding the need to create one manually viaAgentTurnResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toagent(AgentTurnResult)
.- Parameters:
agent
- a consumer that will call methods onAgentTurnResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
user
Contains information about the user messages in the turn.
- Parameters:
user
- Contains information about the user messages in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
user
Contains information about the user messages in the turn.
This is a convenience method that creates an instance of theUserTurnResult.Builder
avoiding the need to create one manually viaUserTurnResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed touser(UserTurnResult)
.- Parameters:
user
- a consumer that will call methods onUserTurnResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-