AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateRegionSettingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Backup
16 {
17 namespace 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::String SerializePayload() const override;
34 
35 
40  inline const Aws::Map<Aws::String, bool>& GetResourceTypeOptInPreference() const{ return m_resourceTypeOptInPreference; }
41 
46  inline bool ResourceTypeOptInPreferenceHasBeenSet() const { return m_resourceTypeOptInPreferenceHasBeenSet; }
47 
52  inline void SetResourceTypeOptInPreference(const Aws::Map<Aws::String, bool>& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = value; }
53 
58  inline void SetResourceTypeOptInPreference(Aws::Map<Aws::String, bool>&& value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference = std::move(value); }
59 
64  inline UpdateRegionSettingsRequest& WithResourceTypeOptInPreference(const Aws::Map<Aws::String, bool>& value) { SetResourceTypeOptInPreference(value); return *this;}
65 
70  inline UpdateRegionSettingsRequest& WithResourceTypeOptInPreference(Aws::Map<Aws::String, bool>&& value) { SetResourceTypeOptInPreference(std::move(value)); return *this;}
71 
76  inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const Aws::String& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; }
77 
82  inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(Aws::String&& key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(std::move(key), value); return *this; }
83 
88  inline UpdateRegionSettingsRequest& AddResourceTypeOptInPreference(const char* key, bool value) { m_resourceTypeOptInPreferenceHasBeenSet = true; m_resourceTypeOptInPreference.emplace(key, value); return *this; }
89 
90  private:
91 
92  Aws::Map<Aws::String, bool> m_resourceTypeOptInPreference;
93  bool m_resourceTypeOptInPreferenceHasBeenSet;
94  };
95 
96 } // namespace Model
97 } // namespace Backup
98 } // namespace Aws
Aws::Backup::Model::UpdateRegionSettingsRequest::ResourceTypeOptInPreferenceHasBeenSet
bool ResourceTypeOptInPreferenceHasBeenSet() const
Definition: UpdateRegionSettingsRequest.h:46
Aws::Backup::Model::UpdateRegionSettingsRequest::GetResourceTypeOptInPreference
const Aws::Map< Aws::String, bool > & GetResourceTypeOptInPreference() const
Definition: UpdateRegionSettingsRequest.h:40
Aws::Backup::Model::UpdateRegionSettingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRegionSettingsRequest.h:31
AWS_BACKUP_API
#define AWS_BACKUP_API
Definition: Backup_EXPORTS.h:28
Aws::Backup::Model::UpdateRegionSettingsRequest::AddResourceTypeOptInPreference
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(const Aws::String &key, bool value)
Definition: UpdateRegionSettingsRequest.h:76
BackupRequest.h
Aws::Backup::Model::UpdateRegionSettingsRequest::AddResourceTypeOptInPreference
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(const char *key, bool value)
Definition: UpdateRegionSettingsRequest.h:88
Aws::Backup::BackupRequest
Definition: BackupRequest.h:17
Aws::Backup::Model::UpdateRegionSettingsRequest::WithResourceTypeOptInPreference
UpdateRegionSettingsRequest & WithResourceTypeOptInPreference(Aws::Map< Aws::String, bool > &&value)
Definition: UpdateRegionSettingsRequest.h:70
AWSString.h
Aws::Backup::Model::UpdateRegionSettingsRequest::WithResourceTypeOptInPreference
UpdateRegionSettingsRequest & WithResourceTypeOptInPreference(const Aws::Map< Aws::String, bool > &value)
Definition: UpdateRegionSettingsRequest.h:64
Aws::Backup::Model::UpdateRegionSettingsRequest::SetResourceTypeOptInPreference
void SetResourceTypeOptInPreference(Aws::Map< Aws::String, bool > &&value)
Definition: UpdateRegionSettingsRequest.h:58
Aws::Backup::Model::UpdateRegionSettingsRequest::SetResourceTypeOptInPreference
void SetResourceTypeOptInPreference(const Aws::Map< Aws::String, bool > &value)
Definition: UpdateRegionSettingsRequest.h:52
Backup_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Backup::Model::UpdateRegionSettingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Backup::Model::UpdateRegionSettingsRequest::AddResourceTypeOptInPreference
UpdateRegionSettingsRequest & AddResourceTypeOptInPreference(Aws::String &&key, bool value)
Definition: UpdateRegionSettingsRequest.h:82
Aws::Backup::Model::UpdateRegionSettingsRequest
Definition: UpdateRegionSettingsRequest.h:23
AWSMap.h
Aws::Backup::Model::UpdateRegionSettingsRequest::UpdateRegionSettingsRequest
UpdateRegionSettingsRequest()
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19