aws_sdk_budgets/operation/delete_notification/
_delete_notification_input.rs1#[non_exhaustive]
5#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
6pub struct DeleteNotificationInput {
7 pub account_id: ::std::option::Option<::std::string::String>,
9 pub budget_name: ::std::option::Option<::std::string::String>,
11 pub notification: ::std::option::Option<crate::types::Notification>,
13}
14impl DeleteNotificationInput {
15 pub fn account_id(&self) -> ::std::option::Option<&str> {
17 self.account_id.as_deref()
18 }
19 pub fn budget_name(&self) -> ::std::option::Option<&str> {
21 self.budget_name.as_deref()
22 }
23 pub fn notification(&self) -> ::std::option::Option<&crate::types::Notification> {
25 self.notification.as_ref()
26 }
27}
28impl DeleteNotificationInput {
29 pub fn builder() -> crate::operation::delete_notification::builders::DeleteNotificationInputBuilder {
31 crate::operation::delete_notification::builders::DeleteNotificationInputBuilder::default()
32 }
33}
34
35#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
37#[non_exhaustive]
38pub struct DeleteNotificationInputBuilder {
39 pub(crate) account_id: ::std::option::Option<::std::string::String>,
40 pub(crate) budget_name: ::std::option::Option<::std::string::String>,
41 pub(crate) notification: ::std::option::Option<crate::types::Notification>,
42}
43impl DeleteNotificationInputBuilder {
44 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
47 self.account_id = ::std::option::Option::Some(input.into());
48 self
49 }
50 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
52 self.account_id = input;
53 self
54 }
55 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
57 &self.account_id
58 }
59 pub fn budget_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
62 self.budget_name = ::std::option::Option::Some(input.into());
63 self
64 }
65 pub fn set_budget_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
67 self.budget_name = input;
68 self
69 }
70 pub fn get_budget_name(&self) -> &::std::option::Option<::std::string::String> {
72 &self.budget_name
73 }
74 pub fn notification(mut self, input: crate::types::Notification) -> Self {
77 self.notification = ::std::option::Option::Some(input);
78 self
79 }
80 pub fn set_notification(mut self, input: ::std::option::Option<crate::types::Notification>) -> Self {
82 self.notification = input;
83 self
84 }
85 pub fn get_notification(&self) -> &::std::option::Option<crate::types::Notification> {
87 &self.notification
88 }
89 pub fn build(
91 self,
92 ) -> ::std::result::Result<crate::operation::delete_notification::DeleteNotificationInput, ::aws_smithy_types::error::operation::BuildError> {
93 ::std::result::Result::Ok(crate::operation::delete_notification::DeleteNotificationInput {
94 account_id: self.account_id,
95 budget_name: self.budget_name,
96 notification: self.notification,
97 })
98 }
99}