AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateGlobalSettingsRequest.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:
25 AWS_BACKUP_API UpdateGlobalSettingsRequest() = default;
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 "UpdateGlobalSettings"; }
32
33 AWS_BACKUP_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::Map<Aws::String, Aws::String>& GetGlobalSettings() const { return m_globalSettings; }
43 inline bool GlobalSettingsHasBeenSet() const { return m_globalSettingsHasBeenSet; }
44 template<typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
45 void SetGlobalSettings(GlobalSettingsT&& value) { m_globalSettingsHasBeenSet = true; m_globalSettings = std::forward<GlobalSettingsT>(value); }
46 template<typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
47 UpdateGlobalSettingsRequest& WithGlobalSettings(GlobalSettingsT&& value) { SetGlobalSettings(std::forward<GlobalSettingsT>(value)); return *this;}
48 template<typename GlobalSettingsKeyT = Aws::String, typename GlobalSettingsValueT = Aws::String>
49 UpdateGlobalSettingsRequest& AddGlobalSettings(GlobalSettingsKeyT&& key, GlobalSettingsValueT&& value) {
50 m_globalSettingsHasBeenSet = true; m_globalSettings.emplace(std::forward<GlobalSettingsKeyT>(key), std::forward<GlobalSettingsValueT>(value)); return *this;
51 }
53 private:
54
56 bool m_globalSettingsHasBeenSet = false;
57 };
58
59} // namespace Model
60} // namespace Backup
61} // 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