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