AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateMonitorRequest.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/internetmonitor/InternetMonitorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/internetmonitor/model/InternetMeasurementsLogDelivery.h>
13#include <aws/internetmonitor/model/HealthEventsConfig.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace InternetMonitor
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_INTERNETMONITOR_API CreateMonitorRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateMonitor"; }
36
37 AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetMonitorName() const{ return m_monitorName; }
45 inline bool MonitorNameHasBeenSet() const { return m_monitorNameHasBeenSet; }
46 inline void SetMonitorName(const Aws::String& value) { m_monitorNameHasBeenSet = true; m_monitorName = value; }
47 inline void SetMonitorName(Aws::String&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::move(value); }
48 inline void SetMonitorName(const char* value) { m_monitorNameHasBeenSet = true; m_monitorName.assign(value); }
49 inline CreateMonitorRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
50 inline CreateMonitorRequest& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
51 inline CreateMonitorRequest& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
53
55
65 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
66 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
67 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
68 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
69 inline CreateMonitorRequest& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
70 inline CreateMonitorRequest& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
71 inline CreateMonitorRequest& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
72 inline CreateMonitorRequest& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
73 inline CreateMonitorRequest& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
75
77
82 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
85 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
86 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
87 inline CreateMonitorRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
88 inline CreateMonitorRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
89 inline CreateMonitorRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
91
93
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateMonitorRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline CreateMonitorRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateMonitorRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateMonitorRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateMonitorRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateMonitorRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateMonitorRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateMonitorRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateMonitorRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111
113
123 inline int GetMaxCityNetworksToMonitor() const{ return m_maxCityNetworksToMonitor; }
124 inline bool MaxCityNetworksToMonitorHasBeenSet() const { return m_maxCityNetworksToMonitorHasBeenSet; }
125 inline void SetMaxCityNetworksToMonitor(int value) { m_maxCityNetworksToMonitorHasBeenSet = true; m_maxCityNetworksToMonitor = value; }
128
130
134 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const{ return m_internetMeasurementsLogDelivery; }
135 inline bool InternetMeasurementsLogDeliveryHasBeenSet() const { return m_internetMeasurementsLogDeliveryHasBeenSet; }
136 inline void SetInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = value; }
137 inline void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery&& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = std::move(value); }
141
143
152 inline int GetTrafficPercentageToMonitor() const{ return m_trafficPercentageToMonitor; }
153 inline bool TrafficPercentageToMonitorHasBeenSet() const { return m_trafficPercentageToMonitorHasBeenSet; }
154 inline void SetTrafficPercentageToMonitor(int value) { m_trafficPercentageToMonitorHasBeenSet = true; m_trafficPercentageToMonitor = value; }
157
159
170 inline const HealthEventsConfig& GetHealthEventsConfig() const{ return m_healthEventsConfig; }
171 inline bool HealthEventsConfigHasBeenSet() const { return m_healthEventsConfigHasBeenSet; }
172 inline void SetHealthEventsConfig(const HealthEventsConfig& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = value; }
173 inline void SetHealthEventsConfig(HealthEventsConfig&& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = std::move(value); }
175 inline CreateMonitorRequest& WithHealthEventsConfig(HealthEventsConfig&& value) { SetHealthEventsConfig(std::move(value)); return *this;}
177 private:
178
179 Aws::String m_monitorName;
180 bool m_monitorNameHasBeenSet = false;
181
182 Aws::Vector<Aws::String> m_resources;
183 bool m_resourcesHasBeenSet = false;
184
185 Aws::String m_clientToken;
186 bool m_clientTokenHasBeenSet = false;
187
189 bool m_tagsHasBeenSet = false;
190
191 int m_maxCityNetworksToMonitor;
192 bool m_maxCityNetworksToMonitorHasBeenSet = false;
193
194 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
195 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
196
197 int m_trafficPercentageToMonitor;
198 bool m_trafficPercentageToMonitorHasBeenSet = false;
199
200 HealthEventsConfig m_healthEventsConfig;
201 bool m_healthEventsConfigHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace InternetMonitor
206} // namespace Aws
CreateMonitorRequest & AddTags(const char *key, Aws::String &&value)
CreateMonitorRequest & WithHealthEventsConfig(const HealthEventsConfig &value)
CreateMonitorRequest & WithClientToken(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateMonitorRequest & AddResources(const Aws::String &value)
CreateMonitorRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateMonitorRequest & WithResources(Aws::Vector< Aws::String > &&value)
CreateMonitorRequest & WithMonitorName(const Aws::String &value)
CreateMonitorRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateMonitorRequest & AddResources(Aws::String &&value)
CreateMonitorRequest & WithHealthEventsConfig(HealthEventsConfig &&value)
void SetHealthEventsConfig(const HealthEventsConfig &value)
CreateMonitorRequest & WithInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery &value)
CreateMonitorRequest & WithMonitorName(const char *value)
const HealthEventsConfig & GetHealthEventsConfig() const
CreateMonitorRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
const InternetMeasurementsLogDelivery & GetInternetMeasurementsLogDelivery() const
CreateMonitorRequest & AddTags(Aws::String &&key, Aws::String &&value)
AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override
CreateMonitorRequest & WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery &&value)
virtual const char * GetServiceRequestName() const override
void SetResources(const Aws::Vector< Aws::String > &value)
CreateMonitorRequest & WithClientToken(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetResources(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResources() const
void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery &&value)
CreateMonitorRequest & WithTrafficPercentageToMonitor(int value)
CreateMonitorRequest & AddTags(Aws::String &&key, const char *value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateMonitorRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateMonitorRequest & AddTags(const char *key, const char *value)
CreateMonitorRequest & WithMonitorName(Aws::String &&value)
CreateMonitorRequest & WithResources(const Aws::Vector< Aws::String > &value)
CreateMonitorRequest & WithClientToken(Aws::String &&value)
CreateMonitorRequest & AddResources(const char *value)
CreateMonitorRequest & WithMaxCityNetworksToMonitor(int value)
CreateMonitorRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery &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