#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateNotificationInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub budget_name: ::std::option::Option<::std::string::String>,
pub old_notification: ::std::option::Option<crate::types::Notification>,
pub new_notification: ::std::option::Option<crate::types::Notification>,
}
impl UpdateNotificationInput {
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 old_notification(&self) -> ::std::option::Option<&crate::types::Notification> {
self.old_notification.as_ref()
}
pub fn new_notification(&self) -> ::std::option::Option<&crate::types::Notification> {
self.new_notification.as_ref()
}
}
impl UpdateNotificationInput {
pub fn builder() -> crate::operation::update_notification::builders::UpdateNotificationInputBuilder {
crate::operation::update_notification::builders::UpdateNotificationInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateNotificationInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) budget_name: ::std::option::Option<::std::string::String>,
pub(crate) old_notification: ::std::option::Option<crate::types::Notification>,
pub(crate) new_notification: ::std::option::Option<crate::types::Notification>,
}
impl UpdateNotificationInputBuilder {
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 old_notification(mut self, input: crate::types::Notification) -> Self {
self.old_notification = ::std::option::Option::Some(input);
self
}
pub fn set_old_notification(mut self, input: ::std::option::Option<crate::types::Notification>) -> Self {
self.old_notification = input;
self
}
pub fn get_old_notification(&self) -> &::std::option::Option<crate::types::Notification> {
&self.old_notification
}
pub fn new_notification(mut self, input: crate::types::Notification) -> Self {
self.new_notification = ::std::option::Option::Some(input);
self
}
pub fn set_new_notification(mut self, input: ::std::option::Option<crate::types::Notification>) -> Self {
self.new_notification = input;
self
}
pub fn get_new_notification(&self) -> &::std::option::Option<crate::types::Notification> {
&self.new_notification
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_notification::UpdateNotificationInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_notification::UpdateNotificationInput {
account_id: self.account_id,
budget_name: self.budget_name,
old_notification: self.old_notification,
new_notification: self.new_notification,
})
}
}