aws-sdk-customerprofiles 1.119.0

AWS SDK for Amazon Connect Customer Profiles
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetRecommenderInput {
    /// <p>The unique name of the domain.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>The name of the recommender.</p>
    pub recommender_name: ::std::option::Option<::std::string::String>,
    /// <p>The number of training metrics to retrieve for the recommender.</p>
    pub training_metrics_count: ::std::option::Option<i32>,
}
impl GetRecommenderInput {
    /// <p>The unique name of the domain.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>The name of the recommender.</p>
    pub fn recommender_name(&self) -> ::std::option::Option<&str> {
        self.recommender_name.as_deref()
    }
    /// <p>The number of training metrics to retrieve for the recommender.</p>
    pub fn training_metrics_count(&self) -> ::std::option::Option<i32> {
        self.training_metrics_count
    }
}
impl GetRecommenderInput {
    /// Creates a new builder-style object to manufacture [`GetRecommenderInput`](crate::operation::get_recommender::GetRecommenderInput).
    pub fn builder() -> crate::operation::get_recommender::builders::GetRecommenderInputBuilder {
        crate::operation::get_recommender::builders::GetRecommenderInputBuilder::default()
    }
}

/// A builder for [`GetRecommenderInput`](crate::operation::get_recommender::GetRecommenderInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetRecommenderInputBuilder {
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
    pub(crate) recommender_name: ::std::option::Option<::std::string::String>,
    pub(crate) training_metrics_count: ::std::option::Option<i32>,
}
impl GetRecommenderInputBuilder {
    /// <p>The unique name of the domain.</p>
    /// This field is required.
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique name of the domain.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>The unique name of the domain.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>The name of the recommender.</p>
    /// This field is required.
    pub fn recommender_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.recommender_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the recommender.</p>
    pub fn set_recommender_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.recommender_name = input;
        self
    }
    /// <p>The name of the recommender.</p>
    pub fn get_recommender_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.recommender_name
    }
    /// <p>The number of training metrics to retrieve for the recommender.</p>
    pub fn training_metrics_count(mut self, input: i32) -> Self {
        self.training_metrics_count = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of training metrics to retrieve for the recommender.</p>
    pub fn set_training_metrics_count(mut self, input: ::std::option::Option<i32>) -> Self {
        self.training_metrics_count = input;
        self
    }
    /// <p>The number of training metrics to retrieve for the recommender.</p>
    pub fn get_training_metrics_count(&self) -> &::std::option::Option<i32> {
        &self.training_metrics_count
    }
    /// Consumes the builder and constructs a [`GetRecommenderInput`](crate::operation::get_recommender::GetRecommenderInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_recommender::GetRecommenderInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_recommender::GetRecommenderInput {
            domain_name: self.domain_name,
            recommender_name: self.recommender_name,
            training_metrics_count: self.training_metrics_count,
        })
    }
}