#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateNotificationConfigurationInput {
pub event_type: ::std::option::Option<crate::types::EventType>,
pub destination_name: ::std::option::Option<::std::string::String>,
pub client_token: ::std::option::Option<::std::string::String>,
#[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl CreateNotificationConfigurationInput {
pub fn event_type(&self) -> ::std::option::Option<&crate::types::EventType> {
self.event_type.as_ref()
}
pub fn destination_name(&self) -> ::std::option::Option<&str> {
self.destination_name.as_deref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
#[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ::std::fmt::Debug for CreateNotificationConfigurationInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateNotificationConfigurationInput");
formatter.field("event_type", &self.event_type);
formatter.field("destination_name", &self.destination_name);
formatter.field("client_token", &self.client_token);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl CreateNotificationConfigurationInput {
pub fn builder() -> crate::operation::create_notification_configuration::builders::CreateNotificationConfigurationInputBuilder {
crate::operation::create_notification_configuration::builders::CreateNotificationConfigurationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateNotificationConfigurationInputBuilder {
pub(crate) event_type: ::std::option::Option<crate::types::EventType>,
pub(crate) destination_name: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl CreateNotificationConfigurationInputBuilder {
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 destination_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.destination_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_destination_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.destination_name = input;
self
}
pub fn get_destination_name(&self) -> &::std::option::Option<::std::string::String> {
&self.destination_name
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
#[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
#[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
#[deprecated(note = "Tags has been deprecated from this api", since = "06-25-2025")]
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::create_notification_configuration::CreateNotificationConfigurationInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(
crate::operation::create_notification_configuration::CreateNotificationConfigurationInput {
event_type: self.event_type,
destination_name: self.destination_name,
client_token: self.client_token,
tags: self.tags,
},
)
}
}
impl ::std::fmt::Debug for CreateNotificationConfigurationInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateNotificationConfigurationInputBuilder");
formatter.field("event_type", &self.event_type);
formatter.field("destination_name", &self.destination_name);
formatter.field("client_token", &self.client_token);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}