Class CfnSolution.CategoricalHyperParameterRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnSolution.CategoricalHyperParameterRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSolution.CategoricalHyperParameterRangeProperty>
- Enclosing interface:
CfnSolution.CategoricalHyperParameterRangeProperty
@Stability(Stable)
public static final class CfnSolution.CategoricalHyperParameterRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSolution.CategoricalHyperParameterRangeProperty>
A builder for
CfnSolution.CategoricalHyperParameterRangeProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSolution.CategoricalHyperParameterRangeProperty.getName()
Sets the value ofCfnSolution.CategoricalHyperParameterRangeProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
@Stability(Stable) public CfnSolution.CategoricalHyperParameterRangeProperty.Builder name(String name) Sets the value ofCfnSolution.CategoricalHyperParameterRangeProperty.getName()
- Parameters:
name
- The name of the hyperparameter.- Returns:
this
-
values
@Stability(Stable) public CfnSolution.CategoricalHyperParameterRangeProperty.Builder values(List<String> values) Sets the value ofCfnSolution.CategoricalHyperParameterRangeProperty.getValues()
- Parameters:
values
- A list of the categories for the hyperparameter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSolution.CategoricalHyperParameterRangeProperty>
- Returns:
- a new instance of
CfnSolution.CategoricalHyperParameterRangeProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-