AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetMonitorResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
13#include <aws/internetmonitor/model/HealthEventsConfig.h>
14#include <aws/internetmonitor/model/InternetMeasurementsLogDelivery.h>
15#include <aws/internetmonitor/model/MonitorConfigState.h>
16#include <aws/internetmonitor/model/MonitorProcessingStatusCode.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace InternetMonitor {
30namespace Model {
32 public:
33 AWS_INTERNETMONITOR_API GetMonitorResult() = default;
36
38
41 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
42 template <typename MonitorNameT = Aws::String>
43 void SetMonitorName(MonitorNameT&& value) {
44 m_monitorNameHasBeenSet = true;
45 m_monitorName = std::forward<MonitorNameT>(value);
46 }
47 template <typename MonitorNameT = Aws::String>
48 GetMonitorResult& WithMonitorName(MonitorNameT&& value) {
49 SetMonitorName(std::forward<MonitorNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
59 template <typename MonitorArnT = Aws::String>
60 void SetMonitorArn(MonitorArnT&& value) {
61 m_monitorArnHasBeenSet = true;
62 m_monitorArn = std::forward<MonitorArnT>(value);
63 }
64 template <typename MonitorArnT = Aws::String>
65 GetMonitorResult& WithMonitorArn(MonitorArnT&& value) {
66 SetMonitorArn(std::forward<MonitorArnT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
77 template <typename ResourcesT = Aws::Vector<Aws::String>>
78 void SetResources(ResourcesT&& value) {
79 m_resourcesHasBeenSet = true;
80 m_resources = std::forward<ResourcesT>(value);
81 }
82 template <typename ResourcesT = Aws::Vector<Aws::String>>
83 GetMonitorResult& WithResources(ResourcesT&& value) {
84 SetResources(std::forward<ResourcesT>(value));
85 return *this;
86 }
87 template <typename ResourcesT = Aws::String>
88 GetMonitorResult& AddResources(ResourcesT&& value) {
89 m_resourcesHasBeenSet = true;
90 m_resources.emplace_back(std::forward<ResourcesT>(value));
91 return *this;
92 }
94
96
99 inline MonitorConfigState GetStatus() const { return m_status; }
100 inline void SetStatus(MonitorConfigState value) {
101 m_statusHasBeenSet = true;
102 m_status = value;
103 }
105 SetStatus(value);
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
115 template <typename CreatedAtT = Aws::Utils::DateTime>
116 void SetCreatedAt(CreatedAtT&& value) {
117 m_createdAtHasBeenSet = true;
118 m_createdAt = std::forward<CreatedAtT>(value);
119 }
120 template <typename CreatedAtT = Aws::Utils::DateTime>
121 GetMonitorResult& WithCreatedAt(CreatedAtT&& value) {
122 SetCreatedAt(std::forward<CreatedAtT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
132 template <typename ModifiedAtT = Aws::Utils::DateTime>
133 void SetModifiedAt(ModifiedAtT&& value) {
134 m_modifiedAtHasBeenSet = true;
135 m_modifiedAt = std::forward<ModifiedAtT>(value);
136 }
137 template <typename ModifiedAtT = Aws::Utils::DateTime>
138 GetMonitorResult& WithModifiedAt(ModifiedAtT&& value) {
139 SetModifiedAt(std::forward<ModifiedAtT>(value));
140 return *this;
141 }
143
145
148 inline MonitorProcessingStatusCode GetProcessingStatus() const { return m_processingStatus; }
150 m_processingStatusHasBeenSet = true;
151 m_processingStatus = value;
152 }
154 SetProcessingStatus(value);
155 return *this;
156 }
158
160
164 inline const Aws::String& GetProcessingStatusInfo() const { return m_processingStatusInfo; }
165 template <typename ProcessingStatusInfoT = Aws::String>
166 void SetProcessingStatusInfo(ProcessingStatusInfoT&& value) {
167 m_processingStatusInfoHasBeenSet = true;
168 m_processingStatusInfo = std::forward<ProcessingStatusInfoT>(value);
169 }
170 template <typename ProcessingStatusInfoT = Aws::String>
171 GetMonitorResult& WithProcessingStatusInfo(ProcessingStatusInfoT&& value) {
172 SetProcessingStatusInfo(std::forward<ProcessingStatusInfoT>(value));
173 return *this;
174 }
176
178
181 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
182 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 void SetTags(TagsT&& value) {
184 m_tagsHasBeenSet = true;
185 m_tags = std::forward<TagsT>(value);
186 }
187 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
188 GetMonitorResult& WithTags(TagsT&& value) {
189 SetTags(std::forward<TagsT>(value));
190 return *this;
191 }
192 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
193 GetMonitorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
194 m_tagsHasBeenSet = true;
195 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
196 return *this;
197 }
199
201
211 inline int GetMaxCityNetworksToMonitor() const { return m_maxCityNetworksToMonitor; }
212 inline void SetMaxCityNetworksToMonitor(int value) {
213 m_maxCityNetworksToMonitorHasBeenSet = true;
214 m_maxCityNetworksToMonitor = value;
215 }
218 return *this;
219 }
221
223
228 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const { return m_internetMeasurementsLogDelivery; }
229 template <typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
230 void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) {
231 m_internetMeasurementsLogDeliveryHasBeenSet = true;
232 m_internetMeasurementsLogDelivery = std::forward<InternetMeasurementsLogDeliveryT>(value);
233 }
234 template <typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
235 GetMonitorResult& WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) {
236 SetInternetMeasurementsLogDelivery(std::forward<InternetMeasurementsLogDeliveryT>(value));
237 return *this;
238 }
240
242
250 inline int GetTrafficPercentageToMonitor() const { return m_trafficPercentageToMonitor; }
251 inline void SetTrafficPercentageToMonitor(int value) {
252 m_trafficPercentageToMonitorHasBeenSet = true;
253 m_trafficPercentageToMonitor = value;
254 }
257 return *this;
258 }
260
262
271 inline const HealthEventsConfig& GetHealthEventsConfig() const { return m_healthEventsConfig; }
272 template <typename HealthEventsConfigT = HealthEventsConfig>
273 void SetHealthEventsConfig(HealthEventsConfigT&& value) {
274 m_healthEventsConfigHasBeenSet = true;
275 m_healthEventsConfig = std::forward<HealthEventsConfigT>(value);
276 }
277 template <typename HealthEventsConfigT = HealthEventsConfig>
278 GetMonitorResult& WithHealthEventsConfig(HealthEventsConfigT&& value) {
279 SetHealthEventsConfig(std::forward<HealthEventsConfigT>(value));
280 return *this;
281 }
283
285
286 inline const Aws::String& GetRequestId() const { return m_requestId; }
287 template <typename RequestIdT = Aws::String>
288 void SetRequestId(RequestIdT&& value) {
289 m_requestIdHasBeenSet = true;
290 m_requestId = std::forward<RequestIdT>(value);
291 }
292 template <typename RequestIdT = Aws::String>
293 GetMonitorResult& WithRequestId(RequestIdT&& value) {
294 SetRequestId(std::forward<RequestIdT>(value));
295 return *this;
296 }
298 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
299
300 private:
301 Aws::String m_monitorName;
302
303 Aws::String m_monitorArn;
304
305 Aws::Vector<Aws::String> m_resources;
306
308
309 Aws::Utils::DateTime m_createdAt{};
310
311 Aws::Utils::DateTime m_modifiedAt{};
312
314
315 Aws::String m_processingStatusInfo;
316
318
319 int m_maxCityNetworksToMonitor{0};
320
321 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
322
323 int m_trafficPercentageToMonitor{0};
324
325 HealthEventsConfig m_healthEventsConfig;
326
327 Aws::String m_requestId;
328 Aws::Http::HttpResponseCode m_HttpResponseCode;
329 bool m_monitorNameHasBeenSet = false;
330 bool m_monitorArnHasBeenSet = false;
331 bool m_resourcesHasBeenSet = false;
332 bool m_statusHasBeenSet = false;
333 bool m_createdAtHasBeenSet = false;
334 bool m_modifiedAtHasBeenSet = false;
335 bool m_processingStatusHasBeenSet = false;
336 bool m_processingStatusInfoHasBeenSet = false;
337 bool m_tagsHasBeenSet = false;
338 bool m_maxCityNetworksToMonitorHasBeenSet = false;
339 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
340 bool m_trafficPercentageToMonitorHasBeenSet = false;
341 bool m_healthEventsConfigHasBeenSet = false;
342 bool m_requestIdHasBeenSet = false;
343};
344
345} // namespace Model
346} // namespace InternetMonitor
347} // namespace Aws
void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT &&value)
GetMonitorResult & WithMonitorName(MonitorNameT &&value)
GetMonitorResult & WithProcessingStatusInfo(ProcessingStatusInfoT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetMonitorResult & WithResources(ResourcesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetProcessingStatusInfo(ProcessingStatusInfoT &&value)
void SetHealthEventsConfig(HealthEventsConfigT &&value)
GetMonitorResult & WithStatus(MonitorConfigState value)
GetMonitorResult & WithTrafficPercentageToMonitor(int value)
GetMonitorResult & WithMonitorArn(MonitorArnT &&value)
GetMonitorResult & WithCreatedAt(CreatedAtT &&value)
GetMonitorResult & WithTags(TagsT &&value)
MonitorProcessingStatusCode GetProcessingStatus() const
GetMonitorResult & WithRequestId(RequestIdT &&value)
GetMonitorResult & WithMaxCityNetworksToMonitor(int value)
void SetProcessingStatus(MonitorProcessingStatusCode value)
AWS_INTERNETMONITOR_API GetMonitorResult()=default
const HealthEventsConfig & GetHealthEventsConfig() const
GetMonitorResult & WithModifiedAt(ModifiedAtT &&value)
const Aws::Utils::DateTime & GetModifiedAt() const
GetMonitorResult & WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT &&value)
AWS_INTERNETMONITOR_API GetMonitorResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetMonitorResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_INTERNETMONITOR_API GetMonitorResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedAt() const
GetMonitorResult & WithProcessingStatus(MonitorProcessingStatusCode value)
GetMonitorResult & WithHealthEventsConfig(HealthEventsConfigT &&value)
const Aws::Vector< Aws::String > & GetResources() const
const Aws::String & GetProcessingStatusInfo() const
const InternetMeasurementsLogDelivery & GetInternetMeasurementsLogDelivery() const
GetMonitorResult & AddResources(ResourcesT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue