1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateAccountSettingsInput {
/// <p>The ID for the Amazon Web Services account that contains the Quick Sight settings that you want to list.</p>
pub aws_account_id: ::std::option::Option<::std::string::String>,
/// <p>The default namespace for this Amazon Web Services account. Currently, the default is <code>default</code>. IAM users that register for the first time with Amazon Quick Sight provide an email address that becomes associated with the default namespace.</p>
pub default_namespace: ::std::option::Option<::std::string::String>,
/// <p>The email address that you want Quick Sight to send notifications to regarding your Amazon Web Services account or Quick Sight subscription.</p>
pub notification_email: ::std::option::Option<::std::string::String>,
/// <p>A boolean value that determines whether or not an Quick Sight account can be deleted. A <code>True</code> value doesn't allow the account to be deleted and results in an error message if a user tries to make a <code>DeleteAccountSubscription</code> request. A <code>False</code> value will allow the account to be deleted.</p>
pub termination_protection_enabled: ::std::option::Option<bool>,
}
impl UpdateAccountSettingsInput {
/// <p>The ID for the Amazon Web Services account that contains the Quick Sight settings that you want to list.</p>
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
/// <p>The default namespace for this Amazon Web Services account. Currently, the default is <code>default</code>. IAM users that register for the first time with Amazon Quick Sight provide an email address that becomes associated with the default namespace.</p>
pub fn default_namespace(&self) -> ::std::option::Option<&str> {
self.default_namespace.as_deref()
}
/// <p>The email address that you want Quick Sight to send notifications to regarding your Amazon Web Services account or Quick Sight subscription.</p>
pub fn notification_email(&self) -> ::std::option::Option<&str> {
self.notification_email.as_deref()
}
/// <p>A boolean value that determines whether or not an Quick Sight account can be deleted. A <code>True</code> value doesn't allow the account to be deleted and results in an error message if a user tries to make a <code>DeleteAccountSubscription</code> request. A <code>False</code> value will allow the account to be deleted.</p>
pub fn termination_protection_enabled(&self) -> ::std::option::Option<bool> {
self.termination_protection_enabled
}
}
impl UpdateAccountSettingsInput {
/// Creates a new builder-style object to manufacture [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
pub fn builder() -> crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder {
crate::operation::update_account_settings::builders::UpdateAccountSettingsInputBuilder::default()
}
}
/// A builder for [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateAccountSettingsInputBuilder {
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) default_namespace: ::std::option::Option<::std::string::String>,
pub(crate) notification_email: ::std::option::Option<::std::string::String>,
pub(crate) termination_protection_enabled: ::std::option::Option<bool>,
}
impl UpdateAccountSettingsInputBuilder {
/// <p>The ID for the Amazon Web Services account that contains the Quick Sight settings that you want to list.</p>
/// This field is required.
pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.aws_account_id = ::std::option::Option::Some(input.into());
self
}
/// <p>The ID for the Amazon Web Services account that contains the Quick Sight settings that you want to list.</p>
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
/// <p>The ID for the Amazon Web Services account that contains the Quick Sight settings that you want to list.</p>
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
/// <p>The default namespace for this Amazon Web Services account. Currently, the default is <code>default</code>. IAM users that register for the first time with Amazon Quick Sight provide an email address that becomes associated with the default namespace.</p>
/// This field is required.
pub fn default_namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.default_namespace = ::std::option::Option::Some(input.into());
self
}
/// <p>The default namespace for this Amazon Web Services account. Currently, the default is <code>default</code>. IAM users that register for the first time with Amazon Quick Sight provide an email address that becomes associated with the default namespace.</p>
pub fn set_default_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.default_namespace = input;
self
}
/// <p>The default namespace for this Amazon Web Services account. Currently, the default is <code>default</code>. IAM users that register for the first time with Amazon Quick Sight provide an email address that becomes associated with the default namespace.</p>
pub fn get_default_namespace(&self) -> &::std::option::Option<::std::string::String> {
&self.default_namespace
}
/// <p>The email address that you want Quick Sight to send notifications to regarding your Amazon Web Services account or Quick Sight subscription.</p>
pub fn notification_email(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.notification_email = ::std::option::Option::Some(input.into());
self
}
/// <p>The email address that you want Quick Sight to send notifications to regarding your Amazon Web Services account or Quick Sight subscription.</p>
pub fn set_notification_email(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.notification_email = input;
self
}
/// <p>The email address that you want Quick Sight to send notifications to regarding your Amazon Web Services account or Quick Sight subscription.</p>
pub fn get_notification_email(&self) -> &::std::option::Option<::std::string::String> {
&self.notification_email
}
/// <p>A boolean value that determines whether or not an Quick Sight account can be deleted. A <code>True</code> value doesn't allow the account to be deleted and results in an error message if a user tries to make a <code>DeleteAccountSubscription</code> request. A <code>False</code> value will allow the account to be deleted.</p>
pub fn termination_protection_enabled(mut self, input: bool) -> Self {
self.termination_protection_enabled = ::std::option::Option::Some(input);
self
}
/// <p>A boolean value that determines whether or not an Quick Sight account can be deleted. A <code>True</code> value doesn't allow the account to be deleted and results in an error message if a user tries to make a <code>DeleteAccountSubscription</code> request. A <code>False</code> value will allow the account to be deleted.</p>
pub fn set_termination_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.termination_protection_enabled = input;
self
}
/// <p>A boolean value that determines whether or not an Quick Sight account can be deleted. A <code>True</code> value doesn't allow the account to be deleted and results in an error message if a user tries to make a <code>DeleteAccountSubscription</code> request. A <code>False</code> value will allow the account to be deleted.</p>
pub fn get_termination_protection_enabled(&self) -> &::std::option::Option<bool> {
&self.termination_protection_enabled
}
/// Consumes the builder and constructs a [`UpdateAccountSettingsInput`](crate::operation::update_account_settings::UpdateAccountSettingsInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_account_settings::UpdateAccountSettingsInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_account_settings::UpdateAccountSettingsInput {
aws_account_id: self.aws_account_id,
default_namespace: self.default_namespace,
notification_email: self.notification_email,
termination_protection_enabled: self.termination_protection_enabled,
})
}
}