AWS SDK for C++

AWS SDK for C++ Version 1.11.862

Loading...
Searching...
No Matches
CreateApplicationStatusCheckRequest.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#include <aws/ec2/model/TagSpecification.h>
18
19#include <utility>
20
21namespace Aws {
22namespace EC2 {
23namespace Model {
24
28 public:
29 AWS_EC2_API CreateApplicationStatusCheckRequest() = 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 "CreateApplicationStatusCheck"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
41
42 public:
44
51 inline const Aws::Vector<HealthCheckPathRequestObject>& GetHealthCheckPaths() const { return m_healthCheckPaths; }
52 inline bool HealthCheckPathsHasBeenSet() const { return m_healthCheckPathsHasBeenSet; }
53 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathRequestObject>>
54 void SetHealthCheckPaths(HealthCheckPathsT&& value) {
55 m_healthCheckPathsHasBeenSet = true;
56 m_healthCheckPaths = std::forward<HealthCheckPathsT>(value);
57 }
58 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathRequestObject>>
60 SetHealthCheckPaths(std::forward<HealthCheckPathsT>(value));
61 return *this;
62 }
63 template <typename HealthCheckPathsT = HealthCheckPathRequestObject>
65 m_healthCheckPathsHasBeenSet = true;
66 m_healthCheckPaths.emplace_back(std::forward<HealthCheckPathsT>(value));
67 return *this;
68 }
70
72
80 inline AggregationStatusEnum GetAggregation() const { return m_aggregation; }
81 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
83 m_aggregationHasBeenSet = true;
84 m_aggregation = value;
85 }
87 SetAggregation(value);
88 return *this;
89 }
91
93
97 inline NetworkProtocolEnum GetProtocol() const { return m_protocol; }
98 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
99 inline void SetProtocol(NetworkProtocolEnum value) {
100 m_protocolHasBeenSet = true;
101 m_protocol = value;
102 }
104 SetProtocol(value);
105 return *this;
106 }
108
110
113 inline int GetPort() const { return m_port; }
114 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
115 inline void SetPort(int value) {
116 m_portHasBeenSet = true;
117 m_port = value;
118 }
120 SetPort(value);
121 return *this;
122 }
124
126
130 inline const Aws::String& GetPath() const { return m_path; }
131 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
132 template <typename PathT = Aws::String>
133 void SetPath(PathT&& value) {
134 m_pathHasBeenSet = true;
135 m_path = std::forward<PathT>(value);
136 }
137 template <typename PathT = Aws::String>
139 SetPath(std::forward<PathT>(value));
140 return *this;
141 }
143
145
149 inline int GetDeviceIndex() const { return m_deviceIndex; }
150 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
151 inline void SetDeviceIndex(int value) {
152 m_deviceIndexHasBeenSet = true;
153 m_deviceIndex = value;
154 }
156 SetDeviceIndex(value);
157 return *this;
158 }
160
162
166 inline IpVersionEnum GetIpVersion() const { return m_ipVersion; }
167 inline bool IpVersionHasBeenSet() const { return m_ipVersionHasBeenSet; }
168 inline void SetIpVersion(IpVersionEnum value) {
169 m_ipVersionHasBeenSet = true;
170 m_ipVersion = value;
171 }
173 SetIpVersion(value);
174 return *this;
175 }
177
179
183 inline IpScopeEnum GetIpScope() const { return m_ipScope; }
184 inline bool IpScopeHasBeenSet() const { return m_ipScopeHasBeenSet; }
185 inline void SetIpScope(IpScopeEnum value) {
186 m_ipScopeHasBeenSet = true;
187 m_ipScope = value;
188 }
190 SetIpScope(value);
191 return *this;
192 }
194
196
199 inline int GetInterval() const { return m_interval; }
200 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
201 inline void SetInterval(int value) {
202 m_intervalHasBeenSet = true;
203 m_interval = value;
204 }
206 SetInterval(value);
207 return *this;
208 }
210
212
217 inline int GetTimeout() const { return m_timeout; }
218 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
219 inline void SetTimeout(int value) {
220 m_timeoutHasBeenSet = true;
221 m_timeout = value;
222 }
224 SetTimeout(value);
225 return *this;
226 }
228
230
234 inline int GetFailureThreshold() const { return m_failureThreshold; }
235 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
236 inline void SetFailureThreshold(int value) {
237 m_failureThresholdHasBeenSet = true;
238 m_failureThreshold = value;
239 }
241 SetFailureThreshold(value);
242 return *this;
243 }
245
247
251 inline int GetSuccessThreshold() const { return m_successThreshold; }
252 inline bool SuccessThresholdHasBeenSet() const { return m_successThresholdHasBeenSet; }
253 inline void SetSuccessThreshold(int value) {
254 m_successThresholdHasBeenSet = true;
255 m_successThreshold = value;
256 }
258 SetSuccessThreshold(value);
259 return *this;
260 }
262
264
271 inline const Aws::String& GetStatusCodeMatcher() const { return m_statusCodeMatcher; }
272 inline bool StatusCodeMatcherHasBeenSet() const { return m_statusCodeMatcherHasBeenSet; }
273 template <typename StatusCodeMatcherT = Aws::String>
274 void SetStatusCodeMatcher(StatusCodeMatcherT&& value) {
275 m_statusCodeMatcherHasBeenSet = true;
276 m_statusCodeMatcher = std::forward<StatusCodeMatcherT>(value);
277 }
278 template <typename StatusCodeMatcherT = Aws::String>
280 SetStatusCodeMatcher(std::forward<StatusCodeMatcherT>(value));
281 return *this;
282 }
284
286
290 inline int GetInitializationGracePeriodSeconds() const { return m_initializationGracePeriodSeconds; }
291 inline bool InitializationGracePeriodSecondsHasBeenSet() const { return m_initializationGracePeriodSecondsHasBeenSet; }
292 inline void SetInitializationGracePeriodSeconds(int value) {
293 m_initializationGracePeriodSecondsHasBeenSet = true;
294 m_initializationGracePeriodSeconds = value;
295 }
298 return *this;
299 }
301
303
306 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
307 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
308 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
309 void SetTagSpecifications(TagSpecificationsT&& value) {
310 m_tagSpecificationsHasBeenSet = true;
311 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
312 }
313 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
315 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
316 return *this;
317 }
318 template <typename TagSpecificationsT = TagSpecification>
320 m_tagSpecificationsHasBeenSet = true;
321 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
322 return *this;
323 }
325
327
333 inline const Aws::String& GetClientToken() const { return m_clientToken; }
334 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
335 template <typename ClientTokenT = Aws::String>
336 void SetClientToken(ClientTokenT&& value) {
337 m_clientTokenHasBeenSet = true;
338 m_clientToken = std::forward<ClientTokenT>(value);
339 }
340 template <typename ClientTokenT = Aws::String>
342 SetClientToken(std::forward<ClientTokenT>(value));
343 return *this;
344 }
346
348
354 inline bool GetDryRun() const { return m_dryRun; }
355 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
356 inline void SetDryRun(bool value) {
357 m_dryRunHasBeenSet = true;
358 m_dryRun = value;
359 }
361 SetDryRun(value);
362 return *this;
363 }
365 private:
367
369
371
372 int m_port{0};
373
374 Aws::String m_path;
375
376 int m_deviceIndex{0};
377
379
381
382 int m_interval{0};
383
384 int m_timeout{0};
385
386 int m_failureThreshold{0};
387
388 int m_successThreshold{0};
389
390 Aws::String m_statusCodeMatcher;
391
392 int m_initializationGracePeriodSeconds{0};
393
394 Aws::Vector<TagSpecification> m_tagSpecifications;
395
397
398 bool m_dryRun{false};
399 bool m_healthCheckPathsHasBeenSet = false;
400 bool m_aggregationHasBeenSet = false;
401 bool m_protocolHasBeenSet = false;
402 bool m_portHasBeenSet = false;
403 bool m_pathHasBeenSet = false;
404 bool m_deviceIndexHasBeenSet = false;
405 bool m_ipVersionHasBeenSet = false;
406 bool m_ipScopeHasBeenSet = false;
407 bool m_intervalHasBeenSet = false;
408 bool m_timeoutHasBeenSet = false;
409 bool m_failureThresholdHasBeenSet = false;
410 bool m_successThresholdHasBeenSet = false;
411 bool m_statusCodeMatcherHasBeenSet = false;
412 bool m_initializationGracePeriodSecondsHasBeenSet = false;
413 bool m_tagSpecificationsHasBeenSet = false;
414 bool m_clientTokenHasBeenSet = true;
415 bool m_dryRunHasBeenSet = false;
416};
417
418} // namespace Model
419} // namespace EC2
420} // namespace Aws
CreateApplicationStatusCheckRequest & AddHealthCheckPaths(HealthCheckPathsT &&value)
CreateApplicationStatusCheckRequest & WithDryRun(bool value)
CreateApplicationStatusCheckRequest & WithSuccessThreshold(int value)
CreateApplicationStatusCheckRequest & AddTagSpecifications(TagSpecificationsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateApplicationStatusCheckRequest & WithTimeout(int value)
CreateApplicationStatusCheckRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< HealthCheckPathRequestObject > & GetHealthCheckPaths() const
CreateApplicationStatusCheckRequest & WithTagSpecifications(TagSpecificationsT &&value)
CreateApplicationStatusCheckRequest & WithIpScope(IpScopeEnum value)
CreateApplicationStatusCheckRequest & WithIpVersion(IpVersionEnum value)
CreateApplicationStatusCheckRequest & WithInterval(int value)
CreateApplicationStatusCheckRequest & WithInitializationGracePeriodSeconds(int value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateApplicationStatusCheckRequest & WithAggregation(AggregationStatusEnum value)
CreateApplicationStatusCheckRequest & WithDeviceIndex(int value)
CreateApplicationStatusCheckRequest & WithPath(PathT &&value)
CreateApplicationStatusCheckRequest & WithFailureThreshold(int value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateApplicationStatusCheckRequest & WithHealthCheckPaths(HealthCheckPathsT &&value)
CreateApplicationStatusCheckRequest & WithStatusCodeMatcher(StatusCodeMatcherT &&value)
CreateApplicationStatusCheckRequest & WithProtocol(NetworkProtocolEnum 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