aws-sdk-backup 1.109.0

AWS SDK for AWS Backup
Documentation
// 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,
        }
    }
}