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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>A list of details about the email-sending capabilities of your Amazon Pinpoint account in the current AWS Region.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetAccountOutput {
/// <p>An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.</p>
pub send_quota: ::std::option::Option<crate::types::SendQuota>,
/// <p>Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.</p>
pub sending_enabled: bool,
/// <p>Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.</p>
pub dedicated_ip_auto_warmup_enabled: bool,
/// <p>The reputation status of your Amazon Pinpoint account. The status can be one of the following:</p>
/// <ul>
/// <li>
/// <p><code>HEALTHY</code> – There are no reputation-related issues that currently impact your account.</p></li>
/// <li>
/// <p><code>PROBATION</code> – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.</p></li>
/// <li>
/// <p><code>SHUTDOWN</code> – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.</p></li>
/// </ul>
pub enforcement_status: ::std::option::Option<::std::string::String>,
/// <p>Indicates whether or not your account has production access in the current AWS Region.</p>
/// <p>If the value is <code>false</code>, then your account is in the <i>sandbox</i>. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.</p>
/// <p>If the value is <code>true</code>, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.</p>
pub production_access_enabled: bool,
_request_id: Option<String>,
}
impl GetAccountOutput {
/// <p>An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn send_quota(&self) -> ::std::option::Option<&crate::types::SendQuota> {
self.send_quota.as_ref()
}
/// <p>Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn sending_enabled(&self) -> bool {
self.sending_enabled
}
/// <p>Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.</p>
pub fn dedicated_ip_auto_warmup_enabled(&self) -> bool {
self.dedicated_ip_auto_warmup_enabled
}
/// <p>The reputation status of your Amazon Pinpoint account. The status can be one of the following:</p>
/// <ul>
/// <li>
/// <p><code>HEALTHY</code> – There are no reputation-related issues that currently impact your account.</p></li>
/// <li>
/// <p><code>PROBATION</code> – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.</p></li>
/// <li>
/// <p><code>SHUTDOWN</code> – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.</p></li>
/// </ul>
pub fn enforcement_status(&self) -> ::std::option::Option<&str> {
self.enforcement_status.as_deref()
}
/// <p>Indicates whether or not your account has production access in the current AWS Region.</p>
/// <p>If the value is <code>false</code>, then your account is in the <i>sandbox</i>. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.</p>
/// <p>If the value is <code>true</code>, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.</p>
pub fn production_access_enabled(&self) -> bool {
self.production_access_enabled
}
}
impl ::aws_types::request_id::RequestId for GetAccountOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetAccountOutput {
/// Creates a new builder-style object to manufacture [`GetAccountOutput`](crate::operation::get_account::GetAccountOutput).
pub fn builder() -> crate::operation::get_account::builders::GetAccountOutputBuilder {
crate::operation::get_account::builders::GetAccountOutputBuilder::default()
}
}
/// A builder for [`GetAccountOutput`](crate::operation::get_account::GetAccountOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetAccountOutputBuilder {
pub(crate) send_quota: ::std::option::Option<crate::types::SendQuota>,
pub(crate) sending_enabled: ::std::option::Option<bool>,
pub(crate) dedicated_ip_auto_warmup_enabled: ::std::option::Option<bool>,
pub(crate) enforcement_status: ::std::option::Option<::std::string::String>,
pub(crate) production_access_enabled: ::std::option::Option<bool>,
_request_id: Option<String>,
}
impl GetAccountOutputBuilder {
/// <p>An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn send_quota(mut self, input: crate::types::SendQuota) -> Self {
self.send_quota = ::std::option::Option::Some(input);
self
}
/// <p>An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn set_send_quota(mut self, input: ::std::option::Option<crate::types::SendQuota>) -> Self {
self.send_quota = input;
self
}
/// <p>An object that contains information about the per-day and per-second sending limits for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn get_send_quota(&self) -> &::std::option::Option<crate::types::SendQuota> {
&self.send_quota
}
/// <p>Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn sending_enabled(mut self, input: bool) -> Self {
self.sending_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn set_sending_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.sending_enabled = input;
self
}
/// <p>Indicates whether or not email sending is enabled for your Amazon Pinpoint account in the current AWS Region.</p>
pub fn get_sending_enabled(&self) -> &::std::option::Option<bool> {
&self.sending_enabled
}
/// <p>Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.</p>
pub fn dedicated_ip_auto_warmup_enabled(mut self, input: bool) -> Self {
self.dedicated_ip_auto_warmup_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.</p>
pub fn set_dedicated_ip_auto_warmup_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.dedicated_ip_auto_warmup_enabled = input;
self
}
/// <p>Indicates whether or not the automatic warm-up feature is enabled for dedicated IP addresses that are associated with your account.</p>
pub fn get_dedicated_ip_auto_warmup_enabled(&self) -> &::std::option::Option<bool> {
&self.dedicated_ip_auto_warmup_enabled
}
/// <p>The reputation status of your Amazon Pinpoint account. The status can be one of the following:</p>
/// <ul>
/// <li>
/// <p><code>HEALTHY</code> – There are no reputation-related issues that currently impact your account.</p></li>
/// <li>
/// <p><code>PROBATION</code> – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.</p></li>
/// <li>
/// <p><code>SHUTDOWN</code> – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.</p></li>
/// </ul>
pub fn enforcement_status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.enforcement_status = ::std::option::Option::Some(input.into());
self
}
/// <p>The reputation status of your Amazon Pinpoint account. The status can be one of the following:</p>
/// <ul>
/// <li>
/// <p><code>HEALTHY</code> – There are no reputation-related issues that currently impact your account.</p></li>
/// <li>
/// <p><code>PROBATION</code> – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.</p></li>
/// <li>
/// <p><code>SHUTDOWN</code> – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.</p></li>
/// </ul>
pub fn set_enforcement_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.enforcement_status = input;
self
}
/// <p>The reputation status of your Amazon Pinpoint account. The status can be one of the following:</p>
/// <ul>
/// <li>
/// <p><code>HEALTHY</code> – There are no reputation-related issues that currently impact your account.</p></li>
/// <li>
/// <p><code>PROBATION</code> – We've identified some issues with your Amazon Pinpoint account. We're placing your account under review while you work on correcting these issues.</p></li>
/// <li>
/// <p><code>SHUTDOWN</code> – Your account's ability to send email is currently paused because of an issue with the email sent from your account. When you correct the issue, you can contact us and request that your account's ability to send email is resumed.</p></li>
/// </ul>
pub fn get_enforcement_status(&self) -> &::std::option::Option<::std::string::String> {
&self.enforcement_status
}
/// <p>Indicates whether or not your account has production access in the current AWS Region.</p>
/// <p>If the value is <code>false</code>, then your account is in the <i>sandbox</i>. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.</p>
/// <p>If the value is <code>true</code>, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.</p>
pub fn production_access_enabled(mut self, input: bool) -> Self {
self.production_access_enabled = ::std::option::Option::Some(input);
self
}
/// <p>Indicates whether or not your account has production access in the current AWS Region.</p>
/// <p>If the value is <code>false</code>, then your account is in the <i>sandbox</i>. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.</p>
/// <p>If the value is <code>true</code>, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.</p>
pub fn set_production_access_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.production_access_enabled = input;
self
}
/// <p>Indicates whether or not your account has production access in the current AWS Region.</p>
/// <p>If the value is <code>false</code>, then your account is in the <i>sandbox</i>. When your account is in the sandbox, you can only send email to verified identities. Additionally, the maximum number of emails you can send in a 24-hour period (your sending quota) is 200, and the maximum number of emails you can send per second (your maximum sending rate) is 1.</p>
/// <p>If the value is <code>true</code>, then your account has production access. When your account has production access, you can send email to any address. The sending quota and maximum sending rate for your account vary based on your specific use case.</p>
pub fn get_production_access_enabled(&self) -> &::std::option::Option<bool> {
&self.production_access_enabled
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
/// Consumes the builder and constructs a [`GetAccountOutput`](crate::operation::get_account::GetAccountOutput).
pub fn build(self) -> crate::operation::get_account::GetAccountOutput {
crate::operation::get_account::GetAccountOutput {
send_quota: self.send_quota,
sending_enabled: self.sending_enabled.unwrap_or_default(),
dedicated_ip_auto_warmup_enabled: self.dedicated_ip_auto_warmup_enabled.unwrap_or_default(),
enforcement_status: self.enforcement_status,
production_access_enabled: self.production_access_enabled.unwrap_or_default(),
_request_id: self._request_id,
}
}
}