#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetNotificationEventInput {
pub arn: ::std::option::Option<::std::string::String>,
pub locale: ::std::option::Option<crate::types::LocaleCode>,
}
impl GetNotificationEventInput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn locale(&self) -> ::std::option::Option<&crate::types::LocaleCode> {
self.locale.as_ref()
}
}
impl GetNotificationEventInput {
pub fn builder() -> crate::operation::get_notification_event::builders::GetNotificationEventInputBuilder {
crate::operation::get_notification_event::builders::GetNotificationEventInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetNotificationEventInputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) locale: ::std::option::Option<crate::types::LocaleCode>,
}
impl GetNotificationEventInputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn locale(mut self, input: crate::types::LocaleCode) -> Self {
self.locale = ::std::option::Option::Some(input);
self
}
pub fn set_locale(mut self, input: ::std::option::Option<crate::types::LocaleCode>) -> Self {
self.locale = input;
self
}
pub fn get_locale(&self) -> &::std::option::Option<crate::types::LocaleCode> {
&self.locale
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_notification_event::GetNotificationEventInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::get_notification_event::GetNotificationEventInput {
arn: self.arn,
locale: self.locale,
})
}
}