AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53/Route53_EXPORTS.h>
10#include <aws/route53/model/AlarmIdentifier.h>
11#include <aws/route53/model/HealthCheckRegion.h>
12#include <aws/route53/model/HealthCheckType.h>
13#include <aws/route53/model/InsufficientDataHealthStatus.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Route53 {
24namespace Model {
25
33 public:
34 AWS_ROUTE53_API HealthCheckConfig() = default;
35 AWS_ROUTE53_API HealthCheckConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ROUTE53_API HealthCheckConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
41
73 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
74 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
75 template <typename IPAddressT = Aws::String>
76 void SetIPAddress(IPAddressT&& value) {
77 m_iPAddressHasBeenSet = true;
78 m_iPAddress = std::forward<IPAddressT>(value);
79 }
80 template <typename IPAddressT = Aws::String>
81 HealthCheckConfig& WithIPAddress(IPAddressT&& value) {
82 SetIPAddress(std::forward<IPAddressT>(value));
83 return *this;
84 }
86
88
94 inline int GetPort() const { return m_port; }
95 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
96 inline void SetPort(int value) {
97 m_portHasBeenSet = true;
98 m_port = value;
99 }
100 inline HealthCheckConfig& WithPort(int value) {
101 SetPort(value);
102 return *this;
103 }
105
107
147 inline HealthCheckType GetType() const { return m_type; }
148 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
149 inline void SetType(HealthCheckType value) {
150 m_typeHasBeenSet = true;
151 m_type = value;
152 }
154 SetType(value);
155 return *this;
156 }
158
160
168 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
169 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
170 template <typename ResourcePathT = Aws::String>
171 void SetResourcePath(ResourcePathT&& value) {
172 m_resourcePathHasBeenSet = true;
173 m_resourcePath = std::forward<ResourcePathT>(value);
174 }
175 template <typename ResourcePathT = Aws::String>
176 HealthCheckConfig& WithResourcePath(ResourcePathT&& value) {
177 SetResourcePath(std::forward<ResourcePathT>(value));
178 return *this;
179 }
181
183
234 inline const Aws::String& GetFullyQualifiedDomainName() const { return m_fullyQualifiedDomainName; }
235 inline bool FullyQualifiedDomainNameHasBeenSet() const { return m_fullyQualifiedDomainNameHasBeenSet; }
236 template <typename FullyQualifiedDomainNameT = Aws::String>
237 void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) {
238 m_fullyQualifiedDomainNameHasBeenSet = true;
239 m_fullyQualifiedDomainName = std::forward<FullyQualifiedDomainNameT>(value);
240 }
241 template <typename FullyQualifiedDomainNameT = Aws::String>
242 HealthCheckConfig& WithFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) {
243 SetFullyQualifiedDomainName(std::forward<FullyQualifiedDomainNameT>(value));
244 return *this;
245 }
247
249
257 inline const Aws::String& GetSearchString() const { return m_searchString; }
258 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
259 template <typename SearchStringT = Aws::String>
260 void SetSearchString(SearchStringT&& value) {
261 m_searchStringHasBeenSet = true;
262 m_searchString = std::forward<SearchStringT>(value);
263 }
264 template <typename SearchStringT = Aws::String>
265 HealthCheckConfig& WithSearchString(SearchStringT&& value) {
266 SetSearchString(std::forward<SearchStringT>(value));
267 return *this;
268 }
270
272
282 inline int GetRequestInterval() const { return m_requestInterval; }
283 inline bool RequestIntervalHasBeenSet() const { return m_requestIntervalHasBeenSet; }
284 inline void SetRequestInterval(int value) {
285 m_requestIntervalHasBeenSet = true;
286 m_requestInterval = value;
287 }
289 SetRequestInterval(value);
290 return *this;
291 }
293
295
306 inline int GetFailureThreshold() const { return m_failureThreshold; }
307 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
308 inline void SetFailureThreshold(int value) {
309 m_failureThresholdHasBeenSet = true;
310 m_failureThreshold = value;
311 }
313 SetFailureThreshold(value);
314 return *this;
315 }
317
319
328 inline bool GetMeasureLatency() const { return m_measureLatency; }
329 inline bool MeasureLatencyHasBeenSet() const { return m_measureLatencyHasBeenSet; }
330 inline void SetMeasureLatency(bool value) {
331 m_measureLatencyHasBeenSet = true;
332 m_measureLatency = value;
333 }
335 SetMeasureLatency(value);
336 return *this;
337 }
339
341
346 inline bool GetInverted() const { return m_inverted; }
347 inline bool InvertedHasBeenSet() const { return m_invertedHasBeenSet; }
348 inline void SetInverted(bool value) {
349 m_invertedHasBeenSet = true;
350 m_inverted = value;
351 }
352 inline HealthCheckConfig& WithInverted(bool value) {
353 SetInverted(value);
354 return *this;
355 }
357
359
376 inline bool GetDisabled() const { return m_disabled; }
377 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
378 inline void SetDisabled(bool value) {
379 m_disabledHasBeenSet = true;
380 m_disabled = value;
381 }
382 inline HealthCheckConfig& WithDisabled(bool value) {
383 SetDisabled(value);
384 return *this;
385 }
387
389
401 inline int GetHealthThreshold() const { return m_healthThreshold; }
402 inline bool HealthThresholdHasBeenSet() const { return m_healthThresholdHasBeenSet; }
403 inline void SetHealthThreshold(int value) {
404 m_healthThresholdHasBeenSet = true;
405 m_healthThreshold = value;
406 }
408 SetHealthThreshold(value);
409 return *this;
410 }
412
414
419 inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const { return m_childHealthChecks; }
420 inline bool ChildHealthChecksHasBeenSet() const { return m_childHealthChecksHasBeenSet; }
421 template <typename ChildHealthChecksT = Aws::Vector<Aws::String>>
422 void SetChildHealthChecks(ChildHealthChecksT&& value) {
423 m_childHealthChecksHasBeenSet = true;
424 m_childHealthChecks = std::forward<ChildHealthChecksT>(value);
425 }
426 template <typename ChildHealthChecksT = Aws::Vector<Aws::String>>
427 HealthCheckConfig& WithChildHealthChecks(ChildHealthChecksT&& value) {
428 SetChildHealthChecks(std::forward<ChildHealthChecksT>(value));
429 return *this;
430 }
431 template <typename ChildHealthChecksT = Aws::String>
432 HealthCheckConfig& AddChildHealthChecks(ChildHealthChecksT&& value) {
433 m_childHealthChecksHasBeenSet = true;
434 m_childHealthChecks.emplace_back(std::forward<ChildHealthChecksT>(value));
435 return *this;
436 }
438
440
462 inline bool GetEnableSNI() const { return m_enableSNI; }
463 inline bool EnableSNIHasBeenSet() const { return m_enableSNIHasBeenSet; }
464 inline void SetEnableSNI(bool value) {
465 m_enableSNIHasBeenSet = true;
466 m_enableSNI = value;
467 }
468 inline HealthCheckConfig& WithEnableSNI(bool value) {
469 SetEnableSNI(value);
470 return *this;
471 }
473
475
486 inline const Aws::Vector<HealthCheckRegion>& GetRegions() const { return m_regions; }
487 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
488 template <typename RegionsT = Aws::Vector<HealthCheckRegion>>
489 void SetRegions(RegionsT&& value) {
490 m_regionsHasBeenSet = true;
491 m_regions = std::forward<RegionsT>(value);
492 }
493 template <typename RegionsT = Aws::Vector<HealthCheckRegion>>
494 HealthCheckConfig& WithRegions(RegionsT&& value) {
495 SetRegions(std::forward<RegionsT>(value));
496 return *this;
497 }
499 m_regionsHasBeenSet = true;
500 m_regions.push_back(value);
501 return *this;
502 }
504
506
511 inline const AlarmIdentifier& GetAlarmIdentifier() const { return m_alarmIdentifier; }
512 inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; }
513 template <typename AlarmIdentifierT = AlarmIdentifier>
514 void SetAlarmIdentifier(AlarmIdentifierT&& value) {
515 m_alarmIdentifierHasBeenSet = true;
516 m_alarmIdentifier = std::forward<AlarmIdentifierT>(value);
517 }
518 template <typename AlarmIdentifierT = AlarmIdentifier>
519 HealthCheckConfig& WithAlarmIdentifier(AlarmIdentifierT&& value) {
520 SetAlarmIdentifier(std::forward<AlarmIdentifierT>(value));
521 return *this;
522 }
524
526
537 inline InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const { return m_insufficientDataHealthStatus; }
538 inline bool InsufficientDataHealthStatusHasBeenSet() const { return m_insufficientDataHealthStatusHasBeenSet; }
540 m_insufficientDataHealthStatusHasBeenSet = true;
541 m_insufficientDataHealthStatus = value;
542 }
545 return *this;
546 }
548
550
557 inline const Aws::String& GetRoutingControlArn() const { return m_routingControlArn; }
558 inline bool RoutingControlArnHasBeenSet() const { return m_routingControlArnHasBeenSet; }
559 template <typename RoutingControlArnT = Aws::String>
560 void SetRoutingControlArn(RoutingControlArnT&& value) {
561 m_routingControlArnHasBeenSet = true;
562 m_routingControlArn = std::forward<RoutingControlArnT>(value);
563 }
564 template <typename RoutingControlArnT = Aws::String>
565 HealthCheckConfig& WithRoutingControlArn(RoutingControlArnT&& value) {
566 SetRoutingControlArn(std::forward<RoutingControlArnT>(value));
567 return *this;
568 }
570 private:
571 Aws::String m_iPAddress;
572
573 int m_port{0};
574
576
577 Aws::String m_resourcePath;
578
579 Aws::String m_fullyQualifiedDomainName;
580
581 Aws::String m_searchString;
582
583 int m_requestInterval{0};
584
585 int m_failureThreshold{0};
586
587 bool m_measureLatency{false};
588
589 bool m_inverted{false};
590
591 bool m_disabled{false};
592
593 int m_healthThreshold{0};
594
595 Aws::Vector<Aws::String> m_childHealthChecks;
596
597 bool m_enableSNI{false};
598
600
601 AlarmIdentifier m_alarmIdentifier;
602
604
605 Aws::String m_routingControlArn;
606 bool m_iPAddressHasBeenSet = false;
607 bool m_portHasBeenSet = false;
608 bool m_typeHasBeenSet = false;
609 bool m_resourcePathHasBeenSet = false;
610 bool m_fullyQualifiedDomainNameHasBeenSet = false;
611 bool m_searchStringHasBeenSet = false;
612 bool m_requestIntervalHasBeenSet = false;
613 bool m_failureThresholdHasBeenSet = false;
614 bool m_measureLatencyHasBeenSet = false;
615 bool m_invertedHasBeenSet = false;
616 bool m_disabledHasBeenSet = false;
617 bool m_healthThresholdHasBeenSet = false;
618 bool m_childHealthChecksHasBeenSet = false;
619 bool m_enableSNIHasBeenSet = false;
620 bool m_regionsHasBeenSet = false;
621 bool m_alarmIdentifierHasBeenSet = false;
622 bool m_insufficientDataHealthStatusHasBeenSet = false;
623 bool m_routingControlArnHasBeenSet = false;
624};
625
626} // namespace Model
627} // namespace Route53
628} // namespace Aws
AWS_ROUTE53_API HealthCheckConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRoutingControlArn(RoutingControlArnT &&value)
const Aws::Vector< HealthCheckRegion > & GetRegions() const
HealthCheckConfig & AddChildHealthChecks(ChildHealthChecksT &&value)
const Aws::Vector< Aws::String > & GetChildHealthChecks() const
AWS_ROUTE53_API HealthCheckConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
HealthCheckConfig & WithIPAddress(IPAddressT &&value)
HealthCheckConfig & WithRegions(RegionsT &&value)
HealthCheckConfig & WithInverted(bool value)
HealthCheckConfig & WithRequestInterval(int value)
HealthCheckConfig & WithFailureThreshold(int value)
HealthCheckConfig & WithHealthThreshold(int value)
void SetAlarmIdentifier(AlarmIdentifierT &&value)
HealthCheckConfig & WithAlarmIdentifier(AlarmIdentifierT &&value)
InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const
HealthCheckConfig & WithType(HealthCheckType value)
HealthCheckConfig & WithDisabled(bool value)
HealthCheckConfig & WithResourcePath(ResourcePathT &&value)
HealthCheckConfig & WithSearchString(SearchStringT &&value)
void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus value)
HealthCheckConfig & WithFullyQualifiedDomainName(FullyQualifiedDomainNameT &&value)
HealthCheckConfig & WithMeasureLatency(bool value)
const AlarmIdentifier & GetAlarmIdentifier() const
void SetChildHealthChecks(ChildHealthChecksT &&value)
const Aws::String & GetSearchString() const
const Aws::String & GetResourcePath() const
HealthCheckConfig & WithInsufficientDataHealthStatus(InsufficientDataHealthStatus value)
HealthCheckConfig & WithPort(int value)
const Aws::String & GetRoutingControlArn() const
HealthCheckConfig & WithRoutingControlArn(RoutingControlArnT &&value)
void SetSearchString(SearchStringT &&value)
AWS_ROUTE53_API HealthCheckConfig()=default
const Aws::String & GetFullyQualifiedDomainName() const
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetIPAddress() const
void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT &&value)
void SetResourcePath(ResourcePathT &&value)
HealthCheckConfig & WithChildHealthChecks(ChildHealthChecksT &&value)
HealthCheckConfig & WithEnableSNI(bool value)
HealthCheckConfig & AddRegions(HealthCheckRegion value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector