Class CfnSolutionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.personalize.CfnSolutionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSolutionMixinProps>
- Enclosing interface:
CfnSolutionMixinProps
@Stability(Stable)
public static final class CfnSolutionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSolutionMixinProps>
A builder for
CfnSolutionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datasetGroupArn(String datasetGroupArn) Sets the value ofCfnSolutionMixinProps.getDatasetGroupArn()Sets the value ofCfnSolutionMixinProps.getEventType()Sets the value ofCfnSolutionMixinProps.getName()performAutoMl(Boolean performAutoMl) Sets the value ofCfnSolutionMixinProps.getPerformAutoMl()performAutoMl(IResolvable performAutoMl) Sets the value ofCfnSolutionMixinProps.getPerformAutoMl()performHpo(Boolean performHpo) Sets the value ofCfnSolutionMixinProps.getPerformHpo()performHpo(IResolvable performHpo) Sets the value ofCfnSolutionMixinProps.getPerformHpo()Sets the value ofCfnSolutionMixinProps.getRecipeArn()solutionConfig(CfnSolutionPropsMixin.SolutionConfigProperty solutionConfig) Sets the value ofCfnSolutionMixinProps.getSolutionConfig()solutionConfig(IResolvable solutionConfig) Sets the value ofCfnSolutionMixinProps.getSolutionConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datasetGroupArn
Sets the value ofCfnSolutionMixinProps.getDatasetGroupArn()- Parameters:
datasetGroupArn- The Amazon Resource Name (ARN) of the dataset group that provides the training data.- Returns:
this
-
eventType
Sets the value ofCfnSolutionMixinProps.getEventType()- Parameters:
eventType- The event type (for example, 'click' or 'like') that is used for training the model. If noeventTypeis provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.- Returns:
this
-
name
Sets the value ofCfnSolutionMixinProps.getName()- Parameters:
name- The name of the solution.- Returns:
this
-
performAutoMl
Sets the value ofCfnSolutionMixinProps.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 (
recipeArnmust not be specified). When false (the default), Amazon Personalize usesrecipeArnfor training.- Returns:
this
-
performAutoMl
Sets the value ofCfnSolutionMixinProps.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 (
recipeArnmust not be specified). When false (the default), Amazon Personalize usesrecipeArnfor training.- Returns:
this
-
performHpo
Sets the value ofCfnSolutionMixinProps.getPerformHpo()- Parameters:
performHpo- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default isfalse.- Returns:
this
-
performHpo
Sets the value ofCfnSolutionMixinProps.getPerformHpo()- Parameters:
performHpo- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default isfalse.- Returns:
this
-
recipeArn
Sets the value ofCfnSolutionMixinProps.getRecipeArn()- Parameters:
recipeArn- The ARN of the recipe used to create the solution. This is required whenperformAutoMLis false.- Returns:
this
-
solutionConfig
Sets the value ofCfnSolutionMixinProps.getSolutionConfig()- Parameters:
solutionConfig- Describes the configuration properties for the solution.- Returns:
this
-
solutionConfig
@Stability(Stable) public CfnSolutionMixinProps.Builder solutionConfig(CfnSolutionPropsMixin.SolutionConfigProperty solutionConfig) Sets the value ofCfnSolutionMixinProps.getSolutionConfig()- Parameters:
solutionConfig- Describes the configuration properties for the solution.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSolutionMixinProps>- Returns:
- a new instance of
CfnSolutionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-