aws-sdk-servicediscovery 1.98.0

AWS SDK for AWS Cloud Map
Documentation
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p>A complex type that contains information about a specified operation.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Operation {
    /// <p>The ID of the operation that you want to get information about.</p>
    pub id: ::std::option::Option<::std::string::String>,
    /// <p>The ID of the Amazon Web Services account that owns the namespace associated with the operation.</p>
    pub owner_account: ::std::option::Option<::std::string::String>,
    /// <p>The name of the operation that's associated with the specified ID.</p>
    pub r#type: ::std::option::Option<crate::types::OperationType>,
    /// <p>The status of the operation. Values include the following:</p>
    /// <dl>
    /// <dt>
    /// SUBMITTED
    /// </dt>
    /// <dd>
    /// <p>This is the initial state that occurs immediately after you submit a request.</p>
    /// </dd>
    /// <dt>
    /// PENDING
    /// </dt>
    /// <dd>
    /// <p>Cloud Map is performing the operation.</p>
    /// </dd>
    /// <dt>
    /// SUCCESS
    /// </dt>
    /// <dd>
    /// <p>The operation succeeded.</p>
    /// </dd>
    /// <dt>
    /// FAIL
    /// </dt>
    /// <dd>
    /// <p>The operation failed. For the failure reason, see <code>ErrorMessage</code>.</p>
    /// </dd>
    /// </dl>
    pub status: ::std::option::Option<crate::types::OperationStatus>,
    /// <p>If the value of <code>Status</code> is <code>FAIL</code>, the reason that the operation failed.</p>
    pub error_message: ::std::option::Option<::std::string::String>,
    /// <p>The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>ACCESS_DENIED</code></p></li>
    /// <li>
    /// <p><code>CANNOT_CREATE_HOSTED_ZONE</code></p></li>
    /// <li>
    /// <p><code>EXPIRED_TOKEN</code></p></li>
    /// <li>
    /// <p><code>HOSTED_ZONE_NOT_FOUND</code></p></li>
    /// <li>
    /// <p><code>INTERNAL_FAILURE</code></p></li>
    /// <li>
    /// <p><code>INVALID_CHANGE_BATCH</code></p></li>
    /// <li>
    /// <p><code>THROTTLED_REQUEST</code></p></li>
    /// </ul>
    pub error_code: ::std::option::Option<::std::string::String>,
    /// <p>The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub create_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The date and time that the value of <code>Status</code> changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>UpdateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub update_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// <p>The name of the target entity that's associated with the operation:</p>
    /// <dl>
    /// <dt>
    /// NAMESPACE
    /// </dt>
    /// <dd>
    /// <p>The namespace ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// SERVICE
    /// </dt>
    /// <dd>
    /// <p>The service ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// INSTANCE
    /// </dt>
    /// <dd>
    /// <p>The instance ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// </dl>
    pub targets: ::std::option::Option<::std::collections::HashMap<crate::types::OperationTargetType, ::std::string::String>>,
}
impl Operation {
    /// <p>The ID of the operation that you want to get information about.</p>
    pub fn id(&self) -> ::std::option::Option<&str> {
        self.id.as_deref()
    }
    /// <p>The ID of the Amazon Web Services account that owns the namespace associated with the operation.</p>
    pub fn owner_account(&self) -> ::std::option::Option<&str> {
        self.owner_account.as_deref()
    }
    /// <p>The name of the operation that's associated with the specified ID.</p>
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::OperationType> {
        self.r#type.as_ref()
    }
    /// <p>The status of the operation. Values include the following:</p>
    /// <dl>
    /// <dt>
    /// SUBMITTED
    /// </dt>
    /// <dd>
    /// <p>This is the initial state that occurs immediately after you submit a request.</p>
    /// </dd>
    /// <dt>
    /// PENDING
    /// </dt>
    /// <dd>
    /// <p>Cloud Map is performing the operation.</p>
    /// </dd>
    /// <dt>
    /// SUCCESS
    /// </dt>
    /// <dd>
    /// <p>The operation succeeded.</p>
    /// </dd>
    /// <dt>
    /// FAIL
    /// </dt>
    /// <dd>
    /// <p>The operation failed. For the failure reason, see <code>ErrorMessage</code>.</p>
    /// </dd>
    /// </dl>
    pub fn status(&self) -> ::std::option::Option<&crate::types::OperationStatus> {
        self.status.as_ref()
    }
    /// <p>If the value of <code>Status</code> is <code>FAIL</code>, the reason that the operation failed.</p>
    pub fn error_message(&self) -> ::std::option::Option<&str> {
        self.error_message.as_deref()
    }
    /// <p>The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>ACCESS_DENIED</code></p></li>
    /// <li>
    /// <p><code>CANNOT_CREATE_HOSTED_ZONE</code></p></li>
    /// <li>
    /// <p><code>EXPIRED_TOKEN</code></p></li>
    /// <li>
    /// <p><code>HOSTED_ZONE_NOT_FOUND</code></p></li>
    /// <li>
    /// <p><code>INTERNAL_FAILURE</code></p></li>
    /// <li>
    /// <p><code>INVALID_CHANGE_BATCH</code></p></li>
    /// <li>
    /// <p><code>THROTTLED_REQUEST</code></p></li>
    /// </ul>
    pub fn error_code(&self) -> ::std::option::Option<&str> {
        self.error_code.as_deref()
    }
    /// <p>The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn create_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.create_date.as_ref()
    }
    /// <p>The date and time that the value of <code>Status</code> changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>UpdateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn update_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.update_date.as_ref()
    }
    /// <p>The name of the target entity that's associated with the operation:</p>
    /// <dl>
    /// <dt>
    /// NAMESPACE
    /// </dt>
    /// <dd>
    /// <p>The namespace ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// SERVICE
    /// </dt>
    /// <dd>
    /// <p>The service ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// INSTANCE
    /// </dt>
    /// <dd>
    /// <p>The instance ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// </dl>
    pub fn targets(&self) -> ::std::option::Option<&::std::collections::HashMap<crate::types::OperationTargetType, ::std::string::String>> {
        self.targets.as_ref()
    }
}
impl Operation {
    /// Creates a new builder-style object to manufacture [`Operation`](crate::types::Operation).
    pub fn builder() -> crate::types::builders::OperationBuilder {
        crate::types::builders::OperationBuilder::default()
    }
}

/// A builder for [`Operation`](crate::types::Operation).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct OperationBuilder {
    pub(crate) id: ::std::option::Option<::std::string::String>,
    pub(crate) owner_account: ::std::option::Option<::std::string::String>,
    pub(crate) r#type: ::std::option::Option<crate::types::OperationType>,
    pub(crate) status: ::std::option::Option<crate::types::OperationStatus>,
    pub(crate) error_message: ::std::option::Option<::std::string::String>,
    pub(crate) error_code: ::std::option::Option<::std::string::String>,
    pub(crate) create_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) update_date: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) targets: ::std::option::Option<::std::collections::HashMap<crate::types::OperationTargetType, ::std::string::String>>,
}
impl OperationBuilder {
    /// <p>The ID of the operation that you want to get information about.</p>
    pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the operation that you want to get information about.</p>
    pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.id = input;
        self
    }
    /// <p>The ID of the operation that you want to get information about.</p>
    pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.id
    }
    /// <p>The ID of the Amazon Web Services account that owns the namespace associated with the operation.</p>
    pub fn owner_account(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.owner_account = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID of the Amazon Web Services account that owns the namespace associated with the operation.</p>
    pub fn set_owner_account(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.owner_account = input;
        self
    }
    /// <p>The ID of the Amazon Web Services account that owns the namespace associated with the operation.</p>
    pub fn get_owner_account(&self) -> &::std::option::Option<::std::string::String> {
        &self.owner_account
    }
    /// <p>The name of the operation that's associated with the specified ID.</p>
    pub fn r#type(mut self, input: crate::types::OperationType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The name of the operation that's associated with the specified ID.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::OperationType>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>The name of the operation that's associated with the specified ID.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::OperationType> {
        &self.r#type
    }
    /// <p>The status of the operation. Values include the following:</p>
    /// <dl>
    /// <dt>
    /// SUBMITTED
    /// </dt>
    /// <dd>
    /// <p>This is the initial state that occurs immediately after you submit a request.</p>
    /// </dd>
    /// <dt>
    /// PENDING
    /// </dt>
    /// <dd>
    /// <p>Cloud Map is performing the operation.</p>
    /// </dd>
    /// <dt>
    /// SUCCESS
    /// </dt>
    /// <dd>
    /// <p>The operation succeeded.</p>
    /// </dd>
    /// <dt>
    /// FAIL
    /// </dt>
    /// <dd>
    /// <p>The operation failed. For the failure reason, see <code>ErrorMessage</code>.</p>
    /// </dd>
    /// </dl>
    pub fn status(mut self, input: crate::types::OperationStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the operation. Values include the following:</p>
    /// <dl>
    /// <dt>
    /// SUBMITTED
    /// </dt>
    /// <dd>
    /// <p>This is the initial state that occurs immediately after you submit a request.</p>
    /// </dd>
    /// <dt>
    /// PENDING
    /// </dt>
    /// <dd>
    /// <p>Cloud Map is performing the operation.</p>
    /// </dd>
    /// <dt>
    /// SUCCESS
    /// </dt>
    /// <dd>
    /// <p>The operation succeeded.</p>
    /// </dd>
    /// <dt>
    /// FAIL
    /// </dt>
    /// <dd>
    /// <p>The operation failed. For the failure reason, see <code>ErrorMessage</code>.</p>
    /// </dd>
    /// </dl>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::OperationStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the operation. Values include the following:</p>
    /// <dl>
    /// <dt>
    /// SUBMITTED
    /// </dt>
    /// <dd>
    /// <p>This is the initial state that occurs immediately after you submit a request.</p>
    /// </dd>
    /// <dt>
    /// PENDING
    /// </dt>
    /// <dd>
    /// <p>Cloud Map is performing the operation.</p>
    /// </dd>
    /// <dt>
    /// SUCCESS
    /// </dt>
    /// <dd>
    /// <p>The operation succeeded.</p>
    /// </dd>
    /// <dt>
    /// FAIL
    /// </dt>
    /// <dd>
    /// <p>The operation failed. For the failure reason, see <code>ErrorMessage</code>.</p>
    /// </dd>
    /// </dl>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::OperationStatus> {
        &self.status
    }
    /// <p>If the value of <code>Status</code> is <code>FAIL</code>, the reason that the operation failed.</p>
    pub fn error_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_message = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>If the value of <code>Status</code> is <code>FAIL</code>, the reason that the operation failed.</p>
    pub fn set_error_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_message = input;
        self
    }
    /// <p>If the value of <code>Status</code> is <code>FAIL</code>, the reason that the operation failed.</p>
    pub fn get_error_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_message
    }
    /// <p>The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>ACCESS_DENIED</code></p></li>
    /// <li>
    /// <p><code>CANNOT_CREATE_HOSTED_ZONE</code></p></li>
    /// <li>
    /// <p><code>EXPIRED_TOKEN</code></p></li>
    /// <li>
    /// <p><code>HOSTED_ZONE_NOT_FOUND</code></p></li>
    /// <li>
    /// <p><code>INTERNAL_FAILURE</code></p></li>
    /// <li>
    /// <p><code>INVALID_CHANGE_BATCH</code></p></li>
    /// <li>
    /// <p><code>THROTTLED_REQUEST</code></p></li>
    /// </ul>
    pub fn error_code(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.error_code = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>ACCESS_DENIED</code></p></li>
    /// <li>
    /// <p><code>CANNOT_CREATE_HOSTED_ZONE</code></p></li>
    /// <li>
    /// <p><code>EXPIRED_TOKEN</code></p></li>
    /// <li>
    /// <p><code>HOSTED_ZONE_NOT_FOUND</code></p></li>
    /// <li>
    /// <p><code>INTERNAL_FAILURE</code></p></li>
    /// <li>
    /// <p><code>INVALID_CHANGE_BATCH</code></p></li>
    /// <li>
    /// <p><code>THROTTLED_REQUEST</code></p></li>
    /// </ul>
    pub fn set_error_code(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.error_code = input;
        self
    }
    /// <p>The code associated with <code>ErrorMessage</code>. Values for <code>ErrorCode</code> include the following:</p>
    /// <ul>
    /// <li>
    /// <p><code>ACCESS_DENIED</code></p></li>
    /// <li>
    /// <p><code>CANNOT_CREATE_HOSTED_ZONE</code></p></li>
    /// <li>
    /// <p><code>EXPIRED_TOKEN</code></p></li>
    /// <li>
    /// <p><code>HOSTED_ZONE_NOT_FOUND</code></p></li>
    /// <li>
    /// <p><code>INTERNAL_FAILURE</code></p></li>
    /// <li>
    /// <p><code>INVALID_CHANGE_BATCH</code></p></li>
    /// <li>
    /// <p><code>THROTTLED_REQUEST</code></p></li>
    /// </ul>
    pub fn get_error_code(&self) -> &::std::option::Option<::std::string::String> {
        &self.error_code
    }
    /// <p>The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn create_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.create_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn set_create_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.create_date = input;
        self
    }
    /// <p>The date and time that the request was submitted, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>CreateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn get_create_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.create_date
    }
    /// <p>The date and time that the value of <code>Status</code> changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>UpdateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn update_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.update_date = ::std::option::Option::Some(input);
        self
    }
    /// <p>The date and time that the value of <code>Status</code> changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>UpdateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn set_update_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.update_date = input;
        self
    }
    /// <p>The date and time that the value of <code>Status</code> changed to the current value, in Unix date/time format and Coordinated Universal Time (UTC). The value of <code>UpdateDate</code> is accurate to milliseconds. For example, the value <code>1516925490.087</code> represents Friday, January 26, 2018 12:11:30.087 AM.</p>
    pub fn get_update_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.update_date
    }
    /// Adds a key-value pair to `targets`.
    ///
    /// To override the contents of this collection use [`set_targets`](Self::set_targets).
    ///
    /// <p>The name of the target entity that's associated with the operation:</p>
    /// <dl>
    /// <dt>
    /// NAMESPACE
    /// </dt>
    /// <dd>
    /// <p>The namespace ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// SERVICE
    /// </dt>
    /// <dd>
    /// <p>The service ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// INSTANCE
    /// </dt>
    /// <dd>
    /// <p>The instance ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// </dl>
    pub fn targets(mut self, k: crate::types::OperationTargetType, v: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut hash_map = self.targets.unwrap_or_default();
        hash_map.insert(k, v.into());
        self.targets = ::std::option::Option::Some(hash_map);
        self
    }
    /// <p>The name of the target entity that's associated with the operation:</p>
    /// <dl>
    /// <dt>
    /// NAMESPACE
    /// </dt>
    /// <dd>
    /// <p>The namespace ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// SERVICE
    /// </dt>
    /// <dd>
    /// <p>The service ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// INSTANCE
    /// </dt>
    /// <dd>
    /// <p>The instance ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// </dl>
    pub fn set_targets(
        mut self,
        input: ::std::option::Option<::std::collections::HashMap<crate::types::OperationTargetType, ::std::string::String>>,
    ) -> Self {
        self.targets = input;
        self
    }
    /// <p>The name of the target entity that's associated with the operation:</p>
    /// <dl>
    /// <dt>
    /// NAMESPACE
    /// </dt>
    /// <dd>
    /// <p>The namespace ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// SERVICE
    /// </dt>
    /// <dd>
    /// <p>The service ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// <dt>
    /// INSTANCE
    /// </dt>
    /// <dd>
    /// <p>The instance ID is returned in the <code>ResourceId</code> property.</p>
    /// </dd>
    /// </dl>
    pub fn get_targets(&self) -> &::std::option::Option<::std::collections::HashMap<crate::types::OperationTargetType, ::std::string::String>> {
        &self.targets
    }
    /// Consumes the builder and constructs a [`Operation`](crate::types::Operation).
    pub fn build(self) -> crate::types::Operation {
        crate::types::Operation {
            id: self.id,
            owner_account: self.owner_account,
            r#type: self.r#type,
            status: self.status,
            error_message: self.error_message,
            error_code: self.error_code,
            create_date: self.create_date,
            update_date: self.update_date,
            targets: self.targets,
        }
    }
}