#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteNotificationInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub budget_name: ::std::option::Option<::std::string::String>,
pub notification: ::std::option::Option<crate::types::Notification>,
}
impl DeleteNotificationInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn budget_name(&self) -> ::std::option::Option<&str> {
self.budget_name.as_deref()
}
pub fn notification(&self) -> ::std::option::Option<&crate::types::Notification> {
self.notification.as_ref()
}
}
impl DeleteNotificationInput {
pub fn builder() -> crate::operation::delete_notification::builders::DeleteNotificationInputBuilder {
crate::operation::delete_notification::builders::DeleteNotificationInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteNotificationInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) budget_name: ::std::option::Option<::std::string::String>,
pub(crate) notification: ::std::option::Option<crate::types::Notification>,
}
impl DeleteNotificationInputBuilder {
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 budget_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.budget_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_budget_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.budget_name = input;
self
}
pub fn get_budget_name(&self) -> &::std::option::Option<::std::string::String> {
&self.budget_name
}
pub fn notification(mut self, input: crate::types::Notification) -> Self {
self.notification = ::std::option::Option::Some(input);
self
}
pub fn set_notification(mut self, input: ::std::option::Option<crate::types::Notification>) -> Self {
self.notification = input;
self
}
pub fn get_notification(&self) -> &::std::option::Option<crate::types::Notification> {
&self.notification
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_notification::DeleteNotificationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_notification::DeleteNotificationInput {
account_id: self.account_id,
budget_name: self.budget_name,
notification: self.notification,
})
}
}