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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>OperationSummary includes the following elements.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct OperationSummary {
    /// <p>Identifier returned to track the requested action.</p>
    pub operation_id: ::std::option::Option<::std::string::String>,
    /// <p>The current status of the requested operation in the system.</p>
    pub status: ::std::option::Option<crate::types::OperationStatus>,
    /// <p>Type of the action requested.</p>
    pub r#type: ::std::option::Option<crate::types::OperationType>,
    /// <p>The date when the request was submitted.</p>
    pub submitted_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>Name of the domain.</p>
    pub domain_name: ::std::option::Option<::std::string::String>,
    /// <p>Message about the operation.</p>
    pub message: ::std::option::Option<::std::string::String>,
    /// <p>Automatically checks whether there are no outstanding operations on domains that need customer attention.</p>
    /// <p>Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>PENDING_ACCEPTANCE</code>: The operation is waiting for acceptance from the account that is receiving the domain.</p></li>
    /// <li>
    /// <p><code>PENDING_CUSTOMER_ACTION</code>: The operation is waiting for customer action, for example, returning an email.</p></li>
    /// <li>
    /// <p><code>PENDING_AUTHORIZATION</code>: The operation is waiting for the form of authorization. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html">ResendOperationAuthorization</a>.</p></li>
    /// <li>
    /// <p><code>PENDING_PAYMENT_VERIFICATION</code>: The operation is waiting for the payment method to validate.</p></li>
    /// <li>
    /// <p><code>PENDING_SUPPORT_CASE</code>: The operation includes a support case and is waiting for its resolution.</p></li>
    /// </ul>
    pub status_flag: ::std::option::Option<crate::types::StatusFlag>,
    /// <p>The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).</p>
    pub last_updated_date: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl OperationSummary {
    /// <p>Identifier returned to track the requested action.</p>
    pub fn operation_id(&self) -> ::std::option::Option<&str> {
        self.operation_id.as_deref()
    }
    /// <p>The current status of the requested operation in the system.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::OperationStatus> {
        self.status.as_ref()
    }
    /// <p>Type of the action requested.</p>
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::OperationType> {
        self.r#type.as_ref()
    }
    /// <p>The date when the request was submitted.</p>
    pub fn submitted_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.submitted_date.as_ref()
    }
    /// <p>Name of the domain.</p>
    pub fn domain_name(&self) -> ::std::option::Option<&str> {
        self.domain_name.as_deref()
    }
    /// <p>Message about the operation.</p>
    pub fn message(&self) -> ::std::option::Option<&str> {
        self.message.as_deref()
    }
    /// <p>Automatically checks whether there are no outstanding operations on domains that need customer attention.</p>
    /// <p>Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>PENDING_ACCEPTANCE</code>: The operation is waiting for acceptance from the account that is receiving the domain.</p></li>
    /// <li>
    /// <p><code>PENDING_CUSTOMER_ACTION</code>: The operation is waiting for customer action, for example, returning an email.</p></li>
    /// <li>
    /// <p><code>PENDING_AUTHORIZATION</code>: The operation is waiting for the form of authorization. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html">ResendOperationAuthorization</a>.</p></li>
    /// <li>
    /// <p><code>PENDING_PAYMENT_VERIFICATION</code>: The operation is waiting for the payment method to validate.</p></li>
    /// <li>
    /// <p><code>PENDING_SUPPORT_CASE</code>: The operation includes a support case and is waiting for its resolution.</p></li>
    /// </ul>
    pub fn status_flag(&self) -> ::std::option::Option<&crate::types::StatusFlag> {
        self.status_flag.as_ref()
    }
    /// <p>The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).</p>
    pub fn last_updated_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_updated_date.as_ref()
    }
}
impl OperationSummary {
    /// Creates a new builder-style object to manufacture [`OperationSummary`](crate::types::OperationSummary).
    pub fn builder() -> crate::types::builders::OperationSummaryBuilder {
        crate::types::builders::OperationSummaryBuilder::default()
    }
}

/// A builder for [`OperationSummary`](crate::types::OperationSummary).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct OperationSummaryBuilder {
    pub(crate) operation_id: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::OperationStatus>,
    pub(crate) r#type: ::std::option::Option<crate::types::OperationType>,
    pub(crate) submitted_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) domain_name: ::std::option::Option<::std::string::String>,
    pub(crate) message: ::std::option::Option<::std::string::String>,
    pub(crate) status_flag: ::std::option::Option<crate::types::StatusFlag>,
    pub(crate) last_updated_date: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl OperationSummaryBuilder {
    /// <p>Identifier returned to track the requested action.</p>
    pub fn operation_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.operation_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Identifier returned to track the requested action.</p>
    pub fn set_operation_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.operation_id = input;
        self
    }
    /// <p>Identifier returned to track the requested action.</p>
    pub fn get_operation_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.operation_id
    }
    /// <p>The current status of the requested operation in the system.</p>
    pub fn status(mut self, input: crate::types::OperationStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The current status of the requested operation in the system.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::OperationStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The current status of the requested operation in the system.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::OperationStatus> {
        &self.status
    }
    /// <p>Type of the action requested.</p>
    pub fn r#type(mut self, input: crate::types::OperationType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// <p>Type of the action requested.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::OperationType>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>Type of the action requested.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::OperationType> {
        &self.r#type
    }
    /// <p>The date when the request was submitted.</p>
    pub fn submitted_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.submitted_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date when the request was submitted.</p>
    pub fn set_submitted_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.submitted_date = input;
        self
    }
    /// <p>The date when the request was submitted.</p>
    pub fn get_submitted_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.submitted_date
    }
    /// <p>Name of the domain.</p>
    pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Name of the domain.</p>
    pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_name = input;
        self
    }
    /// <p>Name of the domain.</p>
    pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_name
    }
    /// <p>Message about the operation.</p>
    pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>Message about the operation.</p>
    pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.message = input;
        self
    }
    /// <p>Message about the operation.</p>
    pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.message
    }
    /// <p>Automatically checks whether there are no outstanding operations on domains that need customer attention.</p>
    /// <p>Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>PENDING_ACCEPTANCE</code>: The operation is waiting for acceptance from the account that is receiving the domain.</p></li>
    /// <li>
    /// <p><code>PENDING_CUSTOMER_ACTION</code>: The operation is waiting for customer action, for example, returning an email.</p></li>
    /// <li>
    /// <p><code>PENDING_AUTHORIZATION</code>: The operation is waiting for the form of authorization. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html">ResendOperationAuthorization</a>.</p></li>
    /// <li>
    /// <p><code>PENDING_PAYMENT_VERIFICATION</code>: The operation is waiting for the payment method to validate.</p></li>
    /// <li>
    /// <p><code>PENDING_SUPPORT_CASE</code>: The operation includes a support case and is waiting for its resolution.</p></li>
    /// </ul>
    pub fn status_flag(mut self, input: crate::types::StatusFlag) -> Self {
        self.status_flag = ::std::option::Option::Some(input);
        self
    }
    /// <p>Automatically checks whether there are no outstanding operations on domains that need customer attention.</p>
    /// <p>Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>PENDING_ACCEPTANCE</code>: The operation is waiting for acceptance from the account that is receiving the domain.</p></li>
    /// <li>
    /// <p><code>PENDING_CUSTOMER_ACTION</code>: The operation is waiting for customer action, for example, returning an email.</p></li>
    /// <li>
    /// <p><code>PENDING_AUTHORIZATION</code>: The operation is waiting for the form of authorization. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html">ResendOperationAuthorization</a>.</p></li>
    /// <li>
    /// <p><code>PENDING_PAYMENT_VERIFICATION</code>: The operation is waiting for the payment method to validate.</p></li>
    /// <li>
    /// <p><code>PENDING_SUPPORT_CASE</code>: The operation includes a support case and is waiting for its resolution.</p></li>
    /// </ul>
    pub fn set_status_flag(mut self, input: ::std::option::Option<crate::types::StatusFlag>) -> Self {
        self.status_flag = input;
        self
    }
    /// <p>Automatically checks whether there are no outstanding operations on domains that need customer attention.</p>
    /// <p>Valid values are:</p>
    /// <ul>
    /// <li>
    /// <p><code>PENDING_ACCEPTANCE</code>: The operation is waiting for acceptance from the account that is receiving the domain.</p></li>
    /// <li>
    /// <p><code>PENDING_CUSTOMER_ACTION</code>: The operation is waiting for customer action, for example, returning an email.</p></li>
    /// <li>
    /// <p><code>PENDING_AUTHORIZATION</code>: The operation is waiting for the form of authorization. For more information, see <a href="https://docs.aws.amazon.com/Route53/latest/APIReference/API_domains_ResendOperationAuthorization.html">ResendOperationAuthorization</a>.</p></li>
    /// <li>
    /// <p><code>PENDING_PAYMENT_VERIFICATION</code>: The operation is waiting for the payment method to validate.</p></li>
    /// <li>
    /// <p><code>PENDING_SUPPORT_CASE</code>: The operation includes a support case and is waiting for its resolution.</p></li>
    /// </ul>
    pub fn get_status_flag(&self) -> &::std::option::Option<crate::types::StatusFlag> {
        &self.status_flag
    }
    /// <p>The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).</p>
    pub fn last_updated_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_updated_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).</p>
    pub fn set_last_updated_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_updated_date = input;
        self
    }
    /// <p>The date when the last change was made in Unix time format and Coordinated Universal Time (UTC).</p>
    pub fn get_last_updated_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_updated_date
    }
    /// Consumes the builder and constructs a [`OperationSummary`](crate::types::OperationSummary).
    pub fn build(self) -> crate::types::OperationSummary {
        crate::types::OperationSummary {
            operation_id: self.operation_id,
            status: self.status,
            r#type: self.r#type,
            submitted_date: self.submitted_date,
            domain_name: self.domain_name,
            message: self.message,
            status_flag: self.status_flag,
            last_updated_date: self.last_updated_date,
        }
    }
}