Interface TurnSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TurnSpecification.Builder,,TurnSpecification> SdkBuilder<TurnSpecification.Builder,,TurnSpecification> SdkPojo
- Enclosing class:
TurnSpecification
public static interface TurnSpecification.Builder
extends SdkPojo, CopyableBuilder<TurnSpecification.Builder,TurnSpecification>
-
Method Summary
Modifier and TypeMethodDescriptiondefault TurnSpecification.BuilderagentTurn(Consumer<AgentTurnSpecification.Builder> agentTurn) Contains information about the agent messages in the turn.agentTurn(AgentTurnSpecification agentTurn) Contains information about the agent messages in the turn.default TurnSpecification.BuilderuserTurn(Consumer<UserTurnSpecification.Builder> userTurn) Contains information about the user messages in the turn.userTurn(UserTurnSpecification userTurn) Contains information about the user messages in the turn.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
agentTurn
Contains information about the agent messages in the turn.
- Parameters:
agentTurn- Contains information about the agent messages in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentTurn
Contains information about the agent messages in the turn.
This is a convenience method that creates an instance of theAgentTurnSpecification.Builderavoiding the need to create one manually viaAgentTurnSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toagentTurn(AgentTurnSpecification).- Parameters:
agentTurn- a consumer that will call methods onAgentTurnSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
userTurn
Contains information about the user messages in the turn.
- Parameters:
userTurn- Contains information about the user messages in the turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userTurn
Contains information about the user messages in the turn.
This is a convenience method that creates an instance of theUserTurnSpecification.Builderavoiding the need to create one manually viaUserTurnSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed touserTurn(UserTurnSpecification).- Parameters:
userTurn- a consumer that will call methods onUserTurnSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-