AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CreateMonitorRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/internetmonitor/InternetMonitorRequest.h>
12#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
13#include <aws/internetmonitor/model/HealthEventsConfig.h>
14#include <aws/internetmonitor/model/InternetMeasurementsLogDelivery.h>
15
16#include <utility>
17
18namespace Aws {
19namespace InternetMonitor {
20namespace Model {
21
25 public:
26 AWS_INTERNETMONITOR_API CreateMonitorRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateMonitor"; }
33
34 AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetMonitorName() const { return m_monitorName; }
41 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
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 CreateMonitorRequest& WithMonitorName(MonitorNameT&& value) {
49 SetMonitorName(std::forward<MonitorNameT>(value));
50 return *this;
51 }
53
55
65 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
66 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
67 template <typename ResourcesT = Aws::Vector<Aws::String>>
68 void SetResources(ResourcesT&& value) {
69 m_resourcesHasBeenSet = true;
70 m_resources = std::forward<ResourcesT>(value);
71 }
72 template <typename ResourcesT = Aws::Vector<Aws::String>>
73 CreateMonitorRequest& WithResources(ResourcesT&& value) {
74 SetResources(std::forward<ResourcesT>(value));
75 return *this;
76 }
77 template <typename ResourcesT = Aws::String>
78 CreateMonitorRequest& AddResources(ResourcesT&& value) {
79 m_resourcesHasBeenSet = true;
80 m_resources.emplace_back(std::forward<ResourcesT>(value));
81 return *this;
82 }
84
86
91 inline const Aws::String& GetClientToken() const { return m_clientToken; }
92 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
93 template <typename ClientTokenT = Aws::String>
94 void SetClientToken(ClientTokenT&& value) {
95 m_clientTokenHasBeenSet = true;
96 m_clientToken = std::forward<ClientTokenT>(value);
97 }
98 template <typename ClientTokenT = Aws::String>
99 CreateMonitorRequest& WithClientToken(ClientTokenT&& value) {
100 SetClientToken(std::forward<ClientTokenT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 CreateMonitorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129
131
141 inline int GetMaxCityNetworksToMonitor() const { return m_maxCityNetworksToMonitor; }
142 inline bool MaxCityNetworksToMonitorHasBeenSet() const { return m_maxCityNetworksToMonitorHasBeenSet; }
143 inline void SetMaxCityNetworksToMonitor(int value) {
144 m_maxCityNetworksToMonitorHasBeenSet = true;
145 m_maxCityNetworksToMonitor = value;
146 }
149 return *this;
150 }
152
154
158 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const { return m_internetMeasurementsLogDelivery; }
159 inline bool InternetMeasurementsLogDeliveryHasBeenSet() const { return m_internetMeasurementsLogDeliveryHasBeenSet; }
160 template <typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
161 void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) {
162 m_internetMeasurementsLogDeliveryHasBeenSet = true;
163 m_internetMeasurementsLogDelivery = std::forward<InternetMeasurementsLogDeliveryT>(value);
164 }
165 template <typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
166 CreateMonitorRequest& WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) {
167 SetInternetMeasurementsLogDelivery(std::forward<InternetMeasurementsLogDeliveryT>(value));
168 return *this;
169 }
171
173
182 inline int GetTrafficPercentageToMonitor() const { return m_trafficPercentageToMonitor; }
183 inline bool TrafficPercentageToMonitorHasBeenSet() const { return m_trafficPercentageToMonitorHasBeenSet; }
184 inline void SetTrafficPercentageToMonitor(int value) {
185 m_trafficPercentageToMonitorHasBeenSet = true;
186 m_trafficPercentageToMonitor = value;
187 }
190 return *this;
191 }
193
195
206 inline const HealthEventsConfig& GetHealthEventsConfig() const { return m_healthEventsConfig; }
207 inline bool HealthEventsConfigHasBeenSet() const { return m_healthEventsConfigHasBeenSet; }
208 template <typename HealthEventsConfigT = HealthEventsConfig>
209 void SetHealthEventsConfig(HealthEventsConfigT&& value) {
210 m_healthEventsConfigHasBeenSet = true;
211 m_healthEventsConfig = std::forward<HealthEventsConfigT>(value);
212 }
213 template <typename HealthEventsConfigT = HealthEventsConfig>
214 CreateMonitorRequest& WithHealthEventsConfig(HealthEventsConfigT&& value) {
215 SetHealthEventsConfig(std::forward<HealthEventsConfigT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_monitorName;
221
222 Aws::Vector<Aws::String> m_resources;
223
225
227
228 int m_maxCityNetworksToMonitor{0};
229
230 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
231
232 int m_trafficPercentageToMonitor{0};
233
234 HealthEventsConfig m_healthEventsConfig;
235 bool m_monitorNameHasBeenSet = false;
236 bool m_resourcesHasBeenSet = false;
237 bool m_clientTokenHasBeenSet = true;
238 bool m_tagsHasBeenSet = false;
239 bool m_maxCityNetworksToMonitorHasBeenSet = false;
240 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
241 bool m_trafficPercentageToMonitorHasBeenSet = false;
242 bool m_healthEventsConfigHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace InternetMonitor
247} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT &&value)
CreateMonitorRequest & WithMonitorName(MonitorNameT &&value)
CreateMonitorRequest & WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT &&value)
AWS_INTERNETMONITOR_API CreateMonitorRequest()=default
CreateMonitorRequest & WithClientToken(ClientTokenT &&value)
const HealthEventsConfig & GetHealthEventsConfig() const
CreateMonitorRequest & WithTags(TagsT &&value)
const InternetMeasurementsLogDelivery & GetInternetMeasurementsLogDelivery() const
AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateMonitorRequest & WithResources(ResourcesT &&value)
const Aws::Vector< Aws::String > & GetResources() const
CreateMonitorRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateMonitorRequest & WithTrafficPercentageToMonitor(int value)
CreateMonitorRequest & WithHealthEventsConfig(HealthEventsConfigT &&value)
void SetHealthEventsConfig(HealthEventsConfigT &&value)
CreateMonitorRequest & WithMaxCityNetworksToMonitor(int value)
CreateMonitorRequest & AddResources(ResourcesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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