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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default TurnSpecification.BuilderagentTurn(Consumer<AgentTurnSpecification.Builder> agentTurn)Contains information about the agent messages in the turn.TurnSpecification.BuilderagentTurn(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.TurnSpecification.BuilderuserTurn(UserTurnSpecification userTurn)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 Detail
-
agentTurn
TurnSpecification.Builder agentTurn(AgentTurnSpecification 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
default TurnSpecification.Builder agentTurn(Consumer<AgentTurnSpecification.Builder> 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:
agentTurn(AgentTurnSpecification)
-
userTurn
TurnSpecification.Builder userTurn(UserTurnSpecification 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
default TurnSpecification.Builder userTurn(Consumer<UserTurnSpecification.Builder> 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:
userTurn(UserTurnSpecification)
-
-