AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetMonitorResult.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/internetmonitor/model/MonitorConfigState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/internetmonitor/model/MonitorProcessingStatusCode.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/internetmonitor/model/InternetMeasurementsLogDelivery.h>
15#include <aws/internetmonitor/model/HealthEventsConfig.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace InternetMonitor
31{
32namespace Model
33{
35 {
36 public:
37 AWS_INTERNETMONITOR_API GetMonitorResult() = default;
40
41
43
46 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
47 template<typename MonitorNameT = Aws::String>
48 void SetMonitorName(MonitorNameT&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::forward<MonitorNameT>(value); }
49 template<typename MonitorNameT = Aws::String>
50 GetMonitorResult& WithMonitorName(MonitorNameT&& value) { SetMonitorName(std::forward<MonitorNameT>(value)); return *this;}
52
54
57 inline const Aws::String& GetMonitorArn() const { return m_monitorArn; }
58 template<typename MonitorArnT = Aws::String>
59 void SetMonitorArn(MonitorArnT&& value) { m_monitorArnHasBeenSet = true; m_monitorArn = std::forward<MonitorArnT>(value); }
60 template<typename MonitorArnT = Aws::String>
61 GetMonitorResult& WithMonitorArn(MonitorArnT&& value) { SetMonitorArn(std::forward<MonitorArnT>(value)); return *this;}
63
65
69 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
70 template<typename ResourcesT = Aws::Vector<Aws::String>>
71 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
72 template<typename ResourcesT = Aws::Vector<Aws::String>>
73 GetMonitorResult& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
74 template<typename ResourcesT = Aws::String>
75 GetMonitorResult& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
77
79
82 inline MonitorConfigState GetStatus() const { return m_status; }
83 inline void SetStatus(MonitorConfigState value) { m_statusHasBeenSet = true; m_status = value; }
84 inline GetMonitorResult& WithStatus(MonitorConfigState value) { SetStatus(value); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
92 template<typename CreatedAtT = Aws::Utils::DateTime>
93 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
94 template<typename CreatedAtT = Aws::Utils::DateTime>
95 GetMonitorResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
97
99
102 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
103 template<typename ModifiedAtT = Aws::Utils::DateTime>
104 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
105 template<typename ModifiedAtT = Aws::Utils::DateTime>
106 GetMonitorResult& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
108
110
113 inline MonitorProcessingStatusCode GetProcessingStatus() const { return m_processingStatus; }
114 inline void SetProcessingStatus(MonitorProcessingStatusCode value) { m_processingStatusHasBeenSet = true; m_processingStatus = value; }
117
119
123 inline const Aws::String& GetProcessingStatusInfo() const { return m_processingStatusInfo; }
124 template<typename ProcessingStatusInfoT = Aws::String>
125 void SetProcessingStatusInfo(ProcessingStatusInfoT&& value) { m_processingStatusInfoHasBeenSet = true; m_processingStatusInfo = std::forward<ProcessingStatusInfoT>(value); }
126 template<typename ProcessingStatusInfoT = Aws::String>
127 GetMonitorResult& WithProcessingStatusInfo(ProcessingStatusInfoT&& value) { SetProcessingStatusInfo(std::forward<ProcessingStatusInfoT>(value)); return *this;}
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
135 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
137 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 GetMonitorResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
139 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 GetMonitorResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
142 }
144
146
156 inline int GetMaxCityNetworksToMonitor() const { return m_maxCityNetworksToMonitor; }
157 inline void SetMaxCityNetworksToMonitor(int value) { m_maxCityNetworksToMonitorHasBeenSet = true; m_maxCityNetworksToMonitor = value; }
160
162
167 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const { return m_internetMeasurementsLogDelivery; }
168 template<typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
169 void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = std::forward<InternetMeasurementsLogDeliveryT>(value); }
170 template<typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
171 GetMonitorResult& WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) { SetInternetMeasurementsLogDelivery(std::forward<InternetMeasurementsLogDeliveryT>(value)); return *this;}
173
175
183 inline int GetTrafficPercentageToMonitor() const { return m_trafficPercentageToMonitor; }
184 inline void SetTrafficPercentageToMonitor(int value) { m_trafficPercentageToMonitorHasBeenSet = true; m_trafficPercentageToMonitor = value; }
187
189
198 inline const HealthEventsConfig& GetHealthEventsConfig() const { return m_healthEventsConfig; }
199 template<typename HealthEventsConfigT = HealthEventsConfig>
200 void SetHealthEventsConfig(HealthEventsConfigT&& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = std::forward<HealthEventsConfigT>(value); }
201 template<typename HealthEventsConfigT = HealthEventsConfig>
202 GetMonitorResult& WithHealthEventsConfig(HealthEventsConfigT&& value) { SetHealthEventsConfig(std::forward<HealthEventsConfigT>(value)); return *this;}
204
206
207 inline const Aws::String& GetRequestId() const { return m_requestId; }
208 template<typename RequestIdT = Aws::String>
209 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
210 template<typename RequestIdT = Aws::String>
211 GetMonitorResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
213 private:
214
215 Aws::String m_monitorName;
216 bool m_monitorNameHasBeenSet = false;
217
218 Aws::String m_monitorArn;
219 bool m_monitorArnHasBeenSet = false;
220
221 Aws::Vector<Aws::String> m_resources;
222 bool m_resourcesHasBeenSet = false;
223
225 bool m_statusHasBeenSet = false;
226
227 Aws::Utils::DateTime m_createdAt{};
228 bool m_createdAtHasBeenSet = false;
229
230 Aws::Utils::DateTime m_modifiedAt{};
231 bool m_modifiedAtHasBeenSet = false;
232
234 bool m_processingStatusHasBeenSet = false;
235
236 Aws::String m_processingStatusInfo;
237 bool m_processingStatusInfoHasBeenSet = false;
238
240 bool m_tagsHasBeenSet = false;
241
242 int m_maxCityNetworksToMonitor{0};
243 bool m_maxCityNetworksToMonitorHasBeenSet = false;
244
245 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
246 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
247
248 int m_trafficPercentageToMonitor{0};
249 bool m_trafficPercentageToMonitorHasBeenSet = false;
250
251 HealthEventsConfig m_healthEventsConfig;
252 bool m_healthEventsConfigHasBeenSet = false;
253
254 Aws::String m_requestId;
255 bool m_requestIdHasBeenSet = false;
256 };
257
258} // namespace Model
259} // namespace InternetMonitor
260} // namespace Aws
void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT &&value)
GetMonitorResult & WithMonitorName(MonitorNameT &&value)
GetMonitorResult & WithProcessingStatusInfo(ProcessingStatusInfoT &&value)
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