AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GeoLocation.h
1
6#pragma once
7#include <aws/route53/Route53_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace Route53
21{
22namespace Model
23{
24
32 {
33 public:
34 AWS_ROUTE53_API GeoLocation() = default;
35 AWS_ROUTE53_API GeoLocation(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_ROUTE53_API GeoLocation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39
40
42
52 inline const Aws::String& GetContinentCode() const { return m_continentCode; }
53 inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
54 template<typename ContinentCodeT = Aws::String>
55 void SetContinentCode(ContinentCodeT&& value) { m_continentCodeHasBeenSet = true; m_continentCode = std::forward<ContinentCodeT>(value); }
56 template<typename ContinentCodeT = Aws::String>
57 GeoLocation& WithContinentCode(ContinentCodeT&& value) { SetContinentCode(std::forward<ContinentCodeT>(value)); return *this;}
59
61
68 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
69 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
70 template<typename CountryCodeT = Aws::String>
71 void SetCountryCode(CountryCodeT&& value) { m_countryCodeHasBeenSet = true; m_countryCode = std::forward<CountryCodeT>(value); }
72 template<typename CountryCodeT = Aws::String>
73 GeoLocation& WithCountryCode(CountryCodeT&& value) { SetCountryCode(std::forward<CountryCodeT>(value)); return *this;}
75
77
86 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
87 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
88 template<typename SubdivisionCodeT = Aws::String>
89 void SetSubdivisionCode(SubdivisionCodeT&& value) { m_subdivisionCodeHasBeenSet = true; m_subdivisionCode = std::forward<SubdivisionCodeT>(value); }
90 template<typename SubdivisionCodeT = Aws::String>
91 GeoLocation& WithSubdivisionCode(SubdivisionCodeT&& value) { SetSubdivisionCode(std::forward<SubdivisionCodeT>(value)); return *this;}
93 private:
94
95 Aws::String m_continentCode;
96 bool m_continentCodeHasBeenSet = false;
97
98 Aws::String m_countryCode;
99 bool m_countryCodeHasBeenSet = false;
100
101 Aws::String m_subdivisionCode;
102 bool m_subdivisionCodeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Route53
107} // namespace Aws
AWS_ROUTE53_API GeoLocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubdivisionCode(SubdivisionCodeT &&value)
Definition GeoLocation.h:89
GeoLocation & WithContinentCode(ContinentCodeT &&value)
Definition GeoLocation.h:57
void SetContinentCode(ContinentCodeT &&value)
Definition GeoLocation.h:55
AWS_ROUTE53_API GeoLocation()=default
void SetCountryCode(CountryCodeT &&value)
Definition GeoLocation.h:71
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetContinentCode() const
Definition GeoLocation.h:52
AWS_ROUTE53_API GeoLocation(const Aws::Utils::Xml::XmlNode &xmlNode)
GeoLocation & WithSubdivisionCode(SubdivisionCodeT &&value)
Definition GeoLocation.h:91
const Aws::String & GetSubdivisionCode() const
Definition GeoLocation.h:86
GeoLocation & WithCountryCode(CountryCodeT &&value)
Definition GeoLocation.h:73
const Aws::String & GetCountryCode() const
Definition GeoLocation.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String