#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNotificationConfigurationInput {
pub event_type: ::std::option::Option<crate::types::EventType>,
}
impl DeleteNotificationConfigurationInput {
pub fn event_type(&self) -> ::std::option::Option<&crate::types::EventType> {
self.event_type.as_ref()
}
}
impl DeleteNotificationConfigurationInput {
pub fn builder() -> crate::operation::delete_notification_configuration::builders::DeleteNotificationConfigurationInputBuilder {
crate::operation::delete_notification_configuration::builders::DeleteNotificationConfigurationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNotificationConfigurationInputBuilder {
pub(crate) event_type: ::std::option::Option<crate::types::EventType>,
}
impl DeleteNotificationConfigurationInputBuilder {
pub fn event_type(mut self, input: crate::types::EventType) -> Self {
self.event_type = ::std::option::Option::Some(input);
self
}
pub fn set_event_type(mut self, input: ::std::option::Option<crate::types::EventType>) -> Self {
self.event_type = input;
self
}
pub fn get_event_type(&self) -> &::std::option::Option<crate::types::EventType> {
&self.event_type
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::delete_notification_configuration::DeleteNotificationConfigurationInput { event_type: self.event_type },
)
}
}