Interface CreateSolutionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSolutionRequest.Builder,CreateSolutionRequest>,PersonalizeRequest.Builder,SdkBuilder<CreateSolutionRequest.Builder,CreateSolutionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateSolutionRequest
public static interface CreateSolutionRequest.Builder extends PersonalizeRequest.Builder, SdkPojo, CopyableBuilder<CreateSolutionRequest.Builder,CreateSolutionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateSolutionRequest.BuilderdatasetGroupArn(String datasetGroupArn)The Amazon Resource Name (ARN) of the dataset group that provides the training data.CreateSolutionRequest.BuildereventType(String eventType)When your have multiple event types (using anEVENT_TYPEschema field), this parameter specifies which event type (for example, 'click' or 'like') is used for training the model.CreateSolutionRequest.Buildername(String name)The name for the solution.CreateSolutionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateSolutionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateSolutionRequest.BuilderperformAutoML(Boolean performAutoML)CreateSolutionRequest.BuilderperformAutoTraining(Boolean performAutoTraining)Whether the solution uses automatic training to create new solution versions (trained models).CreateSolutionRequest.BuilderperformHPO(Boolean performHPO)Whether to perform hyperparameter optimization (HPO) on the specified or selected recipe.CreateSolutionRequest.BuilderrecipeArn(String recipeArn)The Amazon Resource Name (ARN) of the recipe to use for model training.default CreateSolutionRequest.BuildersolutionConfig(Consumer<SolutionConfig.Builder> solutionConfig)The configuration properties for the solution.CreateSolutionRequest.BuildersolutionConfig(SolutionConfig solutionConfig)The configuration properties for the solution.CreateSolutionRequest.Buildertags(Collection<Tag> tags)A list of tags to apply to the solution.CreateSolutionRequest.Buildertags(Consumer<Tag.Builder>... tags)A list of tags to apply to the solution.CreateSolutionRequest.Buildertags(Tag... tags)A list of tags to apply to the solution.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.personalize.model.PersonalizeRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
CreateSolutionRequest.Builder name(String name)
The name for the solution.
- Parameters:
name- The name for the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performHPO
CreateSolutionRequest.Builder performHPO(Boolean performHPO)
Whether to perform hyperparameter optimization (HPO) on the specified or selected recipe. The default is
false.When performing AutoML, this parameter is always
trueand you should not set it tofalse.- Parameters:
performHPO- Whether to perform hyperparameter optimization (HPO) on the specified or selected recipe. The default isfalse.When performing AutoML, this parameter is always
trueand you should not set it tofalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performAutoML
CreateSolutionRequest.Builder performAutoML(Boolean performAutoML)
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Choosing a recipe.
Whether to perform automated machine learning (AutoML). The default is
false. For this case, you must specifyrecipeArn.When set to
true, Amazon Personalize analyzes your training data and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this case, you must omitrecipeArn. Amazon Personalize determines the optimal recipe by running tests with different values for the hyperparameters. AutoML lengthens the training process as compared to selecting a specific recipe.- Parameters:
performAutoML-We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Choosing a recipe.
Whether to perform automated machine learning (AutoML). The default is
false. For this case, you must specifyrecipeArn.When set to
true, Amazon Personalize analyzes your training data and selects the optimal USER_PERSONALIZATION recipe and hyperparameters. In this case, you must omitrecipeArn. Amazon Personalize determines the optimal recipe by running tests with different values for the hyperparameters. AutoML lengthens the training process as compared to selecting a specific recipe.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performAutoTraining
CreateSolutionRequest.Builder performAutoTraining(Boolean performAutoTraining)
Whether the solution uses automatic training to create new solution versions (trained models). The default is
Trueand the solution automatically creates new solution versions every 7 days. You can change the training frequency by specifying aschedulingExpressionin theAutoTrainingConfigas part of solution configuration. For more information about automatic training, see Configuring automatic training.Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within the hour, the solution skips the first automatic training.
After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.
- Parameters:
performAutoTraining- Whether the solution uses automatic training to create new solution versions (trained models). The default isTrueand the solution automatically creates new solution versions every 7 days. You can change the training frequency by specifying aschedulingExpressionin theAutoTrainingConfigas part of solution configuration. For more information about automatic training, see Configuring automatic training.Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within the hour, the solution skips the first automatic training.
After training starts, you can get the solution version's Amazon Resource Name (ARN) with the ListSolutionVersions API operation. To get its status, use the DescribeSolutionVersion.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recipeArn
CreateSolutionRequest.Builder recipeArn(String recipeArn)
The Amazon Resource Name (ARN) of the recipe to use for model training. This is required when
performAutoMLis false. For information about different Amazon Personalize recipes and their ARNs, see Choosing a recipe.- Parameters:
recipeArn- The Amazon Resource Name (ARN) of the recipe to use for model training. This is required whenperformAutoMLis false. For information about different Amazon Personalize recipes and their ARNs, see Choosing a recipe.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
datasetGroupArn
CreateSolutionRequest.Builder datasetGroupArn(String datasetGroupArn)
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
- Parameters:
datasetGroupArn- The Amazon Resource Name (ARN) of the dataset group that provides the training data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eventType
CreateSolutionRequest.Builder eventType(String eventType)
When your have multiple event types (using an
EVENT_TYPEschema field), this parameter specifies which event type (for example, 'click' or 'like') is used for training the model.If you do not provide an
eventType, Amazon Personalize will use all interactions for training with equal weight regardless of type.- Parameters:
eventType- When your have multiple event types (using anEVENT_TYPEschema field), this parameter specifies which event type (for example, 'click' or 'like') is used for training the model.If you do not provide an
eventType, Amazon Personalize will use all interactions for training with equal weight regardless of type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionConfig
CreateSolutionRequest.Builder solutionConfig(SolutionConfig solutionConfig)
The configuration properties for the solution. When
performAutoMLis set to true, Amazon Personalize only evaluates theautoMLConfigsection of the solution configuration.Amazon Personalize doesn't support configuring the
hpoObjectiveat this time.- Parameters:
solutionConfig- The configuration properties for the solution. WhenperformAutoMLis set to true, Amazon Personalize only evaluates theautoMLConfigsection of the solution configuration.Amazon Personalize doesn't support configuring the
hpoObjectiveat this time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionConfig
default CreateSolutionRequest.Builder solutionConfig(Consumer<SolutionConfig.Builder> solutionConfig)
The configuration properties for the solution. When
performAutoMLis set to true, Amazon Personalize only evaluates theautoMLConfigsection of the solution configuration. This is a convenience method that creates an instance of theAmazon Personalize doesn't support configuring the
hpoObjectiveat this time.SolutionConfig.Builderavoiding the need to create one manually viaSolutionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosolutionConfig(SolutionConfig).- Parameters:
solutionConfig- a consumer that will call methods onSolutionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
solutionConfig(SolutionConfig)
-
tags
CreateSolutionRequest.Builder tags(Collection<Tag> tags)
A list of tags to apply to the solution.
- Parameters:
tags- A list of tags to apply to the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSolutionRequest.Builder tags(Tag... tags)
A list of tags to apply to the solution.
- Parameters:
tags- A list of tags to apply to the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateSolutionRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags to apply to the solution.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
overrideConfiguration
CreateSolutionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateSolutionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-