Interface Solution.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Solution.Builder,
,Solution> SdkBuilder<Solution.Builder,
,Solution> SdkPojo
- Enclosing class:
Solution
-
Method Summary
Modifier and TypeMethodDescriptiondefault Solution.Builder
autoMLResult
(Consumer<AutoMLResult.Builder> autoMLResult) WhenperformAutoML
is true, specifies the best recipe found.autoMLResult
(AutoMLResult autoMLResult) WhenperformAutoML
is true, specifies the best recipe found.creationDateTime
(Instant creationDateTime) The creation date and time (in Unix time) of the solution.datasetGroupArn
(String datasetGroupArn) The Amazon Resource Name (ARN) of the dataset group that provides the training data.The event type (for example, 'click' or 'like') that is used for training the model.lastUpdatedDateTime
(Instant lastUpdatedDateTime) The date and time (in Unix time) that the solution was last updated.default Solution.Builder
latestSolutionVersion
(Consumer<SolutionVersionSummary.Builder> latestSolutionVersion) Describes the latest version of the solution, including the status and the ARN.latestSolutionVersion
(SolutionVersionSummary latestSolutionVersion) Describes the latest version of the solution, including the status and the ARN.The name of the solution.performAutoML
(Boolean performAutoML) performHPO
(Boolean performHPO) Whether to perform hyperparameter optimization (HPO) on the chosen recipe.The ARN of the recipe used to create the solution.solutionArn
(String solutionArn) The ARN of the solution.default Solution.Builder
solutionConfig
(Consumer<SolutionConfig.Builder> solutionConfig) Describes the configuration properties for the solution.solutionConfig
(SolutionConfig solutionConfig) Describes the configuration properties for the solution.The status of the solution.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
name
The name of the solution.
- Parameters:
name
- The name of the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionArn
The ARN of the solution.
- Parameters:
solutionArn
- The ARN of the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performHPO
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is
false
.- Parameters:
performHPO
- Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default isfalse
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performAutoML
We don't recommend enabling automated machine learning. Instead, match your use case to the available Amazon Personalize recipes. For more information, see Determining your use case.
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.- 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 Determining your use case.
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:
- Returns a reference to this object so that method calls can be chained together.
-
recipeArn
The ARN of the recipe used to create the solution. This is required when
performAutoML
is false.- Parameters:
recipeArn
- The ARN of the recipe used to create the solution. This is required whenperformAutoML
is false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
The event type (for example, 'click' or 'like') that is used for training the model. If no
eventType
is provided, Amazon Personalize uses all interactions for training with equal weight regardless of type.- 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:
- Returns a reference to this object so that method calls can be chained together.
-
solutionConfig
Describes the configuration properties for the solution.
- Parameters:
solutionConfig
- Describes the configuration properties for the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
solutionConfig
Describes the configuration properties for the solution.
This is a convenience method that creates an instance of theSolutionConfig.Builder
avoiding the need to create one manually viaSolutionConfig.builder()
.When the
Consumer
completes,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:
-
autoMLResult
When
performAutoML
is true, specifies the best recipe found.- Parameters:
autoMLResult
- WhenperformAutoML
is true, specifies the best recipe found.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoMLResult
When
This is a convenience method that creates an instance of theperformAutoML
is true, specifies the best recipe found.AutoMLResult.Builder
avoiding the need to create one manually viaAutoMLResult.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toautoMLResult(AutoMLResult)
.- Parameters:
autoMLResult
- a consumer that will call methods onAutoMLResult.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the solution.
A solution can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
- Parameters:
status
- The status of the solution.A solution can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
creationDateTime
The creation date and time (in Unix time) of the solution.
- Parameters:
creationDateTime
- The creation date and time (in Unix time) of the solution.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDateTime
The date and time (in Unix time) that the solution was last updated.
- Parameters:
lastUpdatedDateTime
- The date and time (in Unix time) that the solution was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestSolutionVersion
Describes the latest version of the solution, including the status and the ARN.
- Parameters:
latestSolutionVersion
- Describes the latest version of the solution, including the status and the ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
latestSolutionVersion
default Solution.Builder latestSolutionVersion(Consumer<SolutionVersionSummary.Builder> latestSolutionVersion) Describes the latest version of the solution, including the status and the ARN.
This is a convenience method that creates an instance of theSolutionVersionSummary.Builder
avoiding the need to create one manually viaSolutionVersionSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolatestSolutionVersion(SolutionVersionSummary)
.- Parameters:
latestSolutionVersion
- a consumer that will call methods onSolutionVersionSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-