AWS SDK for C++  0.14.3
AWS SDK for C++
GeoLocation.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace Route53
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  GeoLocation();
40  GeoLocation(const Aws::Utils::Xml::XmlNode& xmlNode);
41  GeoLocation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42 
43  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
44 
53  inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
54 
63  inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
64 
73  inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
74 
83  inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
84 
93  inline GeoLocation& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
94 
103  inline GeoLocation& WithContinentCode(Aws::String&& value) { SetContinentCode(value); return *this;}
104 
113  inline GeoLocation& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
114 
121  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
122 
129  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
130 
137  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
138 
145  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
146 
153  inline GeoLocation& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
154 
161  inline GeoLocation& WithCountryCode(Aws::String&& value) { SetCountryCode(value); return *this;}
162 
169  inline GeoLocation& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
170 
177  inline const Aws::String& GetSubdivisionCode() const{ return m_subdivisionCode; }
178 
185  inline void SetSubdivisionCode(const Aws::String& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
186 
193  inline void SetSubdivisionCode(Aws::String&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
194 
201  inline void SetSubdivisionCode(const char* value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode.assign(value); }
202 
209  inline GeoLocation& WithSubdivisionCode(const Aws::String& value) { SetSubdivisionCode(value); return *this;}
210 
217  inline GeoLocation& WithSubdivisionCode(Aws::String&& value) { SetSubdivisionCode(value); return *this;}
218 
225  inline GeoLocation& WithSubdivisionCode(const char* value) { SetSubdivisionCode(value); return *this;}
226 
227  private:
228  Aws::String m_continentCode;
229  bool m_continentCodeHasBeenSet;
230  Aws::String m_countryCode;
231  bool m_countryCodeHasBeenSet;
232  Aws::String m_subdivisionCode;
233  bool m_subdivisionCodeHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace Route53
238 } // namespace Aws
GeoLocation & WithContinentCode(Aws::String &&value)
Definition: GeoLocation.h:103
GeoLocation & WithContinentCode(const Aws::String &value)
Definition: GeoLocation.h:93
void SetContinentCode(const Aws::String &value)
Definition: GeoLocation.h:63
void SetSubdivisionCode(const Aws::String &value)
Definition: GeoLocation.h:185
GeoLocation & WithCountryCode(const char *value)
Definition: GeoLocation.h:169
const Aws::String & GetSubdivisionCode() const
Definition: GeoLocation.h:177
void SetSubdivisionCode(const char *value)
Definition: GeoLocation.h:201
const Aws::String & GetContinentCode() const
Definition: GeoLocation.h:53
GeoLocation & WithCountryCode(const Aws::String &value)
Definition: GeoLocation.h:153
void SetCountryCode(Aws::String &&value)
Definition: GeoLocation.h:137
GeoLocation & WithSubdivisionCode(Aws::String &&value)
Definition: GeoLocation.h:217
GeoLocation & WithCountryCode(Aws::String &&value)
Definition: GeoLocation.h:161
const Aws::String & GetCountryCode() const
Definition: GeoLocation.h:121
void SetContinentCode(Aws::String &&value)
Definition: GeoLocation.h:73
GeoLocation & WithSubdivisionCode(const Aws::String &value)
Definition: GeoLocation.h:209
void SetCountryCode(const Aws::String &value)
Definition: GeoLocation.h:129
GeoLocation & WithContinentCode(const char *value)
Definition: GeoLocation.h:113
#define AWS_ROUTE53_API
void SetContinentCode(const char *value)
Definition: GeoLocation.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GeoLocation & WithSubdivisionCode(const char *value)
Definition: GeoLocation.h:225
void SetCountryCode(const char *value)
Definition: GeoLocation.h:145
void SetSubdivisionCode(Aws::String &&value)
Definition: GeoLocation.h:193
JSON (JavaScript Object Notation).