AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
ModifyApplicationStatusCheckRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/EC2Request.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/AggregationStatusEnum.h>
13#include <aws/ec2/model/HealthCheckPathRequestObject.h>
14#include <aws/ec2/model/IpScopeEnum.h>
15#include <aws/ec2/model/IpVersionEnum.h>
16#include <aws/ec2/model/NetworkProtocolEnum.h>
17
18#include <utility>
19
20namespace Aws {
21namespace EC2 {
22namespace Model {
23
27 public:
28 AWS_EC2_API ModifyApplicationStatusCheckRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyApplicationStatusCheck"; }
35
36 AWS_EC2_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
46 inline const Aws::String& GetApplicationStatusCheckId() const { return m_applicationStatusCheckId; }
47 inline bool ApplicationStatusCheckIdHasBeenSet() const { return m_applicationStatusCheckIdHasBeenSet; }
48 template <typename ApplicationStatusCheckIdT = Aws::String>
49 void SetApplicationStatusCheckId(ApplicationStatusCheckIdT&& value) {
50 m_applicationStatusCheckIdHasBeenSet = true;
51 m_applicationStatusCheckId = std::forward<ApplicationStatusCheckIdT>(value);
52 }
53 template <typename ApplicationStatusCheckIdT = Aws::String>
55 SetApplicationStatusCheckId(std::forward<ApplicationStatusCheckIdT>(value));
56 return *this;
57 }
59
61
69 inline AggregationStatusEnum GetAggregation() const { return m_aggregation; }
70 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
72 m_aggregationHasBeenSet = true;
73 m_aggregation = value;
74 }
76 SetAggregation(value);
77 return *this;
78 }
80
82
85 inline const Aws::Vector<HealthCheckPathRequestObject>& GetHealthCheckPaths() const { return m_healthCheckPaths; }
86 inline bool HealthCheckPathsHasBeenSet() const { return m_healthCheckPathsHasBeenSet; }
87 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathRequestObject>>
88 void SetHealthCheckPaths(HealthCheckPathsT&& value) {
89 m_healthCheckPathsHasBeenSet = true;
90 m_healthCheckPaths = std::forward<HealthCheckPathsT>(value);
91 }
92 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathRequestObject>>
94 SetHealthCheckPaths(std::forward<HealthCheckPathsT>(value));
95 return *this;
96 }
97 template <typename HealthCheckPathsT = HealthCheckPathRequestObject>
99 m_healthCheckPathsHasBeenSet = true;
100 m_healthCheckPaths.emplace_back(std::forward<HealthCheckPathsT>(value));
101 return *this;
102 }
104
106
110 inline NetworkProtocolEnum GetProtocol() const { return m_protocol; }
111 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
112 inline void SetProtocol(NetworkProtocolEnum value) {
113 m_protocolHasBeenSet = true;
114 m_protocol = value;
115 }
117 SetProtocol(value);
118 return *this;
119 }
121
123
126 inline int GetPort() const { return m_port; }
127 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
128 inline void SetPort(int value) {
129 m_portHasBeenSet = true;
130 m_port = value;
131 }
133 SetPort(value);
134 return *this;
135 }
137
139
143 inline const Aws::String& GetPath() const { return m_path; }
144 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
145 template <typename PathT = Aws::String>
146 void SetPath(PathT&& value) {
147 m_pathHasBeenSet = true;
148 m_path = std::forward<PathT>(value);
149 }
150 template <typename PathT = Aws::String>
152 SetPath(std::forward<PathT>(value));
153 return *this;
154 }
156
158
162 inline int GetDeviceIndex() const { return m_deviceIndex; }
163 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
164 inline void SetDeviceIndex(int value) {
165 m_deviceIndexHasBeenSet = true;
166 m_deviceIndex = value;
167 }
169 SetDeviceIndex(value);
170 return *this;
171 }
173
175
179 inline IpVersionEnum GetIpVersion() const { return m_ipVersion; }
180 inline bool IpVersionHasBeenSet() const { return m_ipVersionHasBeenSet; }
181 inline void SetIpVersion(IpVersionEnum value) {
182 m_ipVersionHasBeenSet = true;
183 m_ipVersion = value;
184 }
186 SetIpVersion(value);
187 return *this;
188 }
190
192
196 inline IpScopeEnum GetIpScope() const { return m_ipScope; }
197 inline bool IpScopeHasBeenSet() const { return m_ipScopeHasBeenSet; }
198 inline void SetIpScope(IpScopeEnum value) {
199 m_ipScopeHasBeenSet = true;
200 m_ipScope = value;
201 }
203 SetIpScope(value);
204 return *this;
205 }
207
209
212 inline int GetInterval() const { return m_interval; }
213 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
214 inline void SetInterval(int value) {
215 m_intervalHasBeenSet = true;
216 m_interval = value;
217 }
219 SetInterval(value);
220 return *this;
221 }
223
225
230 inline int GetTimeout() const { return m_timeout; }
231 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
232 inline void SetTimeout(int value) {
233 m_timeoutHasBeenSet = true;
234 m_timeout = value;
235 }
237 SetTimeout(value);
238 return *this;
239 }
241
243
247 inline int GetFailureThreshold() const { return m_failureThreshold; }
248 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
249 inline void SetFailureThreshold(int value) {
250 m_failureThresholdHasBeenSet = true;
251 m_failureThreshold = value;
252 }
254 SetFailureThreshold(value);
255 return *this;
256 }
258
260
264 inline int GetSuccessThreshold() const { return m_successThreshold; }
265 inline bool SuccessThresholdHasBeenSet() const { return m_successThresholdHasBeenSet; }
266 inline void SetSuccessThreshold(int value) {
267 m_successThresholdHasBeenSet = true;
268 m_successThreshold = value;
269 }
271 SetSuccessThreshold(value);
272 return *this;
273 }
275
277
283 inline const Aws::String& GetStatusCodeMatcher() const { return m_statusCodeMatcher; }
284 inline bool StatusCodeMatcherHasBeenSet() const { return m_statusCodeMatcherHasBeenSet; }
285 template <typename StatusCodeMatcherT = Aws::String>
286 void SetStatusCodeMatcher(StatusCodeMatcherT&& value) {
287 m_statusCodeMatcherHasBeenSet = true;
288 m_statusCodeMatcher = std::forward<StatusCodeMatcherT>(value);
289 }
290 template <typename StatusCodeMatcherT = Aws::String>
292 SetStatusCodeMatcher(std::forward<StatusCodeMatcherT>(value));
293 return *this;
294 }
296
298
302 inline int GetInitializationGracePeriodSeconds() const { return m_initializationGracePeriodSeconds; }
303 inline bool InitializationGracePeriodSecondsHasBeenSet() const { return m_initializationGracePeriodSecondsHasBeenSet; }
304 inline void SetInitializationGracePeriodSeconds(int value) {
305 m_initializationGracePeriodSecondsHasBeenSet = true;
306 m_initializationGracePeriodSeconds = value;
307 }
310 return *this;
311 }
313
315
321 inline const Aws::String& GetClientToken() const { return m_clientToken; }
322 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
323 template <typename ClientTokenT = Aws::String>
324 void SetClientToken(ClientTokenT&& value) {
325 m_clientTokenHasBeenSet = true;
326 m_clientToken = std::forward<ClientTokenT>(value);
327 }
328 template <typename ClientTokenT = Aws::String>
330 SetClientToken(std::forward<ClientTokenT>(value));
331 return *this;
332 }
334
336
342 inline bool GetDryRun() const { return m_dryRun; }
343 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
344 inline void SetDryRun(bool value) {
345 m_dryRunHasBeenSet = true;
346 m_dryRun = value;
347 }
349 SetDryRun(value);
350 return *this;
351 }
353 private:
354 Aws::String m_applicationStatusCheckId;
355
357
359
361
362 int m_port{0};
363
364 Aws::String m_path;
365
366 int m_deviceIndex{0};
367
369
371
372 int m_interval{0};
373
374 int m_timeout{0};
375
376 int m_failureThreshold{0};
377
378 int m_successThreshold{0};
379
380 Aws::String m_statusCodeMatcher;
381
382 int m_initializationGracePeriodSeconds{0};
383
385
386 bool m_dryRun{false};
387 bool m_applicationStatusCheckIdHasBeenSet = false;
388 bool m_aggregationHasBeenSet = false;
389 bool m_healthCheckPathsHasBeenSet = false;
390 bool m_protocolHasBeenSet = false;
391 bool m_portHasBeenSet = false;
392 bool m_pathHasBeenSet = false;
393 bool m_deviceIndexHasBeenSet = false;
394 bool m_ipVersionHasBeenSet = false;
395 bool m_ipScopeHasBeenSet = false;
396 bool m_intervalHasBeenSet = false;
397 bool m_timeoutHasBeenSet = false;
398 bool m_failureThresholdHasBeenSet = false;
399 bool m_successThresholdHasBeenSet = false;
400 bool m_statusCodeMatcherHasBeenSet = false;
401 bool m_initializationGracePeriodSecondsHasBeenSet = false;
402 bool m_clientTokenHasBeenSet = true;
403 bool m_dryRunHasBeenSet = false;
404};
405
406} // namespace Model
407} // namespace EC2
408} // namespace Aws
ModifyApplicationStatusCheckRequest & WithAggregation(AggregationStatusEnum value)
ModifyApplicationStatusCheckRequest & WithPath(PathT &&value)
ModifyApplicationStatusCheckRequest & WithClientToken(ClientTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyApplicationStatusCheckRequest & WithStatusCodeMatcher(StatusCodeMatcherT &&value)
ModifyApplicationStatusCheckRequest & WithInitializationGracePeriodSeconds(int value)
ModifyApplicationStatusCheckRequest & WithInterval(int value)
ModifyApplicationStatusCheckRequest & WithIpScope(IpScopeEnum value)
ModifyApplicationStatusCheckRequest & WithDryRun(bool value)
ModifyApplicationStatusCheckRequest & WithIpVersion(IpVersionEnum value)
ModifyApplicationStatusCheckRequest & WithApplicationStatusCheckId(ApplicationStatusCheckIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyApplicationStatusCheckRequest & WithTimeout(int value)
ModifyApplicationStatusCheckRequest & WithDeviceIndex(int value)
const Aws::Vector< HealthCheckPathRequestObject > & GetHealthCheckPaths() const
ModifyApplicationStatusCheckRequest & WithSuccessThreshold(int value)
ModifyApplicationStatusCheckRequest & WithHealthCheckPaths(HealthCheckPathsT &&value)
ModifyApplicationStatusCheckRequest & AddHealthCheckPaths(HealthCheckPathsT &&value)
ModifyApplicationStatusCheckRequest & WithProtocol(NetworkProtocolEnum value)
ModifyApplicationStatusCheckRequest & WithFailureThreshold(int value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector