aws-sdk-backupexternal 1.0.0

AWS SDK for AWS Backup External
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
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetResourceProviderOutput {
    /// The compliance status of the resource provider's agent version.
    pub agent_compliance_status: ::std::option::Option<crate::types::ResourceProviderAgentComplianceStatus>,
    /// The status of the resource provider's agent upgrade.
    pub agent_upgrade_status: ::std::option::Option<crate::types::ResourceProviderAgentUpgradeStatus>,
    /// The message describing the status of the resource provider's agent upgrade.
    pub agent_upgrade_status_message: ::std::option::Option<::std::string::String>,
    /// The current version of the resource provider's agent.
    pub agent_version_current: ::std::option::Option<::std::string::String>,
    /// The latest version of the agent available for the resource provider.
    pub agent_version_latest: ::std::option::Option<::std::string::String>,
    /// The Amazon Resource Name (ARN) of the appliance.
    pub appliance_arn: ::std::string::String,
    /// The Amazon Resource Name (ARN) of the resource provider.
    pub arn: ::std::string::String,
    /// The date and time that the resource provider was created.
    pub created_at: ::aws_smithy_types::DateTime,
    /// The date and time that the resource provider's most recent synchronization started.
    pub last_sync_started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// The date and time that the resource provider's most recent synchronization completed.
    pub last_sync_completed_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    /// The name of the resource provider.
    pub name: ::std::option::Option<::std::string::String>,
    /// The configuration of the resource provider.
    pub provider_configuration: ::std::option::Option<crate::types::ResourceProviderConfiguration>,
    /// The metadata describing the resource provider.
    pub provider_metadata: ::std::option::Option<crate::types::ResourceProviderMetadata>,
    /// The type of resource provider.
    pub provider_type: crate::types::ResourceProviderType,
    /// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
    pub secret_configuration_arn: ::std::option::Option<::std::string::String>,
    /// The status of the resource provider.
    pub status: crate::types::ResourceProviderStatus,
    /// The message describing the status of the resource provider.
    pub status_message: ::std::option::Option<::std::string::String>,
    /// The default backup configurations for the resource provider's resource targets, by target type.
    pub target_configuration: ::std::option::Option<crate::types::ResourceTargetConfigurations>,
    /// The tags to apply when the resource provider's resource targets are created.
    pub target_tags_on_create: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    /// The tag keys whose values are synchronized from external resources to their resource targets.
    pub target_tag_keys_to_sync: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.
    pub auto_delete_not_found_targets_after_days: ::std::option::Option<i32>,
    /// The date and time that the resource provider was last updated.
    pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl GetResourceProviderOutput {
    /// The compliance status of the resource provider's agent version.
    pub fn agent_compliance_status(&self) -> ::std::option::Option<&crate::types::ResourceProviderAgentComplianceStatus> {
        self.agent_compliance_status.as_ref()
    }
    /// The status of the resource provider's agent upgrade.
    pub fn agent_upgrade_status(&self) -> ::std::option::Option<&crate::types::ResourceProviderAgentUpgradeStatus> {
        self.agent_upgrade_status.as_ref()
    }
    /// The message describing the status of the resource provider's agent upgrade.
    pub fn agent_upgrade_status_message(&self) -> ::std::option::Option<&str> {
        self.agent_upgrade_status_message.as_deref()
    }
    /// The current version of the resource provider's agent.
    pub fn agent_version_current(&self) -> ::std::option::Option<&str> {
        self.agent_version_current.as_deref()
    }
    /// The latest version of the agent available for the resource provider.
    pub fn agent_version_latest(&self) -> ::std::option::Option<&str> {
        self.agent_version_latest.as_deref()
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn appliance_arn(&self) -> &str {
        use std::ops::Deref;
        self.appliance_arn.deref()
    }
    /// The Amazon Resource Name (ARN) of the resource provider.
    pub fn arn(&self) -> &str {
        use std::ops::Deref;
        self.arn.deref()
    }
    /// The date and time that the resource provider was created.
    pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
        &self.created_at
    }
    /// The date and time that the resource provider's most recent synchronization started.
    pub fn last_sync_started_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_sync_started_at.as_ref()
    }
    /// The date and time that the resource provider's most recent synchronization completed.
    pub fn last_sync_completed_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.last_sync_completed_at.as_ref()
    }
    /// The name of the resource provider.
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// The configuration of the resource provider.
    pub fn provider_configuration(&self) -> ::std::option::Option<&crate::types::ResourceProviderConfiguration> {
        self.provider_configuration.as_ref()
    }
    /// The metadata describing the resource provider.
    pub fn provider_metadata(&self) -> ::std::option::Option<&crate::types::ResourceProviderMetadata> {
        self.provider_metadata.as_ref()
    }
    /// The type of resource provider.
    pub fn provider_type(&self) -> &crate::types::ResourceProviderType {
        &self.provider_type
    }
    /// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
    pub fn secret_configuration_arn(&self) -> ::std::option::Option<&str> {
        self.secret_configuration_arn.as_deref()
    }
    /// The status of the resource provider.
    pub fn status(&self) -> &crate::types::ResourceProviderStatus {
        &self.status
    }
    /// The message describing the status of the resource provider.
    pub fn status_message(&self) -> ::std::option::Option<&str> {
        self.status_message.as_deref()
    }
    /// The default backup configurations for the resource provider's resource targets, by target type.
    pub fn target_configuration(&self) -> ::std::option::Option<&crate::types::ResourceTargetConfigurations> {
        self.target_configuration.as_ref()
    }
    /// The tags to apply when the resource provider's resource targets are created.
    pub fn target_tags_on_create(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        self.target_tags_on_create.as_ref()
    }
    /// The tag keys whose values are synchronized from external resources to their resource targets.
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.target_tag_keys_to_sync.is_none()`.
    pub fn target_tag_keys_to_sync(&self) -> &[::std::string::String] {
        self.target_tag_keys_to_sync.as_deref().unwrap_or_default()
    }
    /// The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.
    pub fn auto_delete_not_found_targets_after_days(&self) -> ::std::option::Option<i32> {
        self.auto_delete_not_found_targets_after_days
    }
    /// The date and time that the resource provider was last updated.
    pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
        self.updated_at.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetResourceProviderOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetResourceProviderOutput {
    /// Creates a new builder-style object to manufacture [`GetResourceProviderOutput`](crate::operation::get_resource_provider::GetResourceProviderOutput).
    pub fn builder() -> crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder {
        crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::default()
    }
}

/// A builder for [`GetResourceProviderOutput`](crate::operation::get_resource_provider::GetResourceProviderOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetResourceProviderOutputBuilder {
    pub(crate) agent_compliance_status: ::std::option::Option<crate::types::ResourceProviderAgentComplianceStatus>,
    pub(crate) agent_upgrade_status: ::std::option::Option<crate::types::ResourceProviderAgentUpgradeStatus>,
    pub(crate) agent_upgrade_status_message: ::std::option::Option<::std::string::String>,
    pub(crate) agent_version_current: ::std::option::Option<::std::string::String>,
    pub(crate) agent_version_latest: ::std::option::Option<::std::string::String>,
    pub(crate) appliance_arn: ::std::option::Option<::std::string::String>,
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_sync_started_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) last_sync_completed_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) provider_configuration: ::std::option::Option<crate::types::ResourceProviderConfiguration>,
    pub(crate) provider_metadata: ::std::option::Option<crate::types::ResourceProviderMetadata>,
    pub(crate) provider_type: ::std::option::Option<crate::types::ResourceProviderType>,
    pub(crate) secret_configuration_arn: ::std::option::Option<::std::string::String>,
    pub(crate) status: ::std::option::Option<crate::types::ResourceProviderStatus>,
    pub(crate) status_message: ::std::option::Option<::std::string::String>,
    pub(crate) target_configuration: ::std::option::Option<crate::types::ResourceTargetConfigurations>,
    pub(crate) target_tags_on_create: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    pub(crate) target_tag_keys_to_sync: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) auto_delete_not_found_targets_after_days: ::std::option::Option<i32>,
    pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
    _request_id: Option<String>,
}
impl GetResourceProviderOutputBuilder {
    /// The compliance status of the resource provider's agent version.
    pub fn agent_compliance_status(mut self, input: crate::types::ResourceProviderAgentComplianceStatus) -> Self {
        self.agent_compliance_status = ::std::option::Option::Some(input);
        self
    }
    /// The compliance status of the resource provider's agent version.
    pub fn set_agent_compliance_status(mut self, input: ::std::option::Option<crate::types::ResourceProviderAgentComplianceStatus>) -> Self {
        self.agent_compliance_status = input;
        self
    }
    /// The compliance status of the resource provider's agent version.
    pub fn get_agent_compliance_status(&self) -> &::std::option::Option<crate::types::ResourceProviderAgentComplianceStatus> {
        &self.agent_compliance_status
    }
    /// The status of the resource provider's agent upgrade.
    pub fn agent_upgrade_status(mut self, input: crate::types::ResourceProviderAgentUpgradeStatus) -> Self {
        self.agent_upgrade_status = ::std::option::Option::Some(input);
        self
    }
    /// The status of the resource provider's agent upgrade.
    pub fn set_agent_upgrade_status(mut self, input: ::std::option::Option<crate::types::ResourceProviderAgentUpgradeStatus>) -> Self {
        self.agent_upgrade_status = input;
        self
    }
    /// The status of the resource provider's agent upgrade.
    pub fn get_agent_upgrade_status(&self) -> &::std::option::Option<crate::types::ResourceProviderAgentUpgradeStatus> {
        &self.agent_upgrade_status
    }
    /// The message describing the status of the resource provider's agent upgrade.
    pub fn agent_upgrade_status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_upgrade_status_message = ::std::option::Option::Some(input.into());
        self
    }
    /// The message describing the status of the resource provider's agent upgrade.
    pub fn set_agent_upgrade_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_upgrade_status_message = input;
        self
    }
    /// The message describing the status of the resource provider's agent upgrade.
    pub fn get_agent_upgrade_status_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_upgrade_status_message
    }
    /// The current version of the resource provider's agent.
    pub fn agent_version_current(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_version_current = ::std::option::Option::Some(input.into());
        self
    }
    /// The current version of the resource provider's agent.
    pub fn set_agent_version_current(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_version_current = input;
        self
    }
    /// The current version of the resource provider's agent.
    pub fn get_agent_version_current(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_version_current
    }
    /// The latest version of the agent available for the resource provider.
    pub fn agent_version_latest(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.agent_version_latest = ::std::option::Option::Some(input.into());
        self
    }
    /// The latest version of the agent available for the resource provider.
    pub fn set_agent_version_latest(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.agent_version_latest = input;
        self
    }
    /// The latest version of the agent available for the resource provider.
    pub fn get_agent_version_latest(&self) -> &::std::option::Option<::std::string::String> {
        &self.agent_version_latest
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    /// This field is required.
    pub fn appliance_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.appliance_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn set_appliance_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.appliance_arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the appliance.
    pub fn get_appliance_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.appliance_arn
    }
    /// The Amazon Resource Name (ARN) of the resource provider.
    /// This field is required.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the resource provider.
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the resource provider.
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// The date and time that the resource provider was created.
    /// This field is required.
    pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.created_at = ::std::option::Option::Some(input);
        self
    }
    /// The date and time that the resource provider was created.
    pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.created_at = input;
        self
    }
    /// The date and time that the resource provider was created.
    pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.created_at
    }
    /// The date and time that the resource provider's most recent synchronization started.
    pub fn last_sync_started_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_sync_started_at = ::std::option::Option::Some(input);
        self
    }
    /// The date and time that the resource provider's most recent synchronization started.
    pub fn set_last_sync_started_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_sync_started_at = input;
        self
    }
    /// The date and time that the resource provider's most recent synchronization started.
    pub fn get_last_sync_started_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_sync_started_at
    }
    /// The date and time that the resource provider's most recent synchronization completed.
    pub fn last_sync_completed_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.last_sync_completed_at = ::std::option::Option::Some(input);
        self
    }
    /// The date and time that the resource provider's most recent synchronization completed.
    pub fn set_last_sync_completed_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.last_sync_completed_at = input;
        self
    }
    /// The date and time that the resource provider's most recent synchronization completed.
    pub fn get_last_sync_completed_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.last_sync_completed_at
    }
    /// The name of the resource provider.
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// The name of the resource provider.
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// The name of the resource provider.
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// The configuration of the resource provider.
    /// This field is required.
    pub fn provider_configuration(mut self, input: crate::types::ResourceProviderConfiguration) -> Self {
        self.provider_configuration = ::std::option::Option::Some(input);
        self
    }
    /// The configuration of the resource provider.
    pub fn set_provider_configuration(mut self, input: ::std::option::Option<crate::types::ResourceProviderConfiguration>) -> Self {
        self.provider_configuration = input;
        self
    }
    /// The configuration of the resource provider.
    pub fn get_provider_configuration(&self) -> &::std::option::Option<crate::types::ResourceProviderConfiguration> {
        &self.provider_configuration
    }
    /// The metadata describing the resource provider.
    pub fn provider_metadata(mut self, input: crate::types::ResourceProviderMetadata) -> Self {
        self.provider_metadata = ::std::option::Option::Some(input);
        self
    }
    /// The metadata describing the resource provider.
    pub fn set_provider_metadata(mut self, input: ::std::option::Option<crate::types::ResourceProviderMetadata>) -> Self {
        self.provider_metadata = input;
        self
    }
    /// The metadata describing the resource provider.
    pub fn get_provider_metadata(&self) -> &::std::option::Option<crate::types::ResourceProviderMetadata> {
        &self.provider_metadata
    }
    /// The type of resource provider.
    /// This field is required.
    pub fn provider_type(mut self, input: crate::types::ResourceProviderType) -> Self {
        self.provider_type = ::std::option::Option::Some(input);
        self
    }
    /// The type of resource provider.
    pub fn set_provider_type(mut self, input: ::std::option::Option<crate::types::ResourceProviderType>) -> Self {
        self.provider_type = input;
        self
    }
    /// The type of resource provider.
    pub fn get_provider_type(&self) -> &::std::option::Option<crate::types::ResourceProviderType> {
        &self.provider_type
    }
    /// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
    pub fn secret_configuration_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.secret_configuration_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
    pub fn set_secret_configuration_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.secret_configuration_arn = input;
        self
    }
    /// The Amazon Resource Name (ARN) of the AWS Secrets Manager secret used to access the resource provider.
    pub fn get_secret_configuration_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.secret_configuration_arn
    }
    /// The status of the resource provider.
    /// This field is required.
    pub fn status(mut self, input: crate::types::ResourceProviderStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// The status of the resource provider.
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::ResourceProviderStatus>) -> Self {
        self.status = input;
        self
    }
    /// The status of the resource provider.
    pub fn get_status(&self) -> &::std::option::Option<crate::types::ResourceProviderStatus> {
        &self.status
    }
    /// The message describing the status of the resource provider.
    pub fn status_message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.status_message = ::std::option::Option::Some(input.into());
        self
    }
    /// The message describing the status of the resource provider.
    pub fn set_status_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.status_message = input;
        self
    }
    /// The message describing the status of the resource provider.
    pub fn get_status_message(&self) -> &::std::option::Option<::std::string::String> {
        &self.status_message
    }
    /// The default backup configurations for the resource provider's resource targets, by target type.
    /// This field is required.
    pub fn target_configuration(mut self, input: crate::types::ResourceTargetConfigurations) -> Self {
        self.target_configuration = ::std::option::Option::Some(input);
        self
    }
    /// The default backup configurations for the resource provider's resource targets, by target type.
    pub fn set_target_configuration(mut self, input: ::std::option::Option<crate::types::ResourceTargetConfigurations>) -> Self {
        self.target_configuration = input;
        self
    }
    /// The default backup configurations for the resource provider's resource targets, by target type.
    pub fn get_target_configuration(&self) -> &::std::option::Option<crate::types::ResourceTargetConfigurations> {
        &self.target_configuration
    }
    /// Adds a key-value pair to `target_tags_on_create`.
    ///
    /// To override the contents of this collection use [`set_target_tags_on_create`](Self::set_target_tags_on_create).
    ///
    /// The tags to apply when the resource provider's resource targets are created.
    pub fn target_tags_on_create(
        mut self,
        k: impl ::std::convert::Into<::std::string::String>,
        v: impl ::std::convert::Into<::std::string::String>,
    ) -> Self {
        let mut hash_map = self.target_tags_on_create.unwrap_or_default();
        hash_map.insert(k.into(), v.into());
        self.target_tags_on_create = ::std::option::Option::Some(hash_map);
        self
    }
    /// The tags to apply when the resource provider's resource targets are created.
    pub fn set_target_tags_on_create(
        mut self,
        input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
    ) -> Self {
        self.target_tags_on_create = input;
        self
    }
    /// The tags to apply when the resource provider's resource targets are created.
    pub fn get_target_tags_on_create(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
        &self.target_tags_on_create
    }
    /// Appends an item to `target_tag_keys_to_sync`.
    ///
    /// To override the contents of this collection use [`set_target_tag_keys_to_sync`](Self::set_target_tag_keys_to_sync).
    ///
    /// The tag keys whose values are synchronized from external resources to their resource targets.
    pub fn target_tag_keys_to_sync(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.target_tag_keys_to_sync.unwrap_or_default();
        v.push(input.into());
        self.target_tag_keys_to_sync = ::std::option::Option::Some(v);
        self
    }
    /// The tag keys whose values are synchronized from external resources to their resource targets.
    pub fn set_target_tag_keys_to_sync(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.target_tag_keys_to_sync = input;
        self
    }
    /// The tag keys whose values are synchronized from external resources to their resource targets.
    pub fn get_target_tag_keys_to_sync(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.target_tag_keys_to_sync
    }
    /// The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.
    pub fn auto_delete_not_found_targets_after_days(mut self, input: i32) -> Self {
        self.auto_delete_not_found_targets_after_days = ::std::option::Option::Some(input);
        self
    }
    /// The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.
    pub fn set_auto_delete_not_found_targets_after_days(mut self, input: ::std::option::Option<i32>) -> Self {
        self.auto_delete_not_found_targets_after_days = input;
        self
    }
    /// The number of days after which resource targets with a status of `NOT_FOUND` are automatically deleted.
    pub fn get_auto_delete_not_found_targets_after_days(&self) -> &::std::option::Option<i32> {
        &self.auto_delete_not_found_targets_after_days
    }
    /// The date and time that the resource provider was last updated.
    pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
        self.updated_at = ::std::option::Option::Some(input);
        self
    }
    /// The date and time that the resource provider was last updated.
    pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
        self.updated_at = input;
        self
    }
    /// The date and time that the resource provider was last updated.
    pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
        &self.updated_at
    }
    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 [`GetResourceProviderOutput`](crate::operation::get_resource_provider::GetResourceProviderOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`appliance_arn`](crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::appliance_arn)
    /// - [`arn`](crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::arn)
    /// - [`created_at`](crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::created_at)
    /// - [`provider_type`](crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::provider_type)
    /// - [`status`](crate::operation::get_resource_provider::builders::GetResourceProviderOutputBuilder::status)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::get_resource_provider::GetResourceProviderOutput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::get_resource_provider::GetResourceProviderOutput {
            agent_compliance_status: self.agent_compliance_status,
            agent_upgrade_status: self.agent_upgrade_status,
            agent_upgrade_status_message: self.agent_upgrade_status_message,
            agent_version_current: self.agent_version_current,
            agent_version_latest: self.agent_version_latest,
            appliance_arn: self.appliance_arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "appliance_arn",
                    "appliance_arn was not specified but it is required when building GetResourceProviderOutput",
                )
            })?,
            arn: self.arn.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "arn",
                    "arn was not specified but it is required when building GetResourceProviderOutput",
                )
            })?,
            created_at: self.created_at.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "created_at",
                    "created_at was not specified but it is required when building GetResourceProviderOutput",
                )
            })?,
            last_sync_started_at: self.last_sync_started_at,
            last_sync_completed_at: self.last_sync_completed_at,
            name: self.name,
            provider_configuration: self.provider_configuration,
            provider_metadata: self.provider_metadata,
            provider_type: self.provider_type.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "provider_type",
                    "provider_type was not specified but it is required when building GetResourceProviderOutput",
                )
            })?,
            secret_configuration_arn: self.secret_configuration_arn,
            status: self.status.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "status",
                    "status was not specified but it is required when building GetResourceProviderOutput",
                )
            })?,
            status_message: self.status_message,
            target_configuration: self.target_configuration,
            target_tags_on_create: self.target_tags_on_create,
            target_tag_keys_to_sync: self.target_tag_keys_to_sync,
            auto_delete_not_found_targets_after_days: self.auto_delete_not_found_targets_after_days,
            updated_at: self.updated_at,
            _request_id: self._request_id,
        })
    }
}