AWS SDK for C++  0.12.9
AWS SDK for C++
HealthCheckObservation.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:
44  HealthCheckObservation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
52  inline const HealthCheckRegion& GetRegion() const{ return m_region; }
53 
58  inline void SetRegion(const HealthCheckRegion& value) { m_regionHasBeenSet = true; m_region = value; }
59 
64  inline void SetRegion(HealthCheckRegion&& value) { m_regionHasBeenSet = true; m_region = value; }
65 
70  inline HealthCheckObservation& WithRegion(const HealthCheckRegion& value) { SetRegion(value); return *this;}
71 
76  inline HealthCheckObservation& WithRegion(HealthCheckRegion&& value) { SetRegion(value); return *this;}
77 
82  inline const Aws::String& GetIPAddress() const{ return m_iPAddress; }
83 
88  inline void SetIPAddress(const Aws::String& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
89 
94  inline void SetIPAddress(Aws::String&& value) { m_iPAddressHasBeenSet = true; m_iPAddress = value; }
95 
100  inline void SetIPAddress(const char* value) { m_iPAddressHasBeenSet = true; m_iPAddress.assign(value); }
101 
106  inline HealthCheckObservation& WithIPAddress(const Aws::String& value) { SetIPAddress(value); return *this;}
107 
112  inline HealthCheckObservation& WithIPAddress(Aws::String&& value) { SetIPAddress(value); return *this;}
113 
118  inline HealthCheckObservation& WithIPAddress(const char* value) { SetIPAddress(value); return *this;}
119 
124  inline const StatusReport& GetStatusReport() const{ return m_statusReport; }
125 
130  inline void SetStatusReport(const StatusReport& value) { m_statusReportHasBeenSet = true; m_statusReport = value; }
131 
136  inline void SetStatusReport(StatusReport&& value) { m_statusReportHasBeenSet = true; m_statusReport = value; }
137 
142  inline HealthCheckObservation& WithStatusReport(const StatusReport& value) { SetStatusReport(value); return *this;}
143 
148  inline HealthCheckObservation& WithStatusReport(StatusReport&& value) { SetStatusReport(value); return *this;}
149 
150  private:
151  HealthCheckRegion m_region;
152  bool m_regionHasBeenSet;
153  Aws::String m_iPAddress;
154  bool m_iPAddressHasBeenSet;
155  StatusReport m_statusReport;
156  bool m_statusReportHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace Route53
161 } // namespace Aws
HealthCheckObservation & WithRegion(const HealthCheckRegion &value)
void SetRegion(const HealthCheckRegion &value)
HealthCheckObservation & WithRegion(HealthCheckRegion &&value)
HealthCheckObservation & WithStatusReport(const StatusReport &value)
const HealthCheckRegion & GetRegion() const
HealthCheckObservation & WithIPAddress(Aws::String &&value)
void SetStatusReport(const StatusReport &value)
HealthCheckObservation & WithIPAddress(const char *value)
#define AWS_ROUTE53_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
HealthCheckObservation & WithStatusReport(StatusReport &&value)
JSON (JavaScript Object Notation).
HealthCheckObservation & WithIPAddress(const Aws::String &value)