AWS SDK for C++

AWS SDK for C++ Version 1.11.873

Loading...
Searching...
No Matches
ApplicationStatusCheckResponseObject.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/EC2_EXPORTS.h>
12#include <aws/ec2/model/AggregationStatusEnum.h>
13#include <aws/ec2/model/CustomTagKeyValueResponsePair.h>
14#include <aws/ec2/model/HealthCheckPathResponseObject.h>
15#include <aws/ec2/model/IpScopeEnum.h>
16#include <aws/ec2/model/IpVersionEnum.h>
17#include <aws/ec2/model/NetworkProtocolEnum.h>
18#include <aws/ec2/model/Tag.h>
19
20#include <utility>
21
22namespace Aws {
23namespace Utils {
24namespace Xml {
25class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2 {
29namespace Model {
30
37 public:
38 AWS_EC2_API ApplicationStatusCheckResponseObject() = default;
41
42 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
46
49 inline const Aws::String& GetApplicationStatusCheckId() const { return m_applicationStatusCheckId; }
50 inline bool ApplicationStatusCheckIdHasBeenSet() const { return m_applicationStatusCheckIdHasBeenSet; }
51 template <typename ApplicationStatusCheckIdT = Aws::String>
52 void SetApplicationStatusCheckId(ApplicationStatusCheckIdT&& value) {
53 m_applicationStatusCheckIdHasBeenSet = true;
54 m_applicationStatusCheckId = std::forward<ApplicationStatusCheckIdT>(value);
55 }
56 template <typename ApplicationStatusCheckIdT = Aws::String>
58 SetApplicationStatusCheckId(std::forward<ApplicationStatusCheckIdT>(value));
59 return *this;
60 }
62
64
70 inline AggregationStatusEnum GetAggregation() const { return m_aggregation; }
71 inline bool AggregationHasBeenSet() const { return m_aggregationHasBeenSet; }
73 m_aggregationHasBeenSet = true;
74 m_aggregation = value;
75 }
77 SetAggregation(value);
78 return *this;
79 }
81
83
86 inline const Aws::Vector<HealthCheckPathResponseObject>& GetHealthCheckPaths() const { return m_healthCheckPaths; }
87 inline bool HealthCheckPathsHasBeenSet() const { return m_healthCheckPathsHasBeenSet; }
88 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathResponseObject>>
89 void SetHealthCheckPaths(HealthCheckPathsT&& value) {
90 m_healthCheckPathsHasBeenSet = true;
91 m_healthCheckPaths = std::forward<HealthCheckPathsT>(value);
92 }
93 template <typename HealthCheckPathsT = Aws::Vector<HealthCheckPathResponseObject>>
95 SetHealthCheckPaths(std::forward<HealthCheckPathsT>(value));
96 return *this;
97 }
98 template <typename HealthCheckPathsT = HealthCheckPathResponseObject>
100 m_healthCheckPathsHasBeenSet = true;
101 m_healthCheckPaths.emplace_back(std::forward<HealthCheckPathsT>(value));
102 return *this;
103 }
105
107
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
142 inline const Aws::String& GetPath() const { return m_path; }
143 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
144 template <typename PathT = Aws::String>
145 void SetPath(PathT&& value) {
146 m_pathHasBeenSet = true;
147 m_path = std::forward<PathT>(value);
148 }
149 template <typename PathT = Aws::String>
151 SetPath(std::forward<PathT>(value));
152 return *this;
153 }
155
157
161 inline int GetDeviceIndex() const { return m_deviceIndex; }
162 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
163 inline void SetDeviceIndex(int value) {
164 m_deviceIndexHasBeenSet = true;
165 m_deviceIndex = value;
166 }
168 SetDeviceIndex(value);
169 return *this;
170 }
172
174
177 inline IpVersionEnum GetIpVersion() const { return m_ipVersion; }
178 inline bool IpVersionHasBeenSet() const { return m_ipVersionHasBeenSet; }
179 inline void SetIpVersion(IpVersionEnum value) {
180 m_ipVersionHasBeenSet = true;
181 m_ipVersion = value;
182 }
184 SetIpVersion(value);
185 return *this;
186 }
188
190
193 inline IpScopeEnum GetIpScope() const { return m_ipScope; }
194 inline bool IpScopeHasBeenSet() const { return m_ipScopeHasBeenSet; }
195 inline void SetIpScope(IpScopeEnum value) {
196 m_ipScopeHasBeenSet = true;
197 m_ipScope = value;
198 }
200 SetIpScope(value);
201 return *this;
202 }
204
206
209 inline int GetInterval() const { return m_interval; }
210 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
211 inline void SetInterval(int value) {
212 m_intervalHasBeenSet = true;
213 m_interval = value;
214 }
216 SetInterval(value);
217 return *this;
218 }
220
222
226 inline int GetTimeout() const { return m_timeout; }
227 inline bool TimeoutHasBeenSet() const { return m_timeoutHasBeenSet; }
228 inline void SetTimeout(int value) {
229 m_timeoutHasBeenSet = true;
230 m_timeout = value;
231 }
233 SetTimeout(value);
234 return *this;
235 }
237
239
243 inline int GetFailureThreshold() const { return m_failureThreshold; }
244 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
245 inline void SetFailureThreshold(int value) {
246 m_failureThresholdHasBeenSet = true;
247 m_failureThreshold = value;
248 }
250 SetFailureThreshold(value);
251 return *this;
252 }
254
256
260 inline int GetSuccessThreshold() const { return m_successThreshold; }
261 inline bool SuccessThresholdHasBeenSet() const { return m_successThresholdHasBeenSet; }
262 inline void SetSuccessThreshold(int value) {
263 m_successThresholdHasBeenSet = true;
264 m_successThreshold = value;
265 }
267 SetSuccessThreshold(value);
268 return *this;
269 }
271
273
277 inline const Aws::String& GetStatusCodeMatcher() const { return m_statusCodeMatcher; }
278 inline bool StatusCodeMatcherHasBeenSet() const { return m_statusCodeMatcherHasBeenSet; }
279 template <typename StatusCodeMatcherT = Aws::String>
280 void SetStatusCodeMatcher(StatusCodeMatcherT&& value) {
281 m_statusCodeMatcherHasBeenSet = true;
282 m_statusCodeMatcher = std::forward<StatusCodeMatcherT>(value);
283 }
284 template <typename StatusCodeMatcherT = Aws::String>
286 SetStatusCodeMatcher(std::forward<StatusCodeMatcherT>(value));
287 return *this;
288 }
290
292
296 inline int GetInitializationGracePeriodSeconds() const { return m_initializationGracePeriodSeconds; }
297 inline bool InitializationGracePeriodSecondsHasBeenSet() const { return m_initializationGracePeriodSecondsHasBeenSet; }
298 inline void SetInitializationGracePeriodSeconds(int value) {
299 m_initializationGracePeriodSecondsHasBeenSet = true;
300 m_initializationGracePeriodSeconds = value;
301 }
304 return *this;
305 }
307
309
312 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
313 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
314 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
315 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
316 m_lastUpdatedAtHasBeenSet = true;
317 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
318 }
319 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
321 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
322 return *this;
323 }
325
327
333 inline const Aws::Vector<CustomTagKeyValueResponsePair>& GetTargetTagAssociations() const { return m_targetTagAssociations; }
334 inline bool TargetTagAssociationsHasBeenSet() const { return m_targetTagAssociationsHasBeenSet; }
335 template <typename TargetTagAssociationsT = Aws::Vector<CustomTagKeyValueResponsePair>>
336 void SetTargetTagAssociations(TargetTagAssociationsT&& value) {
337 m_targetTagAssociationsHasBeenSet = true;
338 m_targetTagAssociations = std::forward<TargetTagAssociationsT>(value);
339 }
340 template <typename TargetTagAssociationsT = Aws::Vector<CustomTagKeyValueResponsePair>>
342 SetTargetTagAssociations(std::forward<TargetTagAssociationsT>(value));
343 return *this;
344 }
345 template <typename TargetTagAssociationsT = CustomTagKeyValueResponsePair>
347 m_targetTagAssociationsHasBeenSet = true;
348 m_targetTagAssociations.emplace_back(std::forward<TargetTagAssociationsT>(value));
349 return *this;
350 }
352
354
357 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
358 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
359 template <typename TagsT = Aws::Vector<Tag>>
360 void SetTags(TagsT&& value) {
361 m_tagsHasBeenSet = true;
362 m_tags = std::forward<TagsT>(value);
363 }
364 template <typename TagsT = Aws::Vector<Tag>>
366 SetTags(std::forward<TagsT>(value));
367 return *this;
368 }
369 template <typename TagsT = Tag>
371 m_tagsHasBeenSet = true;
372 m_tags.emplace_back(std::forward<TagsT>(value));
373 return *this;
374 }
376
378
381 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
382 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
383 template <typename CreationTimeT = Aws::Utils::DateTime>
384 void SetCreationTime(CreationTimeT&& value) {
385 m_creationTimeHasBeenSet = true;
386 m_creationTime = std::forward<CreationTimeT>(value);
387 }
388 template <typename CreationTimeT = Aws::Utils::DateTime>
390 SetCreationTime(std::forward<CreationTimeT>(value));
391 return *this;
392 }
394
396
399 inline const Aws::Utils::DateTime& GetModifyTime() const { return m_modifyTime; }
400 inline bool ModifyTimeHasBeenSet() const { return m_modifyTimeHasBeenSet; }
401 template <typename ModifyTimeT = Aws::Utils::DateTime>
402 void SetModifyTime(ModifyTimeT&& value) {
403 m_modifyTimeHasBeenSet = true;
404 m_modifyTime = std::forward<ModifyTimeT>(value);
405 }
406 template <typename ModifyTimeT = Aws::Utils::DateTime>
408 SetModifyTime(std::forward<ModifyTimeT>(value));
409 return *this;
410 }
412
414
417 inline const Aws::Utils::DateTime& GetDeletionTime() const { return m_deletionTime; }
418 inline bool DeletionTimeHasBeenSet() const { return m_deletionTimeHasBeenSet; }
419 template <typename DeletionTimeT = Aws::Utils::DateTime>
420 void SetDeletionTime(DeletionTimeT&& value) {
421 m_deletionTimeHasBeenSet = true;
422 m_deletionTime = std::forward<DeletionTimeT>(value);
423 }
424 template <typename DeletionTimeT = Aws::Utils::DateTime>
426 SetDeletionTime(std::forward<DeletionTimeT>(value));
427 return *this;
428 }
430 private:
431 Aws::String m_applicationStatusCheckId;
432
434
436
438
439 int m_port{0};
440
441 Aws::String m_path;
442
443 int m_deviceIndex{0};
444
446
448
449 int m_interval{0};
450
451 int m_timeout{0};
452
453 int m_failureThreshold{0};
454
455 int m_successThreshold{0};
456
457 Aws::String m_statusCodeMatcher;
458
459 int m_initializationGracePeriodSeconds{0};
460
461 Aws::Utils::DateTime m_lastUpdatedAt{};
462
463 Aws::Vector<CustomTagKeyValueResponsePair> m_targetTagAssociations;
464
465 Aws::Vector<Tag> m_tags;
466
467 Aws::Utils::DateTime m_creationTime{};
468
469 Aws::Utils::DateTime m_modifyTime{};
470
471 Aws::Utils::DateTime m_deletionTime{};
472 bool m_applicationStatusCheckIdHasBeenSet = false;
473 bool m_aggregationHasBeenSet = false;
474 bool m_healthCheckPathsHasBeenSet = false;
475 bool m_protocolHasBeenSet = false;
476 bool m_portHasBeenSet = false;
477 bool m_pathHasBeenSet = false;
478 bool m_deviceIndexHasBeenSet = false;
479 bool m_ipVersionHasBeenSet = false;
480 bool m_ipScopeHasBeenSet = false;
481 bool m_intervalHasBeenSet = false;
482 bool m_timeoutHasBeenSet = false;
483 bool m_failureThresholdHasBeenSet = false;
484 bool m_successThresholdHasBeenSet = false;
485 bool m_statusCodeMatcherHasBeenSet = false;
486 bool m_initializationGracePeriodSecondsHasBeenSet = false;
487 bool m_lastUpdatedAtHasBeenSet = false;
488 bool m_targetTagAssociationsHasBeenSet = false;
489 bool m_tagsHasBeenSet = false;
490 bool m_creationTimeHasBeenSet = false;
491 bool m_modifyTimeHasBeenSet = false;
492 bool m_deletionTimeHasBeenSet = false;
493};
494
495} // namespace Model
496} // namespace EC2
497} // namespace Aws
ApplicationStatusCheckResponseObject & WithSuccessThreshold(int value)
ApplicationStatusCheckResponseObject & WithCreationTime(CreationTimeT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ApplicationStatusCheckResponseObject & WithHealthCheckPaths(HealthCheckPathsT &&value)
ApplicationStatusCheckResponseObject & WithTimeout(int value)
ApplicationStatusCheckResponseObject & WithTags(TagsT &&value)
ApplicationStatusCheckResponseObject & WithDeletionTime(DeletionTimeT &&value)
ApplicationStatusCheckResponseObject & AddHealthCheckPaths(HealthCheckPathsT &&value)
ApplicationStatusCheckResponseObject & WithStatusCodeMatcher(StatusCodeMatcherT &&value)
ApplicationStatusCheckResponseObject & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_EC2_API ApplicationStatusCheckResponseObject & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationStatusCheckResponseObject & WithIpVersion(IpVersionEnum value)
ApplicationStatusCheckResponseObject & WithFailureThreshold(int value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ApplicationStatusCheckResponseObject & WithPath(PathT &&value)
ApplicationStatusCheckResponseObject & AddTags(TagsT &&value)
ApplicationStatusCheckResponseObject & WithInterval(int value)
ApplicationStatusCheckResponseObject & AddTargetTagAssociations(TargetTagAssociationsT &&value)
ApplicationStatusCheckResponseObject & WithIpScope(IpScopeEnum value)
ApplicationStatusCheckResponseObject & WithProtocol(NetworkProtocolEnum value)
ApplicationStatusCheckResponseObject & WithModifyTime(ModifyTimeT &&value)
const Aws::Vector< CustomTagKeyValueResponsePair > & GetTargetTagAssociations() const
ApplicationStatusCheckResponseObject & WithDeviceIndex(int value)
const Aws::Vector< HealthCheckPathResponseObject > & GetHealthCheckPaths() const
ApplicationStatusCheckResponseObject & WithApplicationStatusCheckId(ApplicationStatusCheckIdT &&value)
ApplicationStatusCheckResponseObject & WithInitializationGracePeriodSeconds(int value)
AWS_EC2_API ApplicationStatusCheckResponseObject(const Aws::Utils::Xml::XmlNode &xmlNode)
ApplicationStatusCheckResponseObject & WithTargetTagAssociations(TargetTagAssociationsT &&value)
ApplicationStatusCheckResponseObject & WithAggregation(AggregationStatusEnum value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream