AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
HealthCheckConfig.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53/model/HealthCheckType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53/model/AlarmIdentifier.h>
12#include <aws/route53/model/InsufficientDataHealthStatus.h>
13#include <aws/route53/model/HealthCheckRegion.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace Route53
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_ROUTE53_API HealthCheckConfig() = default;
40 AWS_ROUTE53_API HealthCheckConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_ROUTE53_API HealthCheckConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44
45
47
79 inline const Aws::String& GetIPAddress() const { return m_iPAddress; }
80 inline bool IPAddressHasBeenSet() const { return m_iPAddressHasBeenSet; }
81 template<typename IPAddressT = Aws::String>
82 void SetIPAddress(IPAddressT&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = std::forward<IPAddressT>(value); }
83 template<typename IPAddressT = Aws::String>
84 HealthCheckConfig& WithIPAddress(IPAddressT&& value) { SetIPAddress(std::forward<IPAddressT>(value)); return *this;}
86
88
94 inline int GetPort() const { return m_port; }
95 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
96 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
97 inline HealthCheckConfig& WithPort(int value) { SetPort(value); return *this;}
99
101
141 inline HealthCheckType GetType() const { return m_type; }
142 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
143 inline void SetType(HealthCheckType value) { m_typeHasBeenSet = true; m_type = value; }
144 inline HealthCheckConfig& WithType(HealthCheckType value) { SetType(value); return *this;}
146
148
156 inline const Aws::String& GetResourcePath() const { return m_resourcePath; }
157 inline bool ResourcePathHasBeenSet() const { return m_resourcePathHasBeenSet; }
158 template<typename ResourcePathT = Aws::String>
159 void SetResourcePath(ResourcePathT&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = std::forward<ResourcePathT>(value); }
160 template<typename ResourcePathT = Aws::String>
161 HealthCheckConfig& WithResourcePath(ResourcePathT&& value) { SetResourcePath(std::forward<ResourcePathT>(value)); return *this;}
163
165
216 inline const Aws::String& GetFullyQualifiedDomainName() const { return m_fullyQualifiedDomainName; }
217 inline bool FullyQualifiedDomainNameHasBeenSet() const { return m_fullyQualifiedDomainNameHasBeenSet; }
218 template<typename FullyQualifiedDomainNameT = Aws::String>
219 void SetFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) { m_fullyQualifiedDomainNameHasBeenSet = true; m_fullyQualifiedDomainName = std::forward<FullyQualifiedDomainNameT>(value); }
220 template<typename FullyQualifiedDomainNameT = Aws::String>
221 HealthCheckConfig& WithFullyQualifiedDomainName(FullyQualifiedDomainNameT&& value) { SetFullyQualifiedDomainName(std::forward<FullyQualifiedDomainNameT>(value)); return *this;}
223
225
233 inline const Aws::String& GetSearchString() const { return m_searchString; }
234 inline bool SearchStringHasBeenSet() const { return m_searchStringHasBeenSet; }
235 template<typename SearchStringT = Aws::String>
236 void SetSearchString(SearchStringT&& value) { m_searchStringHasBeenSet = true; m_searchString = std::forward<SearchStringT>(value); }
237 template<typename SearchStringT = Aws::String>
238 HealthCheckConfig& WithSearchString(SearchStringT&& value) { SetSearchString(std::forward<SearchStringT>(value)); return *this;}
240
242
250 inline int GetRequestInterval() const { return m_requestInterval; }
251 inline bool RequestIntervalHasBeenSet() const { return m_requestIntervalHasBeenSet; }
252 inline void SetRequestInterval(int value) { m_requestIntervalHasBeenSet = true; m_requestInterval = value; }
253 inline HealthCheckConfig& WithRequestInterval(int value) { SetRequestInterval(value); return *this;}
255
257
266 inline int GetFailureThreshold() const { return m_failureThreshold; }
267 inline bool FailureThresholdHasBeenSet() const { return m_failureThresholdHasBeenSet; }
268 inline void SetFailureThreshold(int value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
269 inline HealthCheckConfig& WithFailureThreshold(int value) { SetFailureThreshold(value); return *this;}
271
273
280 inline bool GetMeasureLatency() const { return m_measureLatency; }
281 inline bool MeasureLatencyHasBeenSet() const { return m_measureLatencyHasBeenSet; }
282 inline void SetMeasureLatency(bool value) { m_measureLatencyHasBeenSet = true; m_measureLatency = value; }
283 inline HealthCheckConfig& WithMeasureLatency(bool value) { SetMeasureLatency(value); return *this;}
285
287
292 inline bool GetInverted() const { return m_inverted; }
293 inline bool InvertedHasBeenSet() const { return m_invertedHasBeenSet; }
294 inline void SetInverted(bool value) { m_invertedHasBeenSet = true; m_inverted = value; }
295 inline HealthCheckConfig& WithInverted(bool value) { SetInverted(value); return *this;}
297
299
316 inline bool GetDisabled() const { return m_disabled; }
317 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
318 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
319 inline HealthCheckConfig& WithDisabled(bool value) { SetDisabled(value); return *this;}
321
323
335 inline int GetHealthThreshold() const { return m_healthThreshold; }
336 inline bool HealthThresholdHasBeenSet() const { return m_healthThresholdHasBeenSet; }
337 inline void SetHealthThreshold(int value) { m_healthThresholdHasBeenSet = true; m_healthThreshold = value; }
338 inline HealthCheckConfig& WithHealthThreshold(int value) { SetHealthThreshold(value); return *this;}
340
342
347 inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const { return m_childHealthChecks; }
348 inline bool ChildHealthChecksHasBeenSet() const { return m_childHealthChecksHasBeenSet; }
349 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
350 void SetChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks = std::forward<ChildHealthChecksT>(value); }
351 template<typename ChildHealthChecksT = Aws::Vector<Aws::String>>
352 HealthCheckConfig& WithChildHealthChecks(ChildHealthChecksT&& value) { SetChildHealthChecks(std::forward<ChildHealthChecksT>(value)); return *this;}
353 template<typename ChildHealthChecksT = Aws::String>
354 HealthCheckConfig& AddChildHealthChecks(ChildHealthChecksT&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.emplace_back(std::forward<ChildHealthChecksT>(value)); return *this; }
356
358
380 inline bool GetEnableSNI() const { return m_enableSNI; }
381 inline bool EnableSNIHasBeenSet() const { return m_enableSNIHasBeenSet; }
382 inline void SetEnableSNI(bool value) { m_enableSNIHasBeenSet = true; m_enableSNI = value; }
383 inline HealthCheckConfig& WithEnableSNI(bool value) { SetEnableSNI(value); return *this;}
385
387
398 inline const Aws::Vector<HealthCheckRegion>& GetRegions() const { return m_regions; }
399 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
400 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
401 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
402 template<typename RegionsT = Aws::Vector<HealthCheckRegion>>
403 HealthCheckConfig& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
404 inline HealthCheckConfig& AddRegions(HealthCheckRegion value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
406
408
413 inline const AlarmIdentifier& GetAlarmIdentifier() const { return m_alarmIdentifier; }
414 inline bool AlarmIdentifierHasBeenSet() const { return m_alarmIdentifierHasBeenSet; }
415 template<typename AlarmIdentifierT = AlarmIdentifier>
416 void SetAlarmIdentifier(AlarmIdentifierT&& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = std::forward<AlarmIdentifierT>(value); }
417 template<typename AlarmIdentifierT = AlarmIdentifier>
418 HealthCheckConfig& WithAlarmIdentifier(AlarmIdentifierT&& value) { SetAlarmIdentifier(std::forward<AlarmIdentifierT>(value)); return *this;}
420
422
433 inline InsufficientDataHealthStatus GetInsufficientDataHealthStatus() const { return m_insufficientDataHealthStatus; }
434 inline bool InsufficientDataHealthStatusHasBeenSet() const { return m_insufficientDataHealthStatusHasBeenSet; }
435 inline void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus value) { m_insufficientDataHealthStatusHasBeenSet = true; m_insufficientDataHealthStatus = value; }
438
440
447 inline const Aws::String& GetRoutingControlArn() const { return m_routingControlArn; }
448 inline bool RoutingControlArnHasBeenSet() const { return m_routingControlArnHasBeenSet; }
449 template<typename RoutingControlArnT = Aws::String>
450 void SetRoutingControlArn(RoutingControlArnT&& value) { m_routingControlArnHasBeenSet = true; m_routingControlArn = std::forward<RoutingControlArnT>(value); }
451 template<typename RoutingControlArnT = Aws::String>
452 HealthCheckConfig& WithRoutingControlArn(RoutingControlArnT&& value) { SetRoutingControlArn(std::forward<RoutingControlArnT>(value)); return *this;}
454 private:
455
456 Aws::String m_iPAddress;
457 bool m_iPAddressHasBeenSet = false;
458
459 int m_port{0};
460 bool m_portHasBeenSet = false;
461
463 bool m_typeHasBeenSet = false;
464
465 Aws::String m_resourcePath;
466 bool m_resourcePathHasBeenSet = false;
467
468 Aws::String m_fullyQualifiedDomainName;
469 bool m_fullyQualifiedDomainNameHasBeenSet = false;
470
471 Aws::String m_searchString;
472 bool m_searchStringHasBeenSet = false;
473
474 int m_requestInterval{0};
475 bool m_requestIntervalHasBeenSet = false;
476
477 int m_failureThreshold{0};
478 bool m_failureThresholdHasBeenSet = false;
479
480 bool m_measureLatency{false};
481 bool m_measureLatencyHasBeenSet = false;
482
483 bool m_inverted{false};
484 bool m_invertedHasBeenSet = false;
485
486 bool m_disabled{false};
487 bool m_disabledHasBeenSet = false;
488
489 int m_healthThreshold{0};
490 bool m_healthThresholdHasBeenSet = false;
491
492 Aws::Vector<Aws::String> m_childHealthChecks;
493 bool m_childHealthChecksHasBeenSet = false;
494
495 bool m_enableSNI{false};
496 bool m_enableSNIHasBeenSet = false;
497
499 bool m_regionsHasBeenSet = false;
500
501 AlarmIdentifier m_alarmIdentifier;
502 bool m_alarmIdentifierHasBeenSet = false;
503
505 bool m_insufficientDataHealthStatusHasBeenSet = false;
506
507 Aws::String m_routingControlArn;
508 bool m_routingControlArnHasBeenSet = false;
509 };
510
511} // namespace Model
512} // namespace Route53
513} // 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