Struct aws_sdk_personalize::types::builders::SolutionVersionBuilder
source · #[non_exhaustive]pub struct SolutionVersionBuilder { /* private fields */ }
Expand description
A builder for SolutionVersion
.
Implementations§
source§impl SolutionVersionBuilder
impl SolutionVersionBuilder
sourcepub fn solution_version_arn(self, input: impl Into<String>) -> Self
pub fn solution_version_arn(self, input: impl Into<String>) -> Self
The ARN of the solution version.
sourcepub fn set_solution_version_arn(self, input: Option<String>) -> Self
pub fn set_solution_version_arn(self, input: Option<String>) -> Self
The ARN of the solution version.
sourcepub fn get_solution_version_arn(&self) -> &Option<String>
pub fn get_solution_version_arn(&self) -> &Option<String>
The ARN of the solution version.
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
When true, Amazon Personalize searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn
.
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 searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn
.
sourcepub fn get_perform_auto_ml(&self) -> &Option<bool>
pub fn get_perform_auto_ml(&self) -> &Option<bool>
When true, Amazon Personalize searches for the most optimal recipe according to the solution configuration. When false (the default), Amazon Personalize uses recipeArn
.
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 in 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 in the solution.
sourcepub fn get_recipe_arn(&self) -> &Option<String>
pub fn get_recipe_arn(&self) -> &Option<String>
The ARN of the recipe used in the solution.
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.
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.
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.
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 providing 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 providing 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 providing the training data.
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 training_hours(self, input: f64) -> Self
pub fn training_hours(self, input: f64) -> Self
The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model.
sourcepub fn set_training_hours(self, input: Option<f64>) -> Self
pub fn set_training_hours(self, input: Option<f64>) -> Self
The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model.
sourcepub fn get_training_hours(&self) -> &Option<f64>
pub fn get_training_hours(&self) -> &Option<f64>
The time used to train the model. You are billed for the time it takes to train a model. This field is visible only after Amazon Personalize successfully trains a model.
sourcepub fn training_mode(self, input: TrainingMode) -> Self
pub fn training_mode(self, input: TrainingMode) -> Self
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
sourcepub fn set_training_mode(self, input: Option<TrainingMode>) -> Self
pub fn set_training_mode(self, input: Option<TrainingMode>) -> Self
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
sourcepub fn get_training_mode(&self) -> &Option<TrainingMode>
pub fn get_training_mode(&self) -> &Option<TrainingMode>
The scope of training to be performed when creating the solution version. The FULL
option trains the solution version based on the entirety of the input solution's training data, while the UPDATE
option processes only the data that has changed in comparison to the input solution. Choose UPDATE
when you want to incrementally update your solution version instead of creating an entirely new one.
The UPDATE
option can only be used when you already have an active solution version created from the input solution using the FULL
option and the input solution was trained with the User-Personalization recipe or the HRNN-Coldstart recipe.
sourcepub fn tuned_hpo_params(self, input: TunedHpoParams) -> Self
pub fn tuned_hpo_params(self, input: TunedHpoParams) -> Self
If hyperparameter optimization was performed, contains the hyperparameter values of the best performing model.
sourcepub fn set_tuned_hpo_params(self, input: Option<TunedHpoParams>) -> Self
pub fn set_tuned_hpo_params(self, input: Option<TunedHpoParams>) -> Self
If hyperparameter optimization was performed, contains the hyperparameter values of the best performing model.
sourcepub fn get_tuned_hpo_params(&self) -> &Option<TunedHpoParams>
pub fn get_tuned_hpo_params(&self) -> &Option<TunedHpoParams>
If hyperparameter optimization was performed, contains the hyperparameter values of the best performing model.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the solution version.
A solution version can be in one of the following states:
-
CREATE PENDING
-
CREATE IN_PROGRESS
-
ACTIVE
-
CREATE FAILED
-
CREATE STOPPING
-
CREATE STOPPED
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of the solution version.
A solution version can be in one of the following states:
-
CREATE PENDING
-
CREATE IN_PROGRESS
-
ACTIVE
-
CREATE FAILED
-
CREATE STOPPING
-
CREATE STOPPED
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the solution version.
A solution version can be in one of the following states:
-
CREATE PENDING
-
CREATE IN_PROGRESS
-
ACTIVE
-
CREATE FAILED
-
CREATE STOPPING
-
CREATE STOPPED
sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
If training a solution version fails, the reason for the failure.
sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
If training a solution version fails, the reason for the failure.
sourcepub fn get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
If training a solution version fails, the reason for the failure.
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date and time (in Unix time) that this version of the solution was created.
sourcepub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_date_time(self, input: Option<DateTime>) -> Self
The date and time (in Unix time) that this version of the solution was created.
sourcepub fn get_creation_date_time(&self) -> &Option<DateTime>
pub fn get_creation_date_time(&self) -> &Option<DateTime>
The date and time (in Unix time) that this version of the solution was created.
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 build(self) -> SolutionVersion
pub fn build(self) -> SolutionVersion
Consumes the builder and constructs a SolutionVersion
.
Trait Implementations§
source§impl Clone for SolutionVersionBuilder
impl Clone for SolutionVersionBuilder
source§fn clone(&self) -> SolutionVersionBuilder
fn clone(&self) -> SolutionVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SolutionVersionBuilder
impl Debug for SolutionVersionBuilder
source§impl Default for SolutionVersionBuilder
impl Default for SolutionVersionBuilder
source§fn default() -> SolutionVersionBuilder
fn default() -> SolutionVersionBuilder
source§impl PartialEq for SolutionVersionBuilder
impl PartialEq for SolutionVersionBuilder
source§fn eq(&self, other: &SolutionVersionBuilder) -> bool
fn eq(&self, other: &SolutionVersionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.