AWS SDK for C++  0.14.3
AWS SDK for C++
HealthCheck.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace Route53
31 {
32 namespace Model
33 {
34 
40  {
41  public:
42  HealthCheck();
43  HealthCheck(const Aws::Utils::Xml::XmlNode& xmlNode);
44  HealthCheck& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
51  inline const Aws::String& GetId() const{ return m_id; }
52 
56  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 
61  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
62 
66  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
67 
71  inline HealthCheck& WithId(const Aws::String& value) { SetId(value); return *this;}
72 
76  inline HealthCheck& WithId(Aws::String&& value) { SetId(value); return *this;}
77 
81  inline HealthCheck& WithId(const char* value) { SetId(value); return *this;}
82 
86  inline const Aws::String& GetCallerReference() const{ return m_callerReference; }
87 
91  inline void SetCallerReference(const Aws::String& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
92 
96  inline void SetCallerReference(Aws::String&& value) { m_callerReferenceHasBeenSet = true; m_callerReference = value; }
97 
101  inline void SetCallerReference(const char* value) { m_callerReferenceHasBeenSet = true; m_callerReference.assign(value); }
102 
106  inline HealthCheck& WithCallerReference(const Aws::String& value) { SetCallerReference(value); return *this;}
107 
111  inline HealthCheck& WithCallerReference(Aws::String&& value) { SetCallerReference(value); return *this;}
112 
116  inline HealthCheck& WithCallerReference(const char* value) { SetCallerReference(value); return *this;}
117 
121  inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
122 
126  inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
127 
131  inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
132 
136  inline HealthCheck& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
137 
141  inline HealthCheck& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(value); return *this;}
142 
148  inline long long GetHealthCheckVersion() const{ return m_healthCheckVersion; }
149 
155  inline void SetHealthCheckVersion(long long value) { m_healthCheckVersionHasBeenSet = true; m_healthCheckVersion = value; }
156 
162  inline HealthCheck& WithHealthCheckVersion(long long value) { SetHealthCheckVersion(value); return *this;}
163 
168  inline const CloudWatchAlarmConfiguration& GetCloudWatchAlarmConfiguration() const{ return m_cloudWatchAlarmConfiguration; }
169 
174  inline void SetCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration& value) { m_cloudWatchAlarmConfigurationHasBeenSet = true; m_cloudWatchAlarmConfiguration = value; }
175 
180  inline void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration&& value) { m_cloudWatchAlarmConfigurationHasBeenSet = true; m_cloudWatchAlarmConfiguration = value; }
181 
186  inline HealthCheck& WithCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration& value) { SetCloudWatchAlarmConfiguration(value); return *this;}
187 
192  inline HealthCheck& WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration&& value) { SetCloudWatchAlarmConfiguration(value); return *this;}
193 
194  private:
195  Aws::String m_id;
196  bool m_idHasBeenSet;
197  Aws::String m_callerReference;
198  bool m_callerReferenceHasBeenSet;
199  HealthCheckConfig m_healthCheckConfig;
200  bool m_healthCheckConfigHasBeenSet;
201  long long m_healthCheckVersion;
202  bool m_healthCheckVersionHasBeenSet;
203  CloudWatchAlarmConfiguration m_cloudWatchAlarmConfiguration;
204  bool m_cloudWatchAlarmConfigurationHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace Route53
209 } // namespace Aws
void SetCallerReference(const Aws::String &value)
Definition: HealthCheck.h:91
HealthCheck & WithCallerReference(Aws::String &&value)
Definition: HealthCheck.h:111
void SetCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration &value)
Definition: HealthCheck.h:174
void SetId(const char *value)
Definition: HealthCheck.h:66
HealthCheck & WithCallerReference(const char *value)
Definition: HealthCheck.h:116
HealthCheck & WithId(const Aws::String &value)
Definition: HealthCheck.h:71
const Aws::String & GetCallerReference() const
Definition: HealthCheck.h:86
HealthCheck & WithId(const char *value)
Definition: HealthCheck.h:81
long long GetHealthCheckVersion() const
Definition: HealthCheck.h:148
const HealthCheckConfig & GetHealthCheckConfig() const
Definition: HealthCheck.h:121
HealthCheck & WithHealthCheckConfig(HealthCheckConfig &&value)
Definition: HealthCheck.h:141
const CloudWatchAlarmConfiguration & GetCloudWatchAlarmConfiguration() const
Definition: HealthCheck.h:168
void SetHealthCheckConfig(const HealthCheckConfig &value)
Definition: HealthCheck.h:126
HealthCheck & WithHealthCheckConfig(const HealthCheckConfig &value)
Definition: HealthCheck.h:136
void SetCallerReference(Aws::String &&value)
Definition: HealthCheck.h:96
HealthCheck & WithCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration &&value)
Definition: HealthCheck.h:192
void SetHealthCheckConfig(HealthCheckConfig &&value)
Definition: HealthCheck.h:131
void SetHealthCheckVersion(long long value)
Definition: HealthCheck.h:155
HealthCheck & WithId(Aws::String &&value)
Definition: HealthCheck.h:76
void SetCloudWatchAlarmConfiguration(CloudWatchAlarmConfiguration &&value)
Definition: HealthCheck.h:180
void SetId(Aws::String &&value)
Definition: HealthCheck.h:61
#define AWS_ROUTE53_API
HealthCheck & WithCloudWatchAlarmConfiguration(const CloudWatchAlarmConfiguration &value)
Definition: HealthCheck.h:186
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HealthCheck & WithCallerReference(const Aws::String &value)
Definition: HealthCheck.h:106
const Aws::String & GetId() const
Definition: HealthCheck.h:51
void SetCallerReference(const char *value)
Definition: HealthCheck.h:101
HealthCheck & WithHealthCheckVersion(long long value)
Definition: HealthCheck.h:162
void SetId(const Aws::String &value)
Definition: HealthCheck.h:56
JSON (JavaScript Object Notation).