AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
HealthCheck.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/LinkedService.h>
10#include <aws/route53/model/HealthCheckConfig.h>
11#include <aws/route53/model/CloudWatchAlarmConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace Route53
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_ROUTE53_API HealthCheck() = default;
39 AWS_ROUTE53_API HealthCheck(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_ROUTE53_API HealthCheck& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
43
44
46
52 inline const Aws::String& GetId() const { return m_id; }
53 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
54 template<typename IdT = Aws::String>
55 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
56 template<typename IdT = Aws::String>
57 HealthCheck& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
59
61
64 inline const Aws::String& GetCallerReference() const { return m_callerReference; }
65 inline bool CallerReferenceHasBeenSet() const { return m_callerReferenceHasBeenSet; }
66 template<typename CallerReferenceT = Aws::String>
67 void SetCallerReference(CallerReferenceT&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = std::forward<CallerReferenceT>(value); }
68 template<typename CallerReferenceT = Aws::String>
69 HealthCheck& WithCallerReference(CallerReferenceT&& value) { SetCallerReference(std::forward<CallerReferenceT>(value)); return *this;}
71
73
78 inline const LinkedService& GetLinkedService() const { return m_linkedService; }
79 inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; }
80 template<typename LinkedServiceT = LinkedService>
81 void SetLinkedService(LinkedServiceT&& value) { m_linkedServiceHasBeenSet = true; m_linkedService = std::forward<LinkedServiceT>(value); }
82 template<typename LinkedServiceT = LinkedService>
83 HealthCheck& WithLinkedService(LinkedServiceT&& value) { SetLinkedService(std::forward<LinkedServiceT>(value)); return *this;}
85
87
90 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
91 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
92 template<typename HealthCheckConfigT = HealthCheckConfig>
93 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
94 template<typename HealthCheckConfigT = HealthCheckConfig>
95 HealthCheck& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
97
99
104 inline long long GetHealthCheckVersion() const { return m_healthCheckVersion; }
105 inline bool HealthCheckVersionHasBeenSet() const { return m_healthCheckVersionHasBeenSet; }
106 inline void SetHealthCheckVersion(long long value) { m_healthCheckVersionHasBeenSet = true; m_healthCheckVersion = value; }
107 inline HealthCheck& WithHealthCheckVersion(long long value) { SetHealthCheckVersion(value); return *this;}
109
111
115 inline const CloudWatchAlarmConfiguration& GetCloudWatchAlarmConfiguration() const { return m_cloudWatchAlarmConfiguration; }
116 inline bool CloudWatchAlarmConfigurationHasBeenSet() const { return m_cloudWatchAlarmConfigurationHasBeenSet; }
117 template<typename CloudWatchAlarmConfigurationT = CloudWatchAlarmConfiguration>
118 void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT&& value) { m_cloudWatchAlarmConfigurationHasBeenSet = true; m_cloudWatchAlarmConfiguration = std::forward<CloudWatchAlarmConfigurationT>(value); }
119 template<typename CloudWatchAlarmConfigurationT = CloudWatchAlarmConfiguration>
120 HealthCheck& WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT&& value) { SetCloudWatchAlarmConfiguration(std::forward<CloudWatchAlarmConfigurationT>(value)); return *this;}
122 private:
123
124 Aws::String m_id;
125 bool m_idHasBeenSet = false;
126
127 Aws::String m_callerReference;
128 bool m_callerReferenceHasBeenSet = false;
129
130 LinkedService m_linkedService;
131 bool m_linkedServiceHasBeenSet = false;
132
133 HealthCheckConfig m_healthCheckConfig;
134 bool m_healthCheckConfigHasBeenSet = false;
135
136 long long m_healthCheckVersion{0};
137 bool m_healthCheckVersionHasBeenSet = false;
138
139 CloudWatchAlarmConfiguration m_cloudWatchAlarmConfiguration;
140 bool m_cloudWatchAlarmConfigurationHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Route53
145} // namespace Aws
HealthCheck & WithHealthCheckVersion(long long value)
void SetHealthCheckVersion(long long value)
long long GetHealthCheckVersion() const
const HealthCheckConfig & GetHealthCheckConfig() const
Definition HealthCheck.h:90
HealthCheck & WithCallerReference(CallerReferenceT &&value)
Definition HealthCheck.h:69
void SetLinkedService(LinkedServiceT &&value)
Definition HealthCheck.h:81
const LinkedService & GetLinkedService() const
Definition HealthCheck.h:78
HealthCheck & WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT &&value)
AWS_ROUTE53_API HealthCheck()=default
AWS_ROUTE53_API HealthCheck(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetId() const
Definition HealthCheck.h:52
void SetCallerReference(CallerReferenceT &&value)
Definition HealthCheck.h:67
const Aws::String & GetCallerReference() const
Definition HealthCheck.h:64
void SetHealthCheckConfig(HealthCheckConfigT &&value)
Definition HealthCheck.h:93
HealthCheck & WithHealthCheckConfig(HealthCheckConfigT &&value)
Definition HealthCheck.h:95
AWS_ROUTE53_API HealthCheck & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const CloudWatchAlarmConfiguration & GetCloudWatchAlarmConfiguration() const
HealthCheck & WithLinkedService(LinkedServiceT &&value)
Definition HealthCheck.h:83
void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT &&value)
bool CloudWatchAlarmConfigurationHasBeenSet() const
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
HealthCheck & WithId(IdT &&value)
Definition HealthCheck.h:57
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String