Class CfnSolution.AutoMLConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnSolution.AutoMLConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSolution.AutoMLConfigProperty>
- Enclosing interface:
CfnSolution.AutoMLConfigProperty
@Stability(Stable)
public static final class CfnSolution.AutoMLConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSolution.AutoMLConfigProperty>
A builder for
CfnSolution.AutoMLConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricName(String metricName) Sets the value ofCfnSolution.AutoMLConfigProperty.getMetricName()recipeList(List<String> recipeList) Sets the value ofCfnSolution.AutoMLConfigProperty.getRecipeList()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
Sets the value ofCfnSolution.AutoMLConfigProperty.getMetricName()- Parameters:
metricName- The metric to optimize.- Returns:
this
-
recipeList
@Stability(Stable) public CfnSolution.AutoMLConfigProperty.Builder recipeList(List<String> recipeList) Sets the value ofCfnSolution.AutoMLConfigProperty.getRecipeList()- Parameters:
recipeList- The list of candidate recipes.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSolution.AutoMLConfigProperty>- Returns:
- a new instance of
CfnSolution.AutoMLConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-