AWS SDK for C++  0.12.9
AWS SDK for C++
GeoLocationDetails.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 
38  {
39  public:
42  GeoLocationDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
50  inline const Aws::String& GetContinentCode() const{ return m_continentCode; }
51 
56  inline void SetContinentCode(const Aws::String& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
57 
62  inline void SetContinentCode(Aws::String&& value) { m_continentCodeHasBeenSet = true; m_continentCode = value; }
63 
68  inline void SetContinentCode(const char* value) { m_continentCodeHasBeenSet = true; m_continentCode.assign(value); }
69 
74  inline GeoLocationDetails& WithContinentCode(const Aws::String& value) { SetContinentCode(value); return *this;}
75 
80  inline GeoLocationDetails& WithContinentCode(Aws::String&& value) { SetContinentCode(value); return *this;}
81 
86  inline GeoLocationDetails& WithContinentCode(const char* value) { SetContinentCode(value); return *this;}
87 
92  inline const Aws::String& GetContinentName() const{ return m_continentName; }
93 
98  inline void SetContinentName(const Aws::String& value) { m_continentNameHasBeenSet = true; m_continentName = value; }
99 
104  inline void SetContinentName(Aws::String&& value) { m_continentNameHasBeenSet = true; m_continentName = value; }
105 
110  inline void SetContinentName(const char* value) { m_continentNameHasBeenSet = true; m_continentName.assign(value); }
111 
116  inline GeoLocationDetails& WithContinentName(const Aws::String& value) { SetContinentName(value); return *this;}
117 
122  inline GeoLocationDetails& WithContinentName(Aws::String&& value) { SetContinentName(value); return *this;}
123 
128  inline GeoLocationDetails& WithContinentName(const char* value) { SetContinentName(value); return *this;}
129 
136  inline const Aws::String& GetCountryCode() const{ return m_countryCode; }
137 
144  inline void SetCountryCode(const Aws::String& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
145 
152  inline void SetCountryCode(Aws::String&& value) { m_countryCodeHasBeenSet = true; m_countryCode = value; }
153 
160  inline void SetCountryCode(const char* value) { m_countryCodeHasBeenSet = true; m_countryCode.assign(value); }
161 
168  inline GeoLocationDetails& WithCountryCode(const Aws::String& value) { SetCountryCode(value); return *this;}
169 
176  inline GeoLocationDetails& WithCountryCode(Aws::String&& value) { SetCountryCode(value); return *this;}
177 
184  inline GeoLocationDetails& WithCountryCode(const char* value) { SetCountryCode(value); return *this;}
185 
190  inline const Aws::String& GetCountryName() const{ return m_countryName; }
191 
196  inline void SetCountryName(const Aws::String& value) { m_countryNameHasBeenSet = true; m_countryName = value; }
197 
202  inline void SetCountryName(Aws::String&& value) { m_countryNameHasBeenSet = true; m_countryName = value; }
203 
208  inline void SetCountryName(const char* value) { m_countryNameHasBeenSet = true; m_countryName.assign(value); }
209 
214  inline GeoLocationDetails& WithCountryName(const Aws::String& value) { SetCountryName(value); return *this;}
215 
220  inline GeoLocationDetails& WithCountryName(Aws::String&& value) { SetCountryName(value); return *this;}
221 
226  inline GeoLocationDetails& WithCountryName(const char* value) { SetCountryName(value); return *this;}
227 
232  inline const Aws::String& GetSubdivisionCode() const{ return m_subdivisionCode; }
233 
238  inline void SetSubdivisionCode(const Aws::String& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
239 
244  inline void SetSubdivisionCode(Aws::String&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = value; }
245 
250  inline void SetSubdivisionCode(const char* value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode.assign(value); }
251 
256  inline GeoLocationDetails& WithSubdivisionCode(const Aws::String& value) { SetSubdivisionCode(value); return *this;}
257 
262  inline GeoLocationDetails& WithSubdivisionCode(Aws::String&& value) { SetSubdivisionCode(value); return *this;}
263 
268  inline GeoLocationDetails& WithSubdivisionCode(const char* value) { SetSubdivisionCode(value); return *this;}
269 
274  inline const Aws::String& GetSubdivisionName() const{ return m_subdivisionName; }
275 
280  inline void SetSubdivisionName(const Aws::String& value) { m_subdivisionNameHasBeenSet = true; m_subdivisionName = value; }
281 
286  inline void SetSubdivisionName(Aws::String&& value) { m_subdivisionNameHasBeenSet = true; m_subdivisionName = value; }
287 
292  inline void SetSubdivisionName(const char* value) { m_subdivisionNameHasBeenSet = true; m_subdivisionName.assign(value); }
293 
298  inline GeoLocationDetails& WithSubdivisionName(const Aws::String& value) { SetSubdivisionName(value); return *this;}
299 
304  inline GeoLocationDetails& WithSubdivisionName(Aws::String&& value) { SetSubdivisionName(value); return *this;}
305 
310  inline GeoLocationDetails& WithSubdivisionName(const char* value) { SetSubdivisionName(value); return *this;}
311 
312  private:
313  Aws::String m_continentCode;
314  bool m_continentCodeHasBeenSet;
315  Aws::String m_continentName;
316  bool m_continentNameHasBeenSet;
317  Aws::String m_countryCode;
318  bool m_countryCodeHasBeenSet;
319  Aws::String m_countryName;
320  bool m_countryNameHasBeenSet;
321  Aws::String m_subdivisionCode;
322  bool m_subdivisionCodeHasBeenSet;
323  Aws::String m_subdivisionName;
324  bool m_subdivisionNameHasBeenSet;
325  };
326 
327 } // namespace Model
328 } // namespace Route53
329 } // namespace Aws
GeoLocationDetails & WithCountryCode(Aws::String &&value)
GeoLocationDetails & WithContinentCode(const Aws::String &value)
const Aws::String & GetContinentCode() const
GeoLocationDetails & WithContinentName(const char *value)
GeoLocationDetails & WithCountryName(const char *value)
const Aws::String & GetContinentName() const
GeoLocationDetails & WithCountryName(const Aws::String &value)
const Aws::String & GetCountryName() const
void SetContinentName(const Aws::String &value)
void SetContinentCode(Aws::String &&value)
GeoLocationDetails & WithCountryName(Aws::String &&value)
void SetCountryName(const Aws::String &value)
void SetSubdivisionName(const Aws::String &value)
void SetContinentName(Aws::String &&value)
GeoLocationDetails & WithCountryCode(const Aws::String &value)
GeoLocationDetails & WithCountryCode(const char *value)
GeoLocationDetails & WithSubdivisionName(Aws::String &&value)
GeoLocationDetails & WithContinentName(const Aws::String &value)
const Aws::String & GetSubdivisionName() const
GeoLocationDetails & WithSubdivisionCode(const Aws::String &value)
void SetSubdivisionName(Aws::String &&value)
const Aws::String & GetSubdivisionCode() const
void SetSubdivisionCode(Aws::String &&value)
GeoLocationDetails & WithContinentName(Aws::String &&value)
GeoLocationDetails & WithContinentCode(const char *value)
#define AWS_ROUTE53_API
GeoLocationDetails & WithContinentCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GeoLocationDetails & WithSubdivisionName(const char *value)
void SetContinentCode(const Aws::String &value)
GeoLocationDetails & WithSubdivisionCode(const char *value)
GeoLocationDetails & WithSubdivisionCode(Aws::String &&value)
const Aws::String & GetCountryCode() const
GeoLocationDetails & WithSubdivisionName(const Aws::String &value)
void SetSubdivisionCode(const Aws::String &value)
void SetCountryCode(const Aws::String &value)
JSON (JavaScript Object Notation).