AWS SDK for C++  0.12.9
AWS SDK for C++
HealthCheckConfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlNode;
31 } // namespace Xml
32 } // namespace Utils
33 namespace Route53
34 {
35 namespace Model
36 {
37 
42  {
43  public:
46  HealthCheckConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
47 
48  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49 
53  inline const Aws::String& GetIPAddress() const{ return m_iPAddress; }
54 
58  inline void SetIPAddress(const Aws::String& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
59 
63  inline void SetIPAddress(Aws::String&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
64 
68  inline void SetIPAddress(const char* value) { m_iPAddressHasBeenSet = true; m_iPAddress.assign(value); }
69 
73  inline HealthCheckConfig& WithIPAddress(const Aws::String& value) { SetIPAddress(value); return *this;}
74 
78  inline HealthCheckConfig& WithIPAddress(Aws::String&& value) { SetIPAddress(value); return *this;}
79 
83  inline HealthCheckConfig& WithIPAddress(const char* value) { SetIPAddress(value); return *this;}
84 
90  inline long GetPort() const{ return m_port; }
91 
97  inline void SetPort(long value) { m_portHasBeenSet = true; m_port = value; }
98 
104  inline HealthCheckConfig& WithPort(long value) { SetPort(value); return *this;}
105 
111  inline const HealthCheckType& GetType() const{ return m_type; }
112 
118  inline void SetType(const HealthCheckType& value) { m_typeHasBeenSet = true; m_type = value; }
119 
125  inline void SetType(HealthCheckType&& value) { m_typeHasBeenSet = true; m_type = value; }
126 
132  inline HealthCheckConfig& WithType(const HealthCheckType& value) { SetType(value); return *this;}
133 
139  inline HealthCheckConfig& WithType(HealthCheckType&& value) { SetType(value); return *this;}
140 
146  inline const Aws::String& GetResourcePath() const{ return m_resourcePath; }
147 
153  inline void SetResourcePath(const Aws::String& value) { m_resourcePathHasBeenSet = true; m_resourcePath = value; }
154 
160  inline void SetResourcePath(Aws::String&& value) { m_resourcePathHasBeenSet = true; m_resourcePath = value; }
161 
167  inline void SetResourcePath(const char* value) { m_resourcePathHasBeenSet = true; m_resourcePath.assign(value); }
168 
174  inline HealthCheckConfig& WithResourcePath(const Aws::String& value) { SetResourcePath(value); return *this;}
175 
181  inline HealthCheckConfig& WithResourcePath(Aws::String&& value) { SetResourcePath(value); return *this;}
182 
188  inline HealthCheckConfig& WithResourcePath(const char* value) { SetResourcePath(value); return *this;}
189 
193  inline const Aws::String& GetFullyQualifiedDomainName() const{ return m_fullyQualifiedDomainName; }
194 
198  inline void SetFullyQualifiedDomainName(const Aws::String& value) { m_fullyQualifiedDomainNameHasBeenSet = true; m_fullyQualifiedDomainName = value; }
199 
203  inline void SetFullyQualifiedDomainName(Aws::String&& value) { m_fullyQualifiedDomainNameHasBeenSet = true; m_fullyQualifiedDomainName = value; }
204 
208  inline void SetFullyQualifiedDomainName(const char* value) { m_fullyQualifiedDomainNameHasBeenSet = true; m_fullyQualifiedDomainName.assign(value); }
209 
213  inline HealthCheckConfig& WithFullyQualifiedDomainName(const Aws::String& value) { SetFullyQualifiedDomainName(value); return *this;}
214 
218  inline HealthCheckConfig& WithFullyQualifiedDomainName(Aws::String&& value) { SetFullyQualifiedDomainName(value); return *this;}
219 
223  inline HealthCheckConfig& WithFullyQualifiedDomainName(const char* value) { SetFullyQualifiedDomainName(value); return *this;}
224 
230  inline const Aws::String& GetSearchString() const{ return m_searchString; }
231 
237  inline void SetSearchString(const Aws::String& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
238 
244  inline void SetSearchString(Aws::String&& value) { m_searchStringHasBeenSet = true; m_searchString = value; }
245 
251  inline void SetSearchString(const char* value) { m_searchStringHasBeenSet = true; m_searchString.assign(value); }
252 
258  inline HealthCheckConfig& WithSearchString(const Aws::String& value) { SetSearchString(value); return *this;}
259 
265  inline HealthCheckConfig& WithSearchString(Aws::String&& value) { SetSearchString(value); return *this;}
266 
272  inline HealthCheckConfig& WithSearchString(const char* value) { SetSearchString(value); return *this;}
273 
280  inline long GetRequestInterval() const{ return m_requestInterval; }
281 
288  inline void SetRequestInterval(long value) { m_requestIntervalHasBeenSet = true; m_requestInterval = value; }
289 
296  inline HealthCheckConfig& WithRequestInterval(long value) { SetRequestInterval(value); return *this;}
297 
305  inline long GetFailureThreshold() const{ return m_failureThreshold; }
306 
314  inline void SetFailureThreshold(long value) { m_failureThresholdHasBeenSet = true; m_failureThreshold = value; }
315 
323  inline HealthCheckConfig& WithFailureThreshold(long value) { SetFailureThreshold(value); return *this;}
324 
330  inline bool GetMeasureLatency() const{ return m_measureLatency; }
331 
337  inline void SetMeasureLatency(bool value) { m_measureLatencyHasBeenSet = true; m_measureLatency = value; }
338 
344  inline HealthCheckConfig& WithMeasureLatency(bool value) { SetMeasureLatency(value); return *this;}
345 
352  inline bool GetInverted() const{ return m_inverted; }
353 
360  inline void SetInverted(bool value) { m_invertedHasBeenSet = true; m_inverted = value; }
361 
368  inline HealthCheckConfig& WithInverted(bool value) { SetInverted(value); return *this;}
369 
375  inline long GetHealthThreshold() const{ return m_healthThreshold; }
376 
382  inline void SetHealthThreshold(long value) { m_healthThresholdHasBeenSet = true; m_healthThreshold = value; }
383 
389  inline HealthCheckConfig& WithHealthThreshold(long value) { SetHealthThreshold(value); return *this;}
390 
395  inline const Aws::Vector<Aws::String>& GetChildHealthChecks() const{ return m_childHealthChecks; }
396 
401  inline void SetChildHealthChecks(const Aws::Vector<Aws::String>& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks = value; }
402 
407  inline void SetChildHealthChecks(Aws::Vector<Aws::String>&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks = value; }
408 
413  inline HealthCheckConfig& WithChildHealthChecks(const Aws::Vector<Aws::String>& value) { SetChildHealthChecks(value); return *this;}
414 
419  inline HealthCheckConfig& WithChildHealthChecks(Aws::Vector<Aws::String>&& value) { SetChildHealthChecks(value); return *this;}
420 
425  inline HealthCheckConfig& AddChildHealthChecks(const Aws::String& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.push_back(value); return *this; }
426 
431  inline HealthCheckConfig& AddChildHealthChecks(Aws::String&& value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.push_back(value); return *this; }
432 
437  inline HealthCheckConfig& AddChildHealthChecks(const char* value) { m_childHealthChecksHasBeenSet = true; m_childHealthChecks.push_back(value); return *this; }
438 
447  inline bool GetEnableSNI() const{ return m_enableSNI; }
448 
457  inline void SetEnableSNI(bool value) { m_enableSNIHasBeenSet = true; m_enableSNI = value; }
458 
467  inline HealthCheckConfig& WithEnableSNI(bool value) { SetEnableSNI(value); return *this;}
468 
474  inline const Aws::Vector<HealthCheckRegion>& GetRegions() const{ return m_regions; }
475 
481  inline void SetRegions(const Aws::Vector<HealthCheckRegion>& value) { m_regionsHasBeenSet = true; m_regions = value; }
482 
488  inline void SetRegions(Aws::Vector<HealthCheckRegion>&& value) { m_regionsHasBeenSet = true; m_regions = value; }
489 
495  inline HealthCheckConfig& WithRegions(const Aws::Vector<HealthCheckRegion>& value) { SetRegions(value); return *this;}
496 
502  inline HealthCheckConfig& WithRegions(Aws::Vector<HealthCheckRegion>&& value) { SetRegions(value); return *this;}
503 
509  inline HealthCheckConfig& AddRegions(const HealthCheckRegion& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
510 
516  inline HealthCheckConfig& AddRegions(HealthCheckRegion&& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; }
517 
522  inline const AlarmIdentifier& GetAlarmIdentifier() const{ return m_alarmIdentifier; }
523 
528  inline void SetAlarmIdentifier(const AlarmIdentifier& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = value; }
529 
534  inline void SetAlarmIdentifier(AlarmIdentifier&& value) { m_alarmIdentifierHasBeenSet = true; m_alarmIdentifier = value; }
535 
540  inline HealthCheckConfig& WithAlarmIdentifier(const AlarmIdentifier& value) { SetAlarmIdentifier(value); return *this;}
541 
546  inline HealthCheckConfig& WithAlarmIdentifier(AlarmIdentifier&& value) { SetAlarmIdentifier(value); return *this;}
547 
553  inline const InsufficientDataHealthStatus& GetInsufficientDataHealthStatus() const{ return m_insufficientDataHealthStatus; }
554 
560  inline void SetInsufficientDataHealthStatus(const InsufficientDataHealthStatus& value) { m_insufficientDataHealthStatusHasBeenSet = true; m_insufficientDataHealthStatus = value; }
561 
567  inline void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus&& value) { m_insufficientDataHealthStatusHasBeenSet = true; m_insufficientDataHealthStatus = value; }
568 
574  inline HealthCheckConfig& WithInsufficientDataHealthStatus(const InsufficientDataHealthStatus& value) { SetInsufficientDataHealthStatus(value); return *this;}
575 
581  inline HealthCheckConfig& WithInsufficientDataHealthStatus(InsufficientDataHealthStatus&& value) { SetInsufficientDataHealthStatus(value); return *this;}
582 
583  private:
584  Aws::String m_iPAddress;
585  bool m_iPAddressHasBeenSet;
586  long m_port;
587  bool m_portHasBeenSet;
588  HealthCheckType m_type;
589  bool m_typeHasBeenSet;
590  Aws::String m_resourcePath;
591  bool m_resourcePathHasBeenSet;
592  Aws::String m_fullyQualifiedDomainName;
593  bool m_fullyQualifiedDomainNameHasBeenSet;
594  Aws::String m_searchString;
595  bool m_searchStringHasBeenSet;
596  long m_requestInterval;
597  bool m_requestIntervalHasBeenSet;
598  long m_failureThreshold;
599  bool m_failureThresholdHasBeenSet;
600  bool m_measureLatency;
601  bool m_measureLatencyHasBeenSet;
602  bool m_inverted;
603  bool m_invertedHasBeenSet;
604  long m_healthThreshold;
605  bool m_healthThresholdHasBeenSet;
606  Aws::Vector<Aws::String> m_childHealthChecks;
607  bool m_childHealthChecksHasBeenSet;
608  bool m_enableSNI;
609  bool m_enableSNIHasBeenSet;
611  bool m_regionsHasBeenSet;
612  AlarmIdentifier m_alarmIdentifier;
613  bool m_alarmIdentifierHasBeenSet;
614  InsufficientDataHealthStatus m_insufficientDataHealthStatus;
615  bool m_insufficientDataHealthStatusHasBeenSet;
616  };
617 
618 } // namespace Model
619 } // namespace Route53
620 } // namespace Aws
void SetChildHealthChecks(const Aws::Vector< Aws::String > &value)
void SetType(const HealthCheckType &value)
const AlarmIdentifier & GetAlarmIdentifier() const
HealthCheckConfig & WithAlarmIdentifier(const AlarmIdentifier &value)
HealthCheckConfig & WithSearchString(const Aws::String &value)
HealthCheckConfig & AddChildHealthChecks(Aws::String &&value)
HealthCheckConfig & WithInsufficientDataHealthStatus(InsufficientDataHealthStatus &&value)
HealthCheckConfig & WithResourcePath(Aws::String &&value)
void SetAlarmIdentifier(AlarmIdentifier &&value)
HealthCheckConfig & WithIPAddress(const char *value)
const Aws::String & GetResourcePath() const
HealthCheckConfig & WithHealthThreshold(long value)
HealthCheckConfig & WithType(HealthCheckType &&value)
void SetResourcePath(const Aws::String &value)
void SetIPAddress(Aws::String &&value)
HealthCheckConfig & WithEnableSNI(bool value)
void SetFullyQualifiedDomainName(Aws::String &&value)
HealthCheckConfig & WithResourcePath(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
HealthCheckConfig & WithInsufficientDataHealthStatus(const InsufficientDataHealthStatus &value)
void SetSearchString(Aws::String &&value)
HealthCheckConfig & WithPort(long value)
void SetIPAddress(const Aws::String &value)
void SetType(HealthCheckType &&value)
HealthCheckConfig & WithFailureThreshold(long value)
void SetAlarmIdentifier(const AlarmIdentifier &value)
HealthCheckConfig & WithAlarmIdentifier(AlarmIdentifier &&value)
const Aws::Vector< Aws::String > & GetChildHealthChecks() const
const Aws::String & GetIPAddress() const
HealthCheckConfig & WithIPAddress(Aws::String &&value)
const HealthCheckType & GetType() const
void SetResourcePath(Aws::String &&value)
HealthCheckConfig & WithChildHealthChecks(Aws::Vector< Aws::String > &&value)
HealthCheckConfig & WithResourcePath(const Aws::String &value)
const Aws::String & GetFullyQualifiedDomainName() const
HealthCheckConfig & WithFullyQualifiedDomainName(const char *value)
void SetInsufficientDataHealthStatus(InsufficientDataHealthStatus &&value)
void SetRegions(const Aws::Vector< HealthCheckRegion > &value)
HealthCheckConfig & WithRegions(Aws::Vector< HealthCheckRegion > &&value)
HealthCheckConfig & WithFullyQualifiedDomainName(const Aws::String &value)
HealthCheckConfig & WithSearchString(const char *value)
HealthCheckConfig & WithSearchString(Aws::String &&value)
HealthCheckConfig & AddChildHealthChecks(const Aws::String &value)
const Aws::String & GetSearchString() const
HealthCheckConfig & WithRequestInterval(long value)
const Aws::Vector< HealthCheckRegion > & GetRegions() const
void SetInsufficientDataHealthStatus(const InsufficientDataHealthStatus &value)
void SetFullyQualifiedDomainName(const char *value)
const InsufficientDataHealthStatus & GetInsufficientDataHealthStatus() const
#define AWS_ROUTE53_API
HealthCheckConfig & WithFullyQualifiedDomainName(Aws::String &&value)
HealthCheckConfig & WithIPAddress(const Aws::String &value)
HealthCheckConfig & AddChildHealthChecks(const char *value)
HealthCheckConfig & WithRegions(const Aws::Vector< HealthCheckRegion > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HealthCheckConfig & WithMeasureLatency(bool value)
HealthCheckConfig & AddRegions(HealthCheckRegion &&value)
HealthCheckConfig & WithChildHealthChecks(const Aws::Vector< Aws::String > &value)
HealthCheckConfig & WithType(const HealthCheckType &value)
void SetRegions(Aws::Vector< HealthCheckRegion > &&value)
HealthCheckConfig & WithInverted(bool value)
void SetChildHealthChecks(Aws::Vector< Aws::String > &&value)
JSON (JavaScript Object Notation).
HealthCheckConfig & AddRegions(const HealthCheckRegion &value)
void SetSearchString(const Aws::String &value)
void SetFullyQualifiedDomainName(const Aws::String &value)