AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
UpdateGlobalSettingsRequest.h
1
6#pragma once
7#include <aws/backup/BackupRequest.h>
8#include <aws/backup/Backup_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Backup {
16namespace Model {
17
21 public:
22 AWS_BACKUP_API UpdateGlobalSettingsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateGlobalSettings"; }
29
30 AWS_BACKUP_API Aws::String SerializePayload() const override;
31
33
45 inline const Aws::Map<Aws::String, Aws::String>& GetGlobalSettings() const { return m_globalSettings; }
46 inline bool GlobalSettingsHasBeenSet() const { return m_globalSettingsHasBeenSet; }
47 template <typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
48 void SetGlobalSettings(GlobalSettingsT&& value) {
49 m_globalSettingsHasBeenSet = true;
50 m_globalSettings = std::forward<GlobalSettingsT>(value);
51 }
52 template <typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
54 SetGlobalSettings(std::forward<GlobalSettingsT>(value));
55 return *this;
56 }
57 template <typename GlobalSettingsKeyT = Aws::String, typename GlobalSettingsValueT = Aws::String>
58 UpdateGlobalSettingsRequest& AddGlobalSettings(GlobalSettingsKeyT&& key, GlobalSettingsValueT&& value) {
59 m_globalSettingsHasBeenSet = true;
60 m_globalSettings.emplace(std::forward<GlobalSettingsKeyT>(key), std::forward<GlobalSettingsValueT>(value));
61 return *this;
62 }
64 private:
66 bool m_globalSettingsHasBeenSet = false;
67};
68
69} // namespace Model
70} // namespace Backup
71} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetGlobalSettings() const
UpdateGlobalSettingsRequest & WithGlobalSettings(GlobalSettingsT &&value)
UpdateGlobalSettingsRequest & AddGlobalSettings(GlobalSettingsKeyT &&key, GlobalSettingsValueT &&value)
virtual const char * GetServiceRequestName() const override
AWS_BACKUP_API Aws::String SerializePayload() const override
AWS_BACKUP_API UpdateGlobalSettingsRequest()=default
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