1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeRegionSettingsOutput {
/// <p>The services along with the opt-in preferences in the Region.</p>
pub resource_type_opt_in_preference: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
/// <p>Returns whether Backup fully manages the backups for a resource type.</p>
/// <p>For the benefits of full Backup management, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management">Full Backup management</a>.</p>
/// <p>For a list of resource types and whether each supports full Backup management, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table.</p>
/// <p>If <code>"DynamoDB":false</code>, you can enable full Backup management for DynamoDB backup by enabling <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli"> Backup's advanced DynamoDB backup features</a>.</p>
pub resource_type_management_preference: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
_request_id: Option<String>,
}
impl DescribeRegionSettingsOutput {
/// <p>The services along with the opt-in preferences in the Region.</p>
pub fn resource_type_opt_in_preference(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
self.resource_type_opt_in_preference.as_ref()
}
/// <p>Returns whether Backup fully manages the backups for a resource type.</p>
/// <p>For the benefits of full Backup management, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management">Full Backup management</a>.</p>
/// <p>For a list of resource types and whether each supports full Backup management, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table.</p>
/// <p>If <code>"DynamoDB":false</code>, you can enable full Backup management for DynamoDB backup by enabling <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli"> Backup's advanced DynamoDB backup features</a>.</p>
pub fn resource_type_management_preference(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, bool>> {
self.resource_type_management_preference.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeRegionSettingsOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeRegionSettingsOutput {
/// Creates a new builder-style object to manufacture [`DescribeRegionSettingsOutput`](crate::operation::describe_region_settings::DescribeRegionSettingsOutput).
pub fn builder() -> crate::operation::describe_region_settings::builders::DescribeRegionSettingsOutputBuilder {
crate::operation::describe_region_settings::builders::DescribeRegionSettingsOutputBuilder::default()
}
}
/// A builder for [`DescribeRegionSettingsOutput`](crate::operation::describe_region_settings::DescribeRegionSettingsOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeRegionSettingsOutputBuilder {
pub(crate) resource_type_opt_in_preference: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
pub(crate) resource_type_management_preference: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
_request_id: Option<String>,
}
impl DescribeRegionSettingsOutputBuilder {
/// Adds a key-value pair to `resource_type_opt_in_preference`.
///
/// To override the contents of this collection use [`set_resource_type_opt_in_preference`](Self::set_resource_type_opt_in_preference).
///
/// <p>The services along with the opt-in preferences in the Region.</p>
pub fn resource_type_opt_in_preference(mut self, k: impl ::std::convert::Into<::std::string::String>, v: bool) -> Self {
let mut hash_map = self.resource_type_opt_in_preference.unwrap_or_default();
hash_map.insert(k.into(), v);
self.resource_type_opt_in_preference = ::std::option::Option::Some(hash_map);
self
}
/// <p>The services along with the opt-in preferences in the Region.</p>
pub fn set_resource_type_opt_in_preference(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
) -> Self {
self.resource_type_opt_in_preference = input;
self
}
/// <p>The services along with the opt-in preferences in the Region.</p>
pub fn get_resource_type_opt_in_preference(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, bool>> {
&self.resource_type_opt_in_preference
}
/// Adds a key-value pair to `resource_type_management_preference`.
///
/// To override the contents of this collection use [`set_resource_type_management_preference`](Self::set_resource_type_management_preference).
///
/// <p>Returns whether Backup fully manages the backups for a resource type.</p>
/// <p>For the benefits of full Backup management, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management">Full Backup management</a>.</p>
/// <p>For a list of resource types and whether each supports full Backup management, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table.</p>
/// <p>If <code>"DynamoDB":false</code>, you can enable full Backup management for DynamoDB backup by enabling <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli"> Backup's advanced DynamoDB backup features</a>.</p>
pub fn resource_type_management_preference(mut self, k: impl ::std::convert::Into<::std::string::String>, v: bool) -> Self {
let mut hash_map = self.resource_type_management_preference.unwrap_or_default();
hash_map.insert(k.into(), v);
self.resource_type_management_preference = ::std::option::Option::Some(hash_map);
self
}
/// <p>Returns whether Backup fully manages the backups for a resource type.</p>
/// <p>For the benefits of full Backup management, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management">Full Backup management</a>.</p>
/// <p>For a list of resource types and whether each supports full Backup management, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table.</p>
/// <p>If <code>"DynamoDB":false</code>, you can enable full Backup management for DynamoDB backup by enabling <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli"> Backup's advanced DynamoDB backup features</a>.</p>
pub fn set_resource_type_management_preference(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, bool>>,
) -> Self {
self.resource_type_management_preference = input;
self
}
/// <p>Returns whether Backup fully manages the backups for a resource type.</p>
/// <p>For the benefits of full Backup management, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#full-management">Full Backup management</a>.</p>
/// <p>For a list of resource types and whether each supports full Backup management, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/backup-feature-availability.html#features-by-resource">Feature availability by resource</a> table.</p>
/// <p>If <code>"DynamoDB":false</code>, you can enable full Backup management for DynamoDB backup by enabling <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli"> Backup's advanced DynamoDB backup features</a>.</p>
pub fn get_resource_type_management_preference(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, bool>> {
&self.resource_type_management_preference
}
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 [`DescribeRegionSettingsOutput`](crate::operation::describe_region_settings::DescribeRegionSettingsOutput).
pub fn build(self) -> crate::operation::describe_region_settings::DescribeRegionSettingsOutput {
crate::operation::describe_region_settings::DescribeRegionSettingsOutput {
resource_type_opt_in_preference: self.resource_type_opt_in_preference,
resource_type_management_preference: self.resource_type_management_preference,
_request_id: self._request_id,
}
}
}