AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRegionSettingsRequest.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/backup/BackupRequest.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Backup
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateRegionSettings"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
47 inline const Aws::Map<Aws::String, bool>& GetResourceTypeOptInPreference() const{ return m_resourceTypeOptInPreference; }
48 inline bool ResourceTypeOptInPreferenceHasBeenSet() const { return m_resourceTypeOptInPreferenceHasBeenSet; }
49 inline void SetResourceTypeOptInPreference(const Aws::Map<Aws::String, bool>& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = value; }
50 inline void SetResourceTypeOptInPreference(Aws::Map<Aws::String, bool>&& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = std::move(value); }
53 inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const Aws::String& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; }
54 inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(Aws::String&& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(std::move(key), value); return *this; }
55 inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const char* key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; }
57
59
67 inline const Aws::Map<Aws::String, bool>& GetResourceTypeManagementPreference() const{ return m_resourceTypeManagementPreference; }
68 inline bool ResourceTypeManagementPreferenceHasBeenSet() const { return m_resourceTypeManagementPreferenceHasBeenSet; }
69 inline void SetResourceTypeManagementPreference(const Aws::Map<Aws::String, bool>& value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference = value; }
70 inline void SetResourceTypeManagementPreference(Aws::Map<Aws::String, bool>&& value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference = std::move(value); }
73 inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(const Aws::String& key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(key, value); return *this; }
74 inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(Aws::String&& key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(std::move(key), value); return *this; }
75 inline UpdateRegionSettingsRequest& AddResourceTypeManagementPreference(const char* key, bool value) { m_resourceTypeManagementPreferenceHasBeenSet = true; m_resourceTypeManagementPreference.emplace(key, value); return *this; }
77 private:
78
79 Aws::Map<Aws::String, bool> m_resourceTypeOptInPreference;
80 bool m_resourceTypeOptInPreferenceHasBeenSet = false;
81
82 Aws::Map<Aws::String, bool> m_resourceTypeManagementPreference;
83 bool m_resourceTypeManagementPreferenceHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Backup
88} // namespace Aws
const Aws::Map< Aws::String, bool > & GetResourceTypeManagementPreference() const
UpdateRegionSettingsRequest & AddResourceTypeManagementPreference(Aws::String &&key, bool value)
virtual const char * GetServiceRequestName() const override
void SetResourceTypeManagementPreference(const Aws::Map< Aws::String, bool > &value)
UpdateRegionSettingsRequest & WithResourceTypeManagementPreference(Aws::Map< Aws::String, bool > &&value)
UpdateRegionSettingsRequest & AddResourceTypeManagementPreference(const Aws::String &key, bool value)
AWS_BACKUP_API Aws::String SerializePayload() const override
UpdateRegionSettingsRequest & WithResourceTypeOptInPreference(Aws::Map< Aws::String, bool > &&value)
void SetResourceTypeOptInPreference(const Aws::Map< Aws::String, bool > &value)
void SetResourceTypeOptInPreference(Aws::Map< Aws::String, bool > &&value)
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(Aws::String &&key, bool value)
UpdateRegionSettingsRequest & WithResourceTypeOptInPreference(const Aws::Map< Aws::String, bool > &value)
UpdateRegionSettingsRequest & WithResourceTypeManagementPreference(const Aws::Map< Aws::String, bool > &value)
const Aws::Map< Aws::String, bool > & GetResourceTypeOptInPreference() const
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(const char *key, bool value)
UpdateRegionSettingsRequest & AddResourceTypeManagementPreference(const char *key, bool value)
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(const Aws::String &key, bool value)
void SetResourceTypeManagementPreference(Aws::Map< Aws::String, bool > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String