Interface EvaluationDimension.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<EvaluationDimension.Builder,,EvaluationDimension> SdkBuilder<EvaluationDimension.Builder,,EvaluationDimension> SdkPojo
- Enclosing class:
EvaluationDimension
@Mutable
@NotThreadSafe
public static interface EvaluationDimension.Builder
extends SdkPojo, CopyableBuilder<EvaluationDimension.Builder,EvaluationDimension>
-
Method Summary
Modifier and TypeMethodDescriptiondimensionInstruction(String dimensionInstruction) The instruction to the evaluator model for this dimension, describing what the model should judge when scoring the dimension.dimensionName(String dimensionName) The name of the dimension.default EvaluationDimension.BuilderdimensionRatingScale(Consumer<DimensionRatingScale.Builder> dimensionRatingScale) The rating scale for this dimension, which can be numerical or categorical.dimensionRatingScale(DimensionRatingScale dimensionRatingScale) The rating scale for this dimension, which can be numerical or categorical.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
-
dimensionName
The name of the dimension. This name is unique within the evaluator and identifies the dimension's results.
- Parameters:
dimensionName- The name of the dimension. This name is unique within the evaluator and identifies the dimension's results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionInstruction
The instruction to the evaluator model for this dimension, describing what the model should judge when scoring the dimension.
- Parameters:
dimensionInstruction- The instruction to the evaluator model for this dimension, describing what the model should judge when scoring the dimension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionRatingScale
The rating scale for this dimension, which can be numerical or categorical. A dimension's rating scale cannot itself be multi-dimensional.
- Parameters:
dimensionRatingScale- The rating scale for this dimension, which can be numerical or categorical. A dimension's rating scale cannot itself be multi-dimensional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dimensionRatingScale
default EvaluationDimension.Builder dimensionRatingScale(Consumer<DimensionRatingScale.Builder> dimensionRatingScale) The rating scale for this dimension, which can be numerical or categorical. A dimension's rating scale cannot itself be multi-dimensional.
This is a convenience method that creates an instance of theDimensionRatingScale.Builderavoiding the need to create one manually viaDimensionRatingScale.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todimensionRatingScale(DimensionRatingScale).- Parameters:
dimensionRatingScale- a consumer that will call methods onDimensionRatingScale.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-