/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Backup { namespace Model { /** */ class UpdateRegionSettingsRequest : public BackupRequest { public: AWS_BACKUP_API UpdateRegionSettingsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateRegionSettings"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline const Aws::Map& GetResourceTypeOptInPreference() const{ return m_resourceTypeOptInPreference; } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline bool ResourceTypeOptInPreferenceHasBeenSet() const { return m_resourceTypeOptInPreferenceHasBeenSet; } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline void SetResourceTypeOptInPreference(const Aws::Map& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = value; } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline void SetResourceTypeOptInPreference(Aws::Map&& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = std::move(value); } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline UpdateRegionSettingsRequest& WithResourceTypeOptInPreference(const Aws::Map& value) { SetResourceTypeOptInPreference(value); return *this;} /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline UpdateRegionSettingsRequest& WithResourceTypeOptInPreference(Aws::Map&& value) { SetResourceTypeOptInPreference(std::move(value)); return *this;} /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const Aws::String& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(Aws::String&& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(std::move(key), value); return *this; } /** *

Updates the list of services along with the opt-in preferences for the * Region.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const char* key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline const Aws::Map& GetResourceTypeManagementPreference() const{ return m_resourceTypeManagementPreference; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline bool ResourceTypeManagementPreferenceHasBeenSet() const { return m_resourceTypeManagementPreferenceHasBeenSet; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline void SetResourceTypeManagementPreference(const Aws::Map& value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference = value; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline void SetResourceTypeManagementPreference(Aws::Map&& value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference = std::move(value); } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline UpdateRegionSettingsRequest& WithResourceTypeManagementPreference(const Aws::Map& value) { SetResourceTypeManagementPreference(value); return *this;} /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline UpdateRegionSettingsRequest& WithResourceTypeManagementPreference(Aws::Map&& value) { SetResourceTypeManagementPreference(std::move(value)); return *this;} /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(const Aws::String& key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(key, value); return *this; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(Aws::String&& key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(std::move(key), value); return *this; } /** *

Enables or disables full Backup management of backups for a resource type. To * enable full Backup management for DynamoDB along with * Backup's advanced DynamoDB backup features, follow the procedure to * enable advanced DynamoDB backup programmatically.

*/ inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(const char* key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(key, value); return *this; } private: Aws::Map m_resourceTypeOptInPreference; bool m_resourceTypeOptInPreferenceHasBeenSet = false; Aws::Map m_resourceTypeManagementPreference; bool m_resourceTypeManagementPreferenceHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws