Interface GroundTruthTurn.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<GroundTruthTurn.Builder,,GroundTruthTurn> SdkBuilder<GroundTruthTurn.Builder,,GroundTruthTurn> SdkPojo
- Enclosing class:
GroundTruthTurn
@Mutable
@NotThreadSafe
public static interface GroundTruthTurn.Builder
extends SdkPojo, CopyableBuilder<GroundTruthTurn.Builder,GroundTruthTurn>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GroundTruthTurn.BuilderexpectedResponse(Consumer<EvaluationContent.Builder> expectedResponse) The expected response for this conversation turn.expectedResponse(EvaluationContent expectedResponse) The expected response for this conversation turn.default GroundTruthTurn.BuilderThe input for this conversation turn.input(GroundTruthTurnInput input) The input for this conversation 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, sdkFieldNameToField, sdkFields
-
Method Details
-
input
The input for this conversation turn.
- Parameters:
input- The input for this conversation turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
input
The input for this conversation turn.
This is a convenience method that creates an instance of theGroundTruthTurnInput.Builderavoiding the need to create one manually viaGroundTruthTurnInput.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinput(GroundTruthTurnInput).- Parameters:
input- a consumer that will call methods onGroundTruthTurnInput.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
expectedResponse
The expected response for this conversation turn.
- Parameters:
expectedResponse- The expected response for this conversation turn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expectedResponse
default GroundTruthTurn.Builder expectedResponse(Consumer<EvaluationContent.Builder> expectedResponse) The expected response for this conversation turn.
This is a convenience method that creates an instance of theEvaluationContent.Builderavoiding the need to create one manually viaEvaluationContent.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexpectedResponse(EvaluationContent).- Parameters:
expectedResponse- a consumer that will call methods onEvaluationContent.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-