Struct aws_sdk_personalize::model::solution::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Solution
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn solution_arn(self, input: impl Into<String>) -> Self
pub fn solution_arn(self, input: impl Into<String>) -> Self
The ARN of the solution.
sourcepub fn set_solution_arn(self, input: Option<String>) -> Self
pub fn set_solution_arn(self, input: Option<String>) -> Self
The ARN of the solution.
sourcepub fn perform_hpo(self, input: bool) -> Self
pub fn perform_hpo(self, input: bool) -> Self
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
sourcepub fn set_perform_hpo(self, input: Option<bool>) -> Self
pub fn set_perform_hpo(self, input: Option<bool>) -> Self
Whether to perform hyperparameter optimization (HPO) on the chosen recipe. The default is false
.
sourcepub fn perform_auto_ml(self, input: bool) -> Self
pub fn perform_auto_ml(self, input: bool) -> Self
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 uses recipeArn
for training.
sourcepub fn set_perform_auto_ml(self, input: Option<bool>) -> Self
pub fn set_perform_auto_ml(self, input: Option<bool>) -> Self
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 uses recipeArn
for training.
sourcepub fn recipe_arn(self, input: impl Into<String>) -> Self
pub fn recipe_arn(self, input: impl Into<String>) -> Self
The ARN of the recipe used to create the solution.
sourcepub fn set_recipe_arn(self, input: Option<String>) -> Self
pub fn set_recipe_arn(self, input: Option<String>) -> Self
The ARN of the recipe used to create the solution.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group that provides the training data.
sourcepub fn event_type(self, input: impl Into<String>) -> Self
pub fn event_type(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_event_type(self, input: Option<String>) -> Self
pub fn set_event_type(self, input: Option<String>) -> Self
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.
sourcepub fn solution_config(self, input: SolutionConfig) -> Self
pub fn solution_config(self, input: SolutionConfig) -> Self
Describes the configuration properties for the solution.
sourcepub fn set_solution_config(self, input: Option<SolutionConfig>) -> Self
pub fn set_solution_config(self, input: Option<SolutionConfig>) -> Self
Describes the configuration properties for the solution.
sourcepub fn auto_ml_result(self, input: AutoMlResult) -> Self
pub fn auto_ml_result(self, input: AutoMlResult) -> Self
When performAutoML
is true, specifies the best recipe found.
sourcepub fn set_auto_ml_result(self, input: Option<AutoMlResult>) -> Self
pub fn set_auto_ml_result(self, input: Option<AutoMlResult>) -> Self
When performAutoML
is true, specifies the best recipe found.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
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
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
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
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The creation date and time (in Unix time) of the solution.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The creation date and time (in Unix time) of the solution.
sourcepub fn last_updated_date_time(self, input: DateTime) -> Self
pub fn last_updated_date_time(self, input: DateTime) -> Self
The date and time (in Unix time) that the solution was last updated.
sourcepub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date_time(self, input: Option<DateTime>) -> Self
The date and time (in Unix time) that the solution was last updated.
sourcepub fn latest_solution_version(self, input: SolutionVersionSummary) -> Self
pub fn latest_solution_version(self, input: SolutionVersionSummary) -> Self
Describes the latest version of the solution, including the status and the ARN.
sourcepub fn set_latest_solution_version(
self,
input: Option<SolutionVersionSummary>
) -> Self
pub fn set_latest_solution_version(
self,
input: Option<SolutionVersionSummary>
) -> Self
Describes the latest version of the solution, including the status and the ARN.