AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
DescribeGlobalSettingsResult.h
1
6#pragma once
7#include <aws/backup/Backup_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Backup {
25namespace Model {
27 public:
28 AWS_BACKUP_API DescribeGlobalSettingsResult() = default;
31
33
45 inline const Aws::Map<Aws::String, Aws::String>& GetGlobalSettings() const { return m_globalSettings; }
46 template <typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
47 void SetGlobalSettings(GlobalSettingsT&& value) {
48 m_globalSettingsHasBeenSet = true;
49 m_globalSettings = std::forward<GlobalSettingsT>(value);
50 }
51 template <typename GlobalSettingsT = Aws::Map<Aws::String, Aws::String>>
53 SetGlobalSettings(std::forward<GlobalSettingsT>(value));
54 return *this;
55 }
56 template <typename GlobalSettingsKeyT = Aws::String, typename GlobalSettingsValueT = Aws::String>
57 DescribeGlobalSettingsResult& AddGlobalSettings(GlobalSettingsKeyT&& key, GlobalSettingsValueT&& value) {
58 m_globalSettingsHasBeenSet = true;
59 m_globalSettings.emplace(std::forward<GlobalSettingsKeyT>(key), std::forward<GlobalSettingsValueT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
72 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
73 void SetLastUpdateTime(LastUpdateTimeT&& value) {
74 m_lastUpdateTimeHasBeenSet = true;
75 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
76 }
77 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
79 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
80 return *this;
81 }
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
99
100 private:
101 Aws::Map<Aws::String, Aws::String> m_globalSettings;
102
103 Aws::Utils::DateTime m_lastUpdateTime{};
104
105 Aws::String m_requestId;
106 Aws::Http::HttpResponseCode m_HttpResponseCode;
107 bool m_globalSettingsHasBeenSet = false;
108 bool m_lastUpdateTimeHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace Backup
114} // namespace Aws
AWS_BACKUP_API DescribeGlobalSettingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeGlobalSettingsResult & WithLastUpdateTime(LastUpdateTimeT &&value)
AWS_BACKUP_API DescribeGlobalSettingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeGlobalSettingsResult & AddGlobalSettings(GlobalSettingsKeyT &&key, GlobalSettingsValueT &&value)
AWS_BACKUP_API DescribeGlobalSettingsResult()=default
DescribeGlobalSettingsResult & WithRequestId(RequestIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetGlobalSettings() const
DescribeGlobalSettingsResult & WithGlobalSettings(GlobalSettingsT &&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
Aws::Utils::Json::JsonValue JsonValue