AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMonitorRequest.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/internetmonitor/model/MonitorConfigState.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 UpdateMonitorRequest();
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 "UpdateMonitor"; }
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 UpdateMonitorRequest& WithMonitorName(const Aws::String& value) { SetMonitorName(value); return *this;}
50 inline UpdateMonitorRequest& WithMonitorName(Aws::String&& value) { SetMonitorName(std::move(value)); return *this;}
51 inline UpdateMonitorRequest& WithMonitorName(const char* value) { SetMonitorName(value); return *this;}
53
55
65 inline const Aws::Vector<Aws::String>& GetResourcesToAdd() const{ return m_resourcesToAdd; }
66 inline bool ResourcesToAddHasBeenSet() const { return m_resourcesToAddHasBeenSet; }
67 inline void SetResourcesToAdd(const Aws::Vector<Aws::String>& value) { m_resourcesToAddHasBeenSet = true; m_resourcesToAdd = value; }
68 inline void SetResourcesToAdd(Aws::Vector<Aws::String>&& value) { m_resourcesToAddHasBeenSet = true; m_resourcesToAdd = std::move(value); }
70 inline UpdateMonitorRequest& WithResourcesToAdd(Aws::Vector<Aws::String>&& value) { SetResourcesToAdd(std::move(value)); return *this;}
71 inline UpdateMonitorRequest& AddResourcesToAdd(const Aws::String& value) { m_resourcesToAddHasBeenSet = true; m_resourcesToAdd.push_back(value); return *this; }
72 inline UpdateMonitorRequest& AddResourcesToAdd(Aws::String&& value) { m_resourcesToAddHasBeenSet = true; m_resourcesToAdd.push_back(std::move(value)); return *this; }
73 inline UpdateMonitorRequest& AddResourcesToAdd(const char* value) { m_resourcesToAddHasBeenSet = true; m_resourcesToAdd.push_back(value); return *this; }
75
77
81 inline const Aws::Vector<Aws::String>& GetResourcesToRemove() const{ return m_resourcesToRemove; }
82 inline bool ResourcesToRemoveHasBeenSet() const { return m_resourcesToRemoveHasBeenSet; }
83 inline void SetResourcesToRemove(const Aws::Vector<Aws::String>& value) { m_resourcesToRemoveHasBeenSet = true; m_resourcesToRemove = value; }
84 inline void SetResourcesToRemove(Aws::Vector<Aws::String>&& value) { m_resourcesToRemoveHasBeenSet = true; m_resourcesToRemove = std::move(value); }
87 inline UpdateMonitorRequest& AddResourcesToRemove(const Aws::String& value) { m_resourcesToRemoveHasBeenSet = true; m_resourcesToRemove.push_back(value); return *this; }
88 inline UpdateMonitorRequest& AddResourcesToRemove(Aws::String&& value) { m_resourcesToRemoveHasBeenSet = true; m_resourcesToRemove.push_back(std::move(value)); return *this; }
89 inline UpdateMonitorRequest& AddResourcesToRemove(const char* value) { m_resourcesToRemoveHasBeenSet = true; m_resourcesToRemove.push_back(value); return *this; }
91
93
99 inline const MonitorConfigState& GetStatus() const{ return m_status; }
100 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
101 inline void SetStatus(const MonitorConfigState& value) { m_statusHasBeenSet = true; m_status = value; }
102 inline void SetStatus(MonitorConfigState&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
103 inline UpdateMonitorRequest& WithStatus(const MonitorConfigState& value) { SetStatus(value); return *this;}
104 inline UpdateMonitorRequest& WithStatus(MonitorConfigState&& value) { SetStatus(std::move(value)); return *this;}
106
108
113 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
116 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
117 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
118 inline UpdateMonitorRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
119 inline UpdateMonitorRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
120 inline UpdateMonitorRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
122
124
131 inline int GetMaxCityNetworksToMonitor() const{ return m_maxCityNetworksToMonitor; }
132 inline bool MaxCityNetworksToMonitorHasBeenSet() const { return m_maxCityNetworksToMonitorHasBeenSet; }
133 inline void SetMaxCityNetworksToMonitor(int value) { m_maxCityNetworksToMonitorHasBeenSet = true; m_maxCityNetworksToMonitor = value; }
136
138
143 inline const InternetMeasurementsLogDelivery& GetInternetMeasurementsLogDelivery() const{ return m_internetMeasurementsLogDelivery; }
144 inline bool InternetMeasurementsLogDeliveryHasBeenSet() const { return m_internetMeasurementsLogDeliveryHasBeenSet; }
145 inline void SetInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = value; }
146 inline void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery&& value) { m_internetMeasurementsLogDeliveryHasBeenSet = true; m_internetMeasurementsLogDelivery = std::move(value); }
150
152
161 inline int GetTrafficPercentageToMonitor() const{ return m_trafficPercentageToMonitor; }
162 inline bool TrafficPercentageToMonitorHasBeenSet() const { return m_trafficPercentageToMonitorHasBeenSet; }
163 inline void SetTrafficPercentageToMonitor(int value) { m_trafficPercentageToMonitorHasBeenSet = true; m_trafficPercentageToMonitor = value; }
166
168
177 inline const HealthEventsConfig& GetHealthEventsConfig() const{ return m_healthEventsConfig; }
178 inline bool HealthEventsConfigHasBeenSet() const { return m_healthEventsConfigHasBeenSet; }
179 inline void SetHealthEventsConfig(const HealthEventsConfig& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = value; }
180 inline void SetHealthEventsConfig(HealthEventsConfig&& value) { m_healthEventsConfigHasBeenSet = true; m_healthEventsConfig = std::move(value); }
182 inline UpdateMonitorRequest& WithHealthEventsConfig(HealthEventsConfig&& value) { SetHealthEventsConfig(std::move(value)); return *this;}
184 private:
185
186 Aws::String m_monitorName;
187 bool m_monitorNameHasBeenSet = false;
188
189 Aws::Vector<Aws::String> m_resourcesToAdd;
190 bool m_resourcesToAddHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_resourcesToRemove;
193 bool m_resourcesToRemoveHasBeenSet = false;
194
195 MonitorConfigState m_status;
196 bool m_statusHasBeenSet = false;
197
198 Aws::String m_clientToken;
199 bool m_clientTokenHasBeenSet = false;
200
201 int m_maxCityNetworksToMonitor;
202 bool m_maxCityNetworksToMonitorHasBeenSet = false;
203
204 InternetMeasurementsLogDelivery m_internetMeasurementsLogDelivery;
205 bool m_internetMeasurementsLogDeliveryHasBeenSet = false;
206
207 int m_trafficPercentageToMonitor;
208 bool m_trafficPercentageToMonitorHasBeenSet = false;
209
210 HealthEventsConfig m_healthEventsConfig;
211 bool m_healthEventsConfigHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace InternetMonitor
216} // namespace Aws
UpdateMonitorRequest & WithStatus(const MonitorConfigState &value)
virtual const char * GetServiceRequestName() const override
UpdateMonitorRequest & WithInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery &&value)
void SetHealthEventsConfig(const HealthEventsConfig &value)
UpdateMonitorRequest & WithClientToken(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourcesToRemove() const
UpdateMonitorRequest & WithMonitorName(const char *value)
UpdateMonitorRequest & WithClientToken(const Aws::String &value)
UpdateMonitorRequest & WithStatus(MonitorConfigState &&value)
UpdateMonitorRequest & WithResourcesToAdd(Aws::Vector< Aws::String > &&value)
UpdateMonitorRequest & AddResourcesToAdd(const char *value)
void SetResourcesToAdd(const Aws::Vector< Aws::String > &value)
UpdateMonitorRequest & AddResourcesToRemove(const char *value)
UpdateMonitorRequest & AddResourcesToAdd(Aws::String &&value)
UpdateMonitorRequest & WithMaxCityNetworksToMonitor(int value)
UpdateMonitorRequest & AddResourcesToRemove(const Aws::String &value)
void SetStatus(const MonitorConfigState &value)
void SetInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery &value)
UpdateMonitorRequest & WithResourcesToAdd(const Aws::Vector< Aws::String > &value)
UpdateMonitorRequest & WithMonitorName(const Aws::String &value)
UpdateMonitorRequest & WithTrafficPercentageToMonitor(int value)
UpdateMonitorRequest & WithResourcesToRemove(const Aws::Vector< Aws::String > &value)
UpdateMonitorRequest & AddResourcesToRemove(Aws::String &&value)
const Aws::Vector< Aws::String > & GetResourcesToAdd() const
AWS_INTERNETMONITOR_API Aws::String SerializePayload() const override
UpdateMonitorRequest & WithHealthEventsConfig(const HealthEventsConfig &value)
const HealthEventsConfig & GetHealthEventsConfig() const
void SetResourcesToAdd(Aws::Vector< Aws::String > &&value)
UpdateMonitorRequest & WithHealthEventsConfig(HealthEventsConfig &&value)
void SetResourcesToRemove(Aws::Vector< Aws::String > &&value)
const InternetMeasurementsLogDelivery & GetInternetMeasurementsLogDelivery() const
void SetInternetMeasurementsLogDelivery(InternetMeasurementsLogDelivery &&value)
UpdateMonitorRequest & WithMonitorName(Aws::String &&value)
UpdateMonitorRequest & WithInternetMeasurementsLogDelivery(const InternetMeasurementsLogDelivery &value)
void SetResourcesToRemove(const Aws::Vector< Aws::String > &value)
UpdateMonitorRequest & AddResourcesToAdd(const Aws::String &value)
UpdateMonitorRequest & WithClientToken(const char *value)
UpdateMonitorRequest & WithResourcesToRemove(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector