AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53_EXPORTS.h>
9#include <aws/route53/model/CloudWatchAlarmConfiguration.h>
10#include <aws/route53/model/HealthCheckConfig.h>
11#include <aws/route53/model/LinkedService.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace Route53 {
22namespace Model {
23
32 public:
33 AWS_ROUTE53_API HealthCheck() = default;
34 AWS_ROUTE53_API HealthCheck(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_ROUTE53_API HealthCheck& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
40
46 inline const Aws::String& GetId() const { return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 template <typename IdT = Aws::String>
49 void SetId(IdT&& value) {
50 m_idHasBeenSet = true;
51 m_id = std::forward<IdT>(value);
52 }
53 template <typename IdT = Aws::String>
54 HealthCheck& WithId(IdT&& value) {
55 SetId(std::forward<IdT>(value));
56 return *this;
57 }
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) {
68 m_callerReferenceHasBeenSet = true;
69 m_callerReference = std::forward<CallerReferenceT>(value);
70 }
71 template <typename CallerReferenceT = Aws::String>
72 HealthCheck& WithCallerReference(CallerReferenceT&& value) {
73 SetCallerReference(std::forward<CallerReferenceT>(value));
74 return *this;
75 }
77
79
84 inline const LinkedService& GetLinkedService() const { return m_linkedService; }
85 inline bool LinkedServiceHasBeenSet() const { return m_linkedServiceHasBeenSet; }
86 template <typename LinkedServiceT = LinkedService>
87 void SetLinkedService(LinkedServiceT&& value) {
88 m_linkedServiceHasBeenSet = true;
89 m_linkedService = std::forward<LinkedServiceT>(value);
90 }
91 template <typename LinkedServiceT = LinkedService>
92 HealthCheck& WithLinkedService(LinkedServiceT&& value) {
93 SetLinkedService(std::forward<LinkedServiceT>(value));
94 return *this;
95 }
97
99
102 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
103 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
104 template <typename HealthCheckConfigT = HealthCheckConfig>
105 void SetHealthCheckConfig(HealthCheckConfigT&& value) {
106 m_healthCheckConfigHasBeenSet = true;
107 m_healthCheckConfig = std::forward<HealthCheckConfigT>(value);
108 }
109 template <typename HealthCheckConfigT = HealthCheckConfig>
110 HealthCheck& WithHealthCheckConfig(HealthCheckConfigT&& value) {
111 SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value));
112 return *this;
113 }
115
117
122 inline long long GetHealthCheckVersion() const { return m_healthCheckVersion; }
123 inline bool HealthCheckVersionHasBeenSet() const { return m_healthCheckVersionHasBeenSet; }
124 inline void SetHealthCheckVersion(long long value) {
125 m_healthCheckVersionHasBeenSet = true;
126 m_healthCheckVersion = value;
127 }
128 inline HealthCheck& WithHealthCheckVersion(long long value) {
130 return *this;
131 }
133
135
139 inline const CloudWatchAlarmConfiguration& GetCloudWatchAlarmConfiguration() const { return m_cloudWatchAlarmConfiguration; }
140 inline bool CloudWatchAlarmConfigurationHasBeenSet() const { return m_cloudWatchAlarmConfigurationHasBeenSet; }
141 template <typename CloudWatchAlarmConfigurationT = CloudWatchAlarmConfiguration>
142 void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT&& value) {
143 m_cloudWatchAlarmConfigurationHasBeenSet = true;
144 m_cloudWatchAlarmConfiguration = std::forward<CloudWatchAlarmConfigurationT>(value);
145 }
146 template <typename CloudWatchAlarmConfigurationT = CloudWatchAlarmConfiguration>
147 HealthCheck& WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfigurationT&& value) {
148 SetCloudWatchAlarmConfiguration(std::forward<CloudWatchAlarmConfigurationT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_id;
154 bool m_idHasBeenSet = false;
155
156 Aws::String m_callerReference;
157 bool m_callerReferenceHasBeenSet = false;
158
159 LinkedService m_linkedService;
160 bool m_linkedServiceHasBeenSet = false;
161
162 HealthCheckConfig m_healthCheckConfig;
163 bool m_healthCheckConfigHasBeenSet = false;
164
165 long long m_healthCheckVersion{0};
166 bool m_healthCheckVersionHasBeenSet = false;
167
168 CloudWatchAlarmConfiguration m_cloudWatchAlarmConfiguration;
169 bool m_cloudWatchAlarmConfigurationHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace Route53
174} // namespace Aws
HealthCheck & WithHealthCheckVersion(long long value)
void SetHealthCheckVersion(long long value)
long long GetHealthCheckVersion() const
const HealthCheckConfig & GetHealthCheckConfig() const
HealthCheck & WithCallerReference(CallerReferenceT &&value)
Definition HealthCheck.h:72
void SetLinkedService(LinkedServiceT &&value)
Definition HealthCheck.h:87
const LinkedService & GetLinkedService() const
Definition HealthCheck.h:84
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:46
void SetCallerReference(CallerReferenceT &&value)
Definition HealthCheck.h:67
const Aws::String & GetCallerReference() const
Definition HealthCheck.h:64
void SetHealthCheckConfig(HealthCheckConfigT &&value)
HealthCheck & WithHealthCheckConfig(HealthCheckConfigT &&value)
AWS_ROUTE53_API HealthCheck & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const CloudWatchAlarmConfiguration & GetCloudWatchAlarmConfiguration() const
HealthCheck & WithLinkedService(LinkedServiceT &&value)
Definition HealthCheck.h:92
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:54
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String