#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRecommenderConfigurationInput {
pub recommender_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRecommenderConfigurationInput {
pub fn recommender_id(&self) -> ::std::option::Option<&str> {
self.recommender_id.as_deref()
}
}
impl DeleteRecommenderConfigurationInput {
pub fn builder() -> crate::operation::delete_recommender_configuration::builders::DeleteRecommenderConfigurationInputBuilder {
crate::operation::delete_recommender_configuration::builders::DeleteRecommenderConfigurationInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct DeleteRecommenderConfigurationInputBuilder {
pub(crate) recommender_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRecommenderConfigurationInputBuilder {
pub fn recommender_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.recommender_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_recommender_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.recommender_id = input;
self
}
pub fn get_recommender_id(&self) -> &::std::option::Option<::std::string::String> {
&self.recommender_id
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(crate::operation::delete_recommender_configuration::DeleteRecommenderConfigurationInput {
recommender_id: self.recommender_id,
})
}
}