Struct aws_sdk_personalize::types::builders::RecommenderBuilder
source · #[non_exhaustive]pub struct RecommenderBuilder { /* private fields */ }Expand description
A builder for Recommender.
Implementations§
source§impl RecommenderBuilder
impl RecommenderBuilder
sourcepub fn recommender_arn(self, input: impl Into<String>) -> Self
pub fn recommender_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the recommender.
sourcepub fn set_recommender_arn(self, input: Option<String>) -> Self
pub fn set_recommender_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the recommender.
sourcepub fn get_recommender_arn(&self) -> &Option<String>
pub fn get_recommender_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the recommender.
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 Domain dataset group that contains the recommender.
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 Domain dataset group that contains the recommender.
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 Domain dataset group that contains the recommender.
sourcepub fn recipe_arn(self, input: impl Into<String>) -> Self
pub fn recipe_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the recipe (Domain dataset group use case) that the recommender was created for.
sourcepub fn set_recipe_arn(self, input: Option<String>) -> Self
pub fn set_recipe_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the recipe (Domain dataset group use case) that the recommender was created for.
sourcepub fn get_recipe_arn(&self) -> &Option<String>
pub fn get_recipe_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the recipe (Domain dataset group use case) that the recommender was created for.
sourcepub fn recommender_config(self, input: RecommenderConfig) -> Self
pub fn recommender_config(self, input: RecommenderConfig) -> Self
The configuration details of the recommender.
sourcepub fn set_recommender_config(self, input: Option<RecommenderConfig>) -> Self
pub fn set_recommender_config(self, input: Option<RecommenderConfig>) -> Self
The configuration details of the recommender.
sourcepub fn get_recommender_config(&self) -> &Option<RecommenderConfig>
pub fn get_recommender_config(&self) -> &Option<RecommenderConfig>
The configuration details of the recommender.
sourcepub fn creation_date_time(self, input: DateTime) -> Self
pub fn creation_date_time(self, input: DateTime) -> Self
The date and time (in Unix format) that the recommender 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 format) that the recommender 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 format) that the recommender 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 format) that the recommender 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 format) that the recommender 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 format) that the recommender was last updated.
sourcepub fn status(self, input: impl Into<String>) -> Self
pub fn status(self, input: impl Into<String>) -> Self
The status of the recommender.
A recommender can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE
-
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 recommender.
A recommender can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of the recommender.
A recommender can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn failure_reason(self, input: impl Into<String>) -> Self
pub fn failure_reason(self, input: impl Into<String>) -> Self
If a recommender fails, the reason behind the failure.
sourcepub fn set_failure_reason(self, input: Option<String>) -> Self
pub fn set_failure_reason(self, input: Option<String>) -> Self
If a recommender fails, the reason behind the failure.
sourcepub fn get_failure_reason(&self) -> &Option<String>
pub fn get_failure_reason(&self) -> &Option<String>
If a recommender fails, the reason behind the failure.
sourcepub fn latest_recommender_update(self, input: RecommenderUpdateSummary) -> Self
pub fn latest_recommender_update(self, input: RecommenderUpdateSummary) -> Self
Provides a summary of the latest updates to the recommender.
sourcepub fn set_latest_recommender_update(
self,
input: Option<RecommenderUpdateSummary>
) -> Self
pub fn set_latest_recommender_update( self, input: Option<RecommenderUpdateSummary> ) -> Self
Provides a summary of the latest updates to the recommender.
sourcepub fn get_latest_recommender_update(&self) -> &Option<RecommenderUpdateSummary>
pub fn get_latest_recommender_update(&self) -> &Option<RecommenderUpdateSummary>
Provides a summary of the latest updates to the recommender.
sourcepub fn model_metrics(self, k: impl Into<String>, v: f64) -> Self
pub fn model_metrics(self, k: impl Into<String>, v: f64) -> Self
Adds a key-value pair to model_metrics.
To override the contents of this collection use set_model_metrics.
Provides evaluation metrics that help you determine the performance of a recommender. For more information, see Evaluating a recommender.
sourcepub fn set_model_metrics(self, input: Option<HashMap<String, f64>>) -> Self
pub fn set_model_metrics(self, input: Option<HashMap<String, f64>>) -> Self
Provides evaluation metrics that help you determine the performance of a recommender. For more information, see Evaluating a recommender.
sourcepub fn get_model_metrics(&self) -> &Option<HashMap<String, f64>>
pub fn get_model_metrics(&self) -> &Option<HashMap<String, f64>>
Provides evaluation metrics that help you determine the performance of a recommender. For more information, see Evaluating a recommender.
sourcepub fn build(self) -> Recommender
pub fn build(self) -> Recommender
Consumes the builder and constructs a Recommender.
Trait Implementations§
source§impl Clone for RecommenderBuilder
impl Clone for RecommenderBuilder
source§fn clone(&self) -> RecommenderBuilder
fn clone(&self) -> RecommenderBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RecommenderBuilder
impl Debug for RecommenderBuilder
source§impl Default for RecommenderBuilder
impl Default for RecommenderBuilder
source§fn default() -> RecommenderBuilder
fn default() -> RecommenderBuilder
source§impl PartialEq for RecommenderBuilder
impl PartialEq for RecommenderBuilder
source§fn eq(&self, other: &RecommenderBuilder) -> bool
fn eq(&self, other: &RecommenderBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RecommenderBuilder
Auto Trait Implementations§
impl Freeze for RecommenderBuilder
impl RefUnwindSafe for RecommenderBuilder
impl Send for RecommenderBuilder
impl Sync for RecommenderBuilder
impl Unpin for RecommenderBuilder
impl UnwindSafe for RecommenderBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more