/** * 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 UpdateGlobalSettingsRequest : public BackupRequest { public: AWS_BACKUP_API UpdateGlobalSettingsRequest(); // 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 "UpdateGlobalSettings"; } AWS_BACKUP_API Aws::String SerializePayload() const override; /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline const Aws::Map& GetGlobalSettings() const{ return m_globalSettings; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline bool GlobalSettingsHasBeenSet() const { return m_globalSettingsHasBeenSet; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline void SetGlobalSettings(const Aws::Map& value) { m_globalSettingsHasBeenSet = true; m_globalSettings = value; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline void SetGlobalSettings(Aws::Map&& value) { m_globalSettingsHasBeenSet = true; m_globalSettings = std::move(value); } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& WithGlobalSettings(const Aws::Map& value) { SetGlobalSettings(value); return *this;} /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& WithGlobalSettings(Aws::Map&& value) { SetGlobalSettings(std::move(value)); return *this;} /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(const Aws::String& key, const Aws::String& value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(key, value); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(Aws::String&& key, const Aws::String& value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(std::move(key), value); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(const Aws::String& key, Aws::String&& value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(key, std::move(value)); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(Aws::String&& key, Aws::String&& value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(std::move(key), std::move(value)); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(const char* key, Aws::String&& value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(key, std::move(value)); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(Aws::String&& key, const char* value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(std::move(key), value); return *this; } /** *

A value for isCrossAccountBackupEnabled and a Region. Example: * update-global-settings --global-settings isCrossAccountBackupEnabled=false * --region us-west-2.

*/ inline UpdateGlobalSettingsRequest& AddGlobalSettings(const char* key, const char* value) { m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(key, value); return *this; } private: Aws::Map m_globalSettings; bool m_globalSettingsHasBeenSet = false; }; } // namespace Model } // namespace Backup } // namespace Aws