Class CfnEvaluator.NumericalScaleDefinitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnEvaluator.NumericalScaleDefinitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEvaluator.NumericalScaleDefinitionProperty>
- Enclosing interface:
CfnEvaluator.NumericalScaleDefinitionProperty
@Stability(Stable)
public static final class CfnEvaluator.NumericalScaleDefinitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEvaluator.NumericalScaleDefinitionProperty>
A builder for
CfnEvaluator.NumericalScaleDefinitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.definition(String definition) Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getDefinition()Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getLabel()Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
definition
@Stability(Stable) public CfnEvaluator.NumericalScaleDefinitionProperty.Builder definition(String definition) Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getDefinition()- Parameters:
definition- The description that explains what this numerical rating represents. This parameter is required.- Returns:
this
-
label
Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getLabel()- Parameters:
label- The label that describes this numerical rating option. This parameter is required.- Returns:
this
-
value
Sets the value ofCfnEvaluator.NumericalScaleDefinitionProperty.getValue()- Parameters:
value- The numerical value for this rating scale option. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEvaluator.NumericalScaleDefinitionProperty>- Returns:
- a new instance of
CfnEvaluator.NumericalScaleDefinitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-