Class CfnSolutionProps.Builder
java.lang.Object
software.amazon.awscdk.services.personalize.CfnSolutionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSolutionProps>
- Enclosing interface:
CfnSolutionProps
@Stability(Stable)
public static final class CfnSolutionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSolutionProps>
A builder for
CfnSolutionProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.datasetGroupArn
(String datasetGroupArn) Sets the value ofCfnSolutionProps.getDatasetGroupArn()
Sets the value ofCfnSolutionProps.getEventType()
Sets the value ofCfnSolutionProps.getName()
performAutoMl
(Boolean performAutoMl) Sets the value ofCfnSolutionProps.getPerformAutoMl()
performAutoMl
(IResolvable performAutoMl) Sets the value ofCfnSolutionProps.getPerformAutoMl()
performHpo
(Boolean performHpo) Sets the value ofCfnSolutionProps.getPerformHpo()
performHpo
(IResolvable performHpo) Sets the value ofCfnSolutionProps.getPerformHpo()
Sets the value ofCfnSolutionProps.getRecipeArn()
solutionConfig
(IResolvable solutionConfig) Sets the value ofCfnSolutionProps.getSolutionConfig()
solutionConfig
(CfnSolution.SolutionConfigProperty solutionConfig) Sets the value ofCfnSolutionProps.getSolutionConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetGroupArn
Sets the value ofCfnSolutionProps.getDatasetGroupArn()
- Parameters:
datasetGroupArn
- The Amazon Resource Name (ARN) of the dataset group that provides the training data. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnSolutionProps.getName()
- Parameters:
name
- The name of the solution. This parameter is required.- Returns:
this
-
eventType
Sets the value ofCfnSolutionProps.getEventType()
- Parameters:
eventType
- The event type (for example, 'click' or 'like') that is used for training the model. If noeventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.- Returns:
this
-
performAutoMl
Sets the value ofCfnSolutionProps.getPerformAutoMl()
- Parameters:
performAutoMl
-
Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.We don't recommend enabling automated machine learning.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified in the solution configuration (
recipeArn
must not be specified). When false (the default), Amazon Personalize usesrecipeArn
for training.- Returns:
this
-
performAutoMl
Sets the value ofCfnSolutionProps.getPerformAutoMl()
- Parameters:
performAutoMl
-
Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.We don't recommend enabling automated machine learning.
When true, Amazon Personalize performs a search for the best USER_PERSONALIZATION recipe from the list specified in the solution configuration (
recipeArn
must not be specified). When false (the default), Amazon Personalize usesrecipeArn
for training.- Returns:
this
-
performHpo
Sets the value ofCfnSolutionProps.getPerformHpo()
- Parameters:
performHpo
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default isfalse
.- Returns:
this
-
performHpo
Sets the value ofCfnSolutionProps.getPerformHpo()
- Parameters:
performHpo
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default isfalse
.- Returns:
this
-
recipeArn
Sets the value ofCfnSolutionProps.getRecipeArn()
- Parameters:
recipeArn
- The ARN of the recipe used to create the solution. This is required whenperformAutoML
is false.- Returns:
this
-
solutionConfig
Sets the value ofCfnSolutionProps.getSolutionConfig()
- Parameters:
solutionConfig
- Describes the configuration properties for the solution.- Returns:
this
-
solutionConfig
@Stability(Stable) public CfnSolutionProps.Builder solutionConfig(CfnSolution.SolutionConfigProperty solutionConfig) Sets the value ofCfnSolutionProps.getSolutionConfig()
- Parameters:
solutionConfig
- Describes the configuration properties for the solution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSolutionProps>
- Returns:
- a new instance of
CfnSolutionProps
- Throws:
NullPointerException
- if any required attribute was not provided
-