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
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Represents your Amazon SES daily sending quota, maximum send rate, and the number of emails you have sent in the last 24 hours.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSendQuotaOutput {
/// <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
pub max24_hour_send: f64,
/// <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p><note>
/// <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p>
/// </note>
pub max_send_rate: f64,
/// <p>The number of emails sent during the previous 24 hours.</p>
pub sent_last24_hours: f64,
_request_id: Option<String>,
}
impl GetSendQuotaOutput {
/// <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
pub fn max24_hour_send(&self) -> f64 {
self.max24_hour_send
}
/// <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p><note>
/// <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p>
/// </note>
pub fn max_send_rate(&self) -> f64 {
self.max_send_rate
}
/// <p>The number of emails sent during the previous 24 hours.</p>
pub fn sent_last24_hours(&self) -> f64 {
self.sent_last24_hours
}
}
impl ::aws_types::request_id::RequestId for GetSendQuotaOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetSendQuotaOutput {
/// Creates a new builder-style object to manufacture [`GetSendQuotaOutput`](crate::operation::get_send_quota::GetSendQuotaOutput).
pub fn builder() -> crate::operation::get_send_quota::builders::GetSendQuotaOutputBuilder {
crate::operation::get_send_quota::builders::GetSendQuotaOutputBuilder::default()
}
}
/// A builder for [`GetSendQuotaOutput`](crate::operation::get_send_quota::GetSendQuotaOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSendQuotaOutputBuilder {
pub(crate) max24_hour_send: ::std::option::Option<f64>,
pub(crate) max_send_rate: ::std::option::Option<f64>,
pub(crate) sent_last24_hours: ::std::option::Option<f64>,
_request_id: Option<String>,
}
impl GetSendQuotaOutputBuilder {
/// <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
pub fn max24_hour_send(mut self, input: f64) -> Self {
self.max24_hour_send = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
pub fn set_max24_hour_send(mut self, input: ::std::option::Option<f64>) -> Self {
self.max24_hour_send = input;
self
}
/// <p>The maximum number of emails the user is allowed to send in a 24-hour interval. A value of -1 signifies an unlimited quota.</p>
pub fn get_max24_hour_send(&self) -> &::std::option::Option<f64> {
&self.max24_hour_send
}
/// <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p><note>
/// <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p>
/// </note>
pub fn max_send_rate(mut self, input: f64) -> Self {
self.max_send_rate = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p><note>
/// <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p>
/// </note>
pub fn set_max_send_rate(mut self, input: ::std::option::Option<f64>) -> Self {
self.max_send_rate = input;
self
}
/// <p>The maximum number of emails that Amazon SES can accept from the user's account per second.</p><note>
/// <p>The rate at which Amazon SES accepts the user's messages might be less than the maximum send rate.</p>
/// </note>
pub fn get_max_send_rate(&self) -> &::std::option::Option<f64> {
&self.max_send_rate
}
/// <p>The number of emails sent during the previous 24 hours.</p>
pub fn sent_last24_hours(mut self, input: f64) -> Self {
self.sent_last24_hours = ::std::option::Option::Some(input);
self
}
/// <p>The number of emails sent during the previous 24 hours.</p>
pub fn set_sent_last24_hours(mut self, input: ::std::option::Option<f64>) -> Self {
self.sent_last24_hours = input;
self
}
/// <p>The number of emails sent during the previous 24 hours.</p>
pub fn get_sent_last24_hours(&self) -> &::std::option::Option<f64> {
&self.sent_last24_hours
}
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 [`GetSendQuotaOutput`](crate::operation::get_send_quota::GetSendQuotaOutput).
pub fn build(self) -> crate::operation::get_send_quota::GetSendQuotaOutput {
crate::operation::get_send_quota::GetSendQuotaOutput {
max24_hour_send: self.max24_hour_send.unwrap_or_default(),
max_send_rate: self.max_send_rate.unwrap_or_default(),
sent_last24_hours: self.sent_last24_hours.unwrap_or_default(),
_request_id: self._request_id,
}
}
}