/** * 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 AWS_BACKUP_API UpdateRegionSettingsRequest : public BackupRequest { public: 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::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; } private: Aws::Map m_resourceTypeOptInPreference; bool m_resourceTypeOptInPreferenceHasBeenSet; }; } // namespace Model } // namespace Backup } // namespace Aws