AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename MonitorNameT = Aws::String>
47 void SetMonitorName(MonitorNameT&& value) { m_monitorNameHasBeenSet = true; m_monitorName = std::forward<MonitorNameT>(value); }
48 template<typename MonitorNameT = Aws::String>
49 CreateMonitorRequest& WithMonitorName(MonitorNameT&& value) { SetMonitorName(std::forward<MonitorNameT>(value)); return *this;}
51
53
63 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
64 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
65 template<typename ResourcesT = Aws::Vector<Aws::String>>
66 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
67 template<typename ResourcesT = Aws::Vector<Aws::String>>
68 CreateMonitorRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
69 template<typename ResourcesT = Aws::String>
70 CreateMonitorRequest& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
72
74
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template<typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
83 template<typename ClientTokenT = Aws::String>
84 CreateMonitorRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
86
88
92 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
95 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
96 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
97 CreateMonitorRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
98 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
99 CreateMonitorRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
100 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
101 }
103
105
115 inline int GetMaxCityNetworksToMonitor() const { return m_maxCityNetworksToMonitor; }
116 inline bool MaxCityNetworksToMonitorHasBeenSet() const { return m_maxCityNetworksToMonitorHasBeenSet; }
117 inline void SetMaxCityNetworksToMonitor(int value) { m_maxCityNetworksToMonitorHasBeenSet = true; m_maxCityNetworksToMonitor = value; }
120
122
126 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const { return m_internetMeasurementsLogDelivery; }
127 inline bool InternetMeasurementsLogDeliveryHasBeenSet() const { return m_internetMeasurementsLogDeliveryHasBeenSet; }
128 template<typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
129 void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = std::forward<InternetMeasurementsLogDeliveryT>(value); }
130 template<typename InternetMeasurementsLogDeliveryT = InternetMeasurementsLogDelivery>
131 CreateMonitorRequest& WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDeliveryT&& value) { SetInternetMeasurementsLogDelivery(std::forward<InternetMeasurementsLogDeliveryT>(value)); return *this;}
133
135
144 inline int GetTrafficPercentageToMonitor() const { return m_trafficPercentageToMonitor; }
145 inline bool TrafficPercentageToMonitorHasBeenSet() const { return m_trafficPercentageToMonitorHasBeenSet; }
146 inline void SetTrafficPercentageToMonitor(int value) { m_trafficPercentageToMonitorHasBeenSet = true; m_trafficPercentageToMonitor = value; }
149
151
162 inline const HealthEventsConfig& GetHealthEventsConfig() const { return m_healthEventsConfig; }
163 inline bool HealthEventsConfigHasBeenSet() const { return m_healthEventsConfigHasBeenSet; }
164 template<typename HealthEventsConfigT = HealthEventsConfig>
165 void SetHealthEventsConfig(HealthEventsConfigT&& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = std::forward<HealthEventsConfigT>(value); }
166 template<typename HealthEventsConfigT = HealthEventsConfig>
167 CreateMonitorRequest& WithHealthEventsConfig(HealthEventsConfigT&& value) { SetHealthEventsConfig(std::forward<HealthEventsConfigT>(value)); return *this;}
169 private:
170
171 Aws::String m_monitorName;
172 bool m_monitorNameHasBeenSet = false;
173
174 Aws::Vector<Aws::String> m_resources;
175 bool m_resourcesHasBeenSet = false;
176
178 bool m_clientTokenHasBeenSet = true;
179
181 bool m_tagsHasBeenSet = false;
182
183 int m_maxCityNetworksToMonitor{0};
184 bool m_maxCityNetworksToMonitorHasBeenSet = false;
185
186 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
187 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
188
189 int m_trafficPercentageToMonitor{0};
190 bool m_trafficPercentageToMonitorHasBeenSet = false;
191
192 HealthEventsConfig m_healthEventsConfig;
193 bool m_healthEventsConfigHasBeenSet = false;
194 };
195
196} // namespace Model
197} // namespace InternetMonitor
198} // 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