#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ListRecommendationsInput {
pub insight_id: ::std::option::Option<::std::string::String>,
pub next_token: ::std::option::Option<::std::string::String>,
pub locale: ::std::option::Option<crate::types::Locale>,
pub account_id: ::std::option::Option<::std::string::String>,
}
impl ListRecommendationsInput {
pub fn insight_id(&self) -> ::std::option::Option<&str> {
self.insight_id.as_deref()
}
pub fn next_token(&self) -> ::std::option::Option<&str> {
self.next_token.as_deref()
}
pub fn locale(&self) -> ::std::option::Option<&crate::types::Locale> {
self.locale.as_ref()
}
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
}
impl ListRecommendationsInput {
pub fn builder() -> crate::operation::list_recommendations::builders::ListRecommendationsInputBuilder {
crate::operation::list_recommendations::builders::ListRecommendationsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ListRecommendationsInputBuilder {
pub(crate) insight_id: ::std::option::Option<::std::string::String>,
pub(crate) next_token: ::std::option::Option<::std::string::String>,
pub(crate) locale: ::std::option::Option<crate::types::Locale>,
pub(crate) account_id: ::std::option::Option<::std::string::String>,
}
impl ListRecommendationsInputBuilder {
pub fn insight_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.insight_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_insight_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.insight_id = input;
self
}
pub fn get_insight_id(&self) -> &::std::option::Option<::std::string::String> {
&self.insight_id
}
pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.next_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
&self.next_token
}
pub fn locale(mut self, input: crate::types::Locale) -> Self {
self.locale = ::std::option::Option::Some(input);
self
}
pub fn set_locale(mut self, input: ::std::option::Option<crate::types::Locale>) -> Self {
self.locale = input;
self
}
pub fn get_locale(&self) -> &::std::option::Option<crate::types::Locale> {
&self.locale
}
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::list_recommendations::ListRecommendationsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::list_recommendations::ListRecommendationsInput {
insight_id: self.insight_id,
next_token: self.next_token,
locale: self.locale,
account_id: self.account_id,
})
}
}