Struct aws_sdk_personalize::types::builders::SolutionBuilder
source · #[non_exhaustive]pub struct SolutionBuilder { /* private fields */ }
Expand description
A builder for Solution
.
Implementations§
source§impl SolutionBuilder
impl SolutionBuilder
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 get_solution_arn(&self) -> &Option<String>
pub fn get_solution_arn(&self) -> &Option<String>
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 get_perform_hpo(&self) -> &Option<bool>
pub fn get_perform_hpo(&self) -> &Option<bool>
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
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 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
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 uses recipeArn
for training.
sourcepub fn get_perform_auto_ml(&self) -> &Option<bool>
pub fn get_perform_auto_ml(&self) -> &Option<bool>
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 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. This is required when performAutoML
is false.
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. This is required when performAutoML
is false.
sourcepub fn get_recipe_arn(&self) -> &Option<String>
pub fn get_recipe_arn(&self) -> &Option<String>
The ARN of the recipe used to create the solution. This is required when performAutoML
is false.
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 get_dataset_group_arn(&self) -> &Option<String>
pub fn get_dataset_group_arn(&self) -> &Option<String>
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 get_event_type(&self) -> &Option<String>
pub fn get_event_type(&self) -> &Option<String>
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 get_solution_config(&self) -> &Option<SolutionConfig>
pub fn get_solution_config(&self) -> &Option<SolutionConfig>
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 get_auto_ml_result(&self) -> &Option<AutoMlResult>
pub fn get_auto_ml_result(&self) -> &Option<AutoMlResult>
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 get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
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 get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
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 get_last_updated_date_time(&self) -> &Option<DateTime>
pub fn get_last_updated_date_time(&self) -> &Option<DateTime>
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.
sourcepub fn get_latest_solution_version(&self) -> &Option<SolutionVersionSummary>
pub fn get_latest_solution_version(&self) -> &Option<SolutionVersionSummary>
Describes the latest version of the solution, including the status and the ARN.
Trait Implementations§
source§impl Clone for SolutionBuilder
impl Clone for SolutionBuilder
source§fn clone(&self) -> SolutionBuilder
fn clone(&self) -> SolutionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SolutionBuilder
impl Debug for SolutionBuilder
source§impl Default for SolutionBuilder
impl Default for SolutionBuilder
source§fn default() -> SolutionBuilder
fn default() -> SolutionBuilder
source§impl PartialEq for SolutionBuilder
impl PartialEq for SolutionBuilder
source§fn eq(&self, other: &SolutionBuilder) -> bool
fn eq(&self, other: &SolutionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.