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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>Describes the result of a cluster resize operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CancelResizeOutput {
/// <p>The node type that the cluster will have after the resize operation is complete.</p>
pub target_node_type: ::std::option::Option<::std::string::String>,
/// <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
pub target_number_of_nodes: ::std::option::Option<i32>,
/// <p>The cluster type after the resize operation is complete.</p>
/// <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
pub target_cluster_type: ::std::option::Option<::std::string::String>,
/// <p>The status of the resize operation.</p>
/// <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
pub status: ::std::option::Option<::std::string::String>,
/// <p>The names of tables that have been completely imported .</p>
/// <p>Valid Values: List of table names.</p>
pub import_tables_completed: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The names of tables that are being currently imported.</p>
/// <p>Valid Values: List of table names.</p>
pub import_tables_in_progress: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The names of tables that have not been yet imported.</p>
/// <p>Valid Values: List of table names</p>
pub import_tables_not_started: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
pub avg_resize_rate_in_mega_bytes_per_second: ::std::option::Option<f64>,
/// <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
pub total_resize_data_in_mega_bytes: ::std::option::Option<i64>,
/// <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
pub progress_in_mega_bytes: ::std::option::Option<i64>,
/// <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
pub elapsed_time_in_seconds: ::std::option::Option<i64>,
/// <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
pub estimated_time_to_completion_in_seconds: ::std::option::Option<i64>,
/// <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
pub resize_type: ::std::option::Option<::std::string::String>,
/// <p>An optional string to provide additional details about the resize action.</p>
pub message: ::std::option::Option<::std::string::String>,
/// <p>The type of encryption for the cluster after the resize is complete.</p>
/// <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
pub target_encryption_type: ::std::option::Option<::std::string::String>,
/// <p>The percent of data transferred from source cluster to target cluster.</p>
pub data_transfer_progress_percent: ::std::option::Option<f64>,
_request_id: Option<String>,
}
impl CancelResizeOutput {
/// <p>The node type that the cluster will have after the resize operation is complete.</p>
pub fn target_node_type(&self) -> ::std::option::Option<&str> {
self.target_node_type.as_deref()
}
/// <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
pub fn target_number_of_nodes(&self) -> ::std::option::Option<i32> {
self.target_number_of_nodes
}
/// <p>The cluster type after the resize operation is complete.</p>
/// <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
pub fn target_cluster_type(&self) -> ::std::option::Option<&str> {
self.target_cluster_type.as_deref()
}
/// <p>The status of the resize operation.</p>
/// <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
pub fn status(&self) -> ::std::option::Option<&str> {
self.status.as_deref()
}
/// <p>The names of tables that have been completely imported .</p>
/// <p>Valid Values: List of table names.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.import_tables_completed.is_none()`.
pub fn import_tables_completed(&self) -> &[::std::string::String] {
self.import_tables_completed.as_deref().unwrap_or_default()
}
/// <p>The names of tables that are being currently imported.</p>
/// <p>Valid Values: List of table names.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.import_tables_in_progress.is_none()`.
pub fn import_tables_in_progress(&self) -> &[::std::string::String] {
self.import_tables_in_progress.as_deref().unwrap_or_default()
}
/// <p>The names of tables that have not been yet imported.</p>
/// <p>Valid Values: List of table names</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.import_tables_not_started.is_none()`.
pub fn import_tables_not_started(&self) -> &[::std::string::String] {
self.import_tables_not_started.as_deref().unwrap_or_default()
}
/// <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
pub fn avg_resize_rate_in_mega_bytes_per_second(&self) -> ::std::option::Option<f64> {
self.avg_resize_rate_in_mega_bytes_per_second
}
/// <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
pub fn total_resize_data_in_mega_bytes(&self) -> ::std::option::Option<i64> {
self.total_resize_data_in_mega_bytes
}
/// <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
pub fn progress_in_mega_bytes(&self) -> ::std::option::Option<i64> {
self.progress_in_mega_bytes
}
/// <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
pub fn elapsed_time_in_seconds(&self) -> ::std::option::Option<i64> {
self.elapsed_time_in_seconds
}
/// <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
pub fn estimated_time_to_completion_in_seconds(&self) -> ::std::option::Option<i64> {
self.estimated_time_to_completion_in_seconds
}
/// <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
pub fn resize_type(&self) -> ::std::option::Option<&str> {
self.resize_type.as_deref()
}
/// <p>An optional string to provide additional details about the resize action.</p>
pub fn message(&self) -> ::std::option::Option<&str> {
self.message.as_deref()
}
/// <p>The type of encryption for the cluster after the resize is complete.</p>
/// <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
pub fn target_encryption_type(&self) -> ::std::option::Option<&str> {
self.target_encryption_type.as_deref()
}
/// <p>The percent of data transferred from source cluster to target cluster.</p>
pub fn data_transfer_progress_percent(&self) -> ::std::option::Option<f64> {
self.data_transfer_progress_percent
}
}
impl ::aws_types::request_id::RequestId for CancelResizeOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CancelResizeOutput {
/// Creates a new builder-style object to manufacture [`CancelResizeOutput`](crate::operation::cancel_resize::CancelResizeOutput).
pub fn builder() -> crate::operation::cancel_resize::builders::CancelResizeOutputBuilder {
crate::operation::cancel_resize::builders::CancelResizeOutputBuilder::default()
}
}
/// A builder for [`CancelResizeOutput`](crate::operation::cancel_resize::CancelResizeOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CancelResizeOutputBuilder {
pub(crate) target_node_type: ::std::option::Option<::std::string::String>,
pub(crate) target_number_of_nodes: ::std::option::Option<i32>,
pub(crate) target_cluster_type: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<::std::string::String>,
pub(crate) import_tables_completed: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) import_tables_in_progress: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) import_tables_not_started: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) avg_resize_rate_in_mega_bytes_per_second: ::std::option::Option<f64>,
pub(crate) total_resize_data_in_mega_bytes: ::std::option::Option<i64>,
pub(crate) progress_in_mega_bytes: ::std::option::Option<i64>,
pub(crate) elapsed_time_in_seconds: ::std::option::Option<i64>,
pub(crate) estimated_time_to_completion_in_seconds: ::std::option::Option<i64>,
pub(crate) resize_type: ::std::option::Option<::std::string::String>,
pub(crate) message: ::std::option::Option<::std::string::String>,
pub(crate) target_encryption_type: ::std::option::Option<::std::string::String>,
pub(crate) data_transfer_progress_percent: ::std::option::Option<f64>,
_request_id: Option<String>,
}
impl CancelResizeOutputBuilder {
/// <p>The node type that the cluster will have after the resize operation is complete.</p>
pub fn target_node_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.target_node_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The node type that the cluster will have after the resize operation is complete.</p>
pub fn set_target_node_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.target_node_type = input;
self
}
/// <p>The node type that the cluster will have after the resize operation is complete.</p>
pub fn get_target_node_type(&self) -> &::std::option::Option<::std::string::String> {
&self.target_node_type
}
/// <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
pub fn target_number_of_nodes(mut self, input: i32) -> Self {
self.target_number_of_nodes = ::std::option::Option::Some(input);
self
}
/// <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
pub fn set_target_number_of_nodes(mut self, input: ::std::option::Option<i32>) -> Self {
self.target_number_of_nodes = input;
self
}
/// <p>The number of nodes that the cluster will have after the resize operation is complete.</p>
pub fn get_target_number_of_nodes(&self) -> &::std::option::Option<i32> {
&self.target_number_of_nodes
}
/// <p>The cluster type after the resize operation is complete.</p>
/// <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
pub fn target_cluster_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.target_cluster_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The cluster type after the resize operation is complete.</p>
/// <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
pub fn set_target_cluster_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.target_cluster_type = input;
self
}
/// <p>The cluster type after the resize operation is complete.</p>
/// <p>Valid Values: <code>multi-node</code> | <code>single-node</code></p>
pub fn get_target_cluster_type(&self) -> &::std::option::Option<::std::string::String> {
&self.target_cluster_type
}
/// <p>The status of the resize operation.</p>
/// <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
pub fn status(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.status = ::std::option::Option::Some(input.into());
self
}
/// <p>The status of the resize operation.</p>
/// <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
pub fn set_status(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.status = input;
self
}
/// <p>The status of the resize operation.</p>
/// <p>Valid Values: <code>NONE</code> | <code>IN_PROGRESS</code> | <code>FAILED</code> | <code>SUCCEEDED</code> | <code>CANCELLING</code></p>
pub fn get_status(&self) -> &::std::option::Option<::std::string::String> {
&self.status
}
/// Appends an item to `import_tables_completed`.
///
/// To override the contents of this collection use [`set_import_tables_completed`](Self::set_import_tables_completed).
///
/// <p>The names of tables that have been completely imported .</p>
/// <p>Valid Values: List of table names.</p>
pub fn import_tables_completed(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.import_tables_completed.unwrap_or_default();
v.push(input.into());
self.import_tables_completed = ::std::option::Option::Some(v);
self
}
/// <p>The names of tables that have been completely imported .</p>
/// <p>Valid Values: List of table names.</p>
pub fn set_import_tables_completed(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.import_tables_completed = input;
self
}
/// <p>The names of tables that have been completely imported .</p>
/// <p>Valid Values: List of table names.</p>
pub fn get_import_tables_completed(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.import_tables_completed
}
/// Appends an item to `import_tables_in_progress`.
///
/// To override the contents of this collection use [`set_import_tables_in_progress`](Self::set_import_tables_in_progress).
///
/// <p>The names of tables that are being currently imported.</p>
/// <p>Valid Values: List of table names.</p>
pub fn import_tables_in_progress(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.import_tables_in_progress.unwrap_or_default();
v.push(input.into());
self.import_tables_in_progress = ::std::option::Option::Some(v);
self
}
/// <p>The names of tables that are being currently imported.</p>
/// <p>Valid Values: List of table names.</p>
pub fn set_import_tables_in_progress(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.import_tables_in_progress = input;
self
}
/// <p>The names of tables that are being currently imported.</p>
/// <p>Valid Values: List of table names.</p>
pub fn get_import_tables_in_progress(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.import_tables_in_progress
}
/// Appends an item to `import_tables_not_started`.
///
/// To override the contents of this collection use [`set_import_tables_not_started`](Self::set_import_tables_not_started).
///
/// <p>The names of tables that have not been yet imported.</p>
/// <p>Valid Values: List of table names</p>
pub fn import_tables_not_started(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.import_tables_not_started.unwrap_or_default();
v.push(input.into());
self.import_tables_not_started = ::std::option::Option::Some(v);
self
}
/// <p>The names of tables that have not been yet imported.</p>
/// <p>Valid Values: List of table names</p>
pub fn set_import_tables_not_started(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.import_tables_not_started = input;
self
}
/// <p>The names of tables that have not been yet imported.</p>
/// <p>Valid Values: List of table names</p>
pub fn get_import_tables_not_started(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.import_tables_not_started
}
/// <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
pub fn avg_resize_rate_in_mega_bytes_per_second(mut self, input: f64) -> Self {
self.avg_resize_rate_in_mega_bytes_per_second = ::std::option::Option::Some(input);
self
}
/// <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
pub fn set_avg_resize_rate_in_mega_bytes_per_second(mut self, input: ::std::option::Option<f64>) -> Self {
self.avg_resize_rate_in_mega_bytes_per_second = input;
self
}
/// <p>The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.</p>
pub fn get_avg_resize_rate_in_mega_bytes_per_second(&self) -> &::std::option::Option<f64> {
&self.avg_resize_rate_in_mega_bytes_per_second
}
/// <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
pub fn total_resize_data_in_mega_bytes(mut self, input: i64) -> Self {
self.total_resize_data_in_mega_bytes = ::std::option::Option::Some(input);
self
}
/// <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
pub fn set_total_resize_data_in_mega_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.total_resize_data_in_mega_bytes = input;
self
}
/// <p>The estimated total amount of data, in megabytes, on the cluster before the resize operation began.</p>
pub fn get_total_resize_data_in_mega_bytes(&self) -> &::std::option::Option<i64> {
&self.total_resize_data_in_mega_bytes
}
/// <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
pub fn progress_in_mega_bytes(mut self, input: i64) -> Self {
self.progress_in_mega_bytes = ::std::option::Option::Some(input);
self
}
/// <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
pub fn set_progress_in_mega_bytes(mut self, input: ::std::option::Option<i64>) -> Self {
self.progress_in_mega_bytes = input;
self
}
/// <p>While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).</p>
pub fn get_progress_in_mega_bytes(&self) -> &::std::option::Option<i64> {
&self.progress_in_mega_bytes
}
/// <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
pub fn elapsed_time_in_seconds(mut self, input: i64) -> Self {
self.elapsed_time_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
pub fn set_elapsed_time_in_seconds(mut self, input: ::std::option::Option<i64>) -> Self {
self.elapsed_time_in_seconds = input;
self
}
/// <p>The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.</p>
pub fn get_elapsed_time_in_seconds(&self) -> &::std::option::Option<i64> {
&self.elapsed_time_in_seconds
}
/// <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
pub fn estimated_time_to_completion_in_seconds(mut self, input: i64) -> Self {
self.estimated_time_to_completion_in_seconds = ::std::option::Option::Some(input);
self
}
/// <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
pub fn set_estimated_time_to_completion_in_seconds(mut self, input: ::std::option::Option<i64>) -> Self {
self.estimated_time_to_completion_in_seconds = input;
self
}
/// <p>The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.</p>
pub fn get_estimated_time_to_completion_in_seconds(&self) -> &::std::option::Option<i64> {
&self.estimated_time_to_completion_in_seconds
}
/// <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
pub fn resize_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resize_type = ::std::option::Option::Some(input.into());
self
}
/// <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
pub fn set_resize_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resize_type = input;
self
}
/// <p>An enum with possible values of <code>ClassicResize</code> and <code>ElasticResize</code>. These values describe the type of resize operation being performed.</p>
pub fn get_resize_type(&self) -> &::std::option::Option<::std::string::String> {
&self.resize_type
}
/// <p>An optional string to provide additional details about the resize action.</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>An optional string to provide additional details about the resize action.</p>
pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.message = input;
self
}
/// <p>An optional string to provide additional details about the resize action.</p>
pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
&self.message
}
/// <p>The type of encryption for the cluster after the resize is complete.</p>
/// <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
pub fn target_encryption_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.target_encryption_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The type of encryption for the cluster after the resize is complete.</p>
/// <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
pub fn set_target_encryption_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.target_encryption_type = input;
self
}
/// <p>The type of encryption for the cluster after the resize is complete.</p>
/// <p>Possible values are <code>KMS</code> and <code>None</code>.</p>
pub fn get_target_encryption_type(&self) -> &::std::option::Option<::std::string::String> {
&self.target_encryption_type
}
/// <p>The percent of data transferred from source cluster to target cluster.</p>
pub fn data_transfer_progress_percent(mut self, input: f64) -> Self {
self.data_transfer_progress_percent = ::std::option::Option::Some(input);
self
}
/// <p>The percent of data transferred from source cluster to target cluster.</p>
pub fn set_data_transfer_progress_percent(mut self, input: ::std::option::Option<f64>) -> Self {
self.data_transfer_progress_percent = input;
self
}
/// <p>The percent of data transferred from source cluster to target cluster.</p>
pub fn get_data_transfer_progress_percent(&self) -> &::std::option::Option<f64> {
&self.data_transfer_progress_percent
}
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 [`CancelResizeOutput`](crate::operation::cancel_resize::CancelResizeOutput).
pub fn build(self) -> crate::operation::cancel_resize::CancelResizeOutput {
crate::operation::cancel_resize::CancelResizeOutput {
target_node_type: self.target_node_type,
target_number_of_nodes: self.target_number_of_nodes,
target_cluster_type: self.target_cluster_type,
status: self.status,
import_tables_completed: self.import_tables_completed,
import_tables_in_progress: self.import_tables_in_progress,
import_tables_not_started: self.import_tables_not_started,
avg_resize_rate_in_mega_bytes_per_second: self.avg_resize_rate_in_mega_bytes_per_second,
total_resize_data_in_mega_bytes: self.total_resize_data_in_mega_bytes,
progress_in_mega_bytes: self.progress_in_mega_bytes,
elapsed_time_in_seconds: self.elapsed_time_in_seconds,
estimated_time_to_completion_in_seconds: self.estimated_time_to_completion_in_seconds,
resize_type: self.resize_type,
message: self.message,
target_encryption_type: self.target_encryption_type,
data_transfer_progress_percent: self.data_transfer_progress_percent,
_request_id: self._request_id,
}
}
}