AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
GeoLocationDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/route53/Route53_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace Route53 {
19namespace Model {
20
29 public:
30 AWS_ROUTE53_API GeoLocationDetails() = default;
31 AWS_ROUTE53_API GeoLocationDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ROUTE53_API GeoLocationDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
35
37
40 inline const Aws::String& GetContinentCode() const { return m_continentCode; }
41 inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
42 template <typename ContinentCodeT = Aws::String>
43 void SetContinentCode(ContinentCodeT&& value) {
44 m_continentCodeHasBeenSet = true;
45 m_continentCode = std::forward<ContinentCodeT>(value);
46 }
47 template <typename ContinentCodeT = Aws::String>
48 GeoLocationDetails& WithContinentCode(ContinentCodeT&& value) {
49 SetContinentCode(std::forward<ContinentCodeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetContinentName() const { return m_continentName; }
59 inline bool ContinentNameHasBeenSet() const { return m_continentNameHasBeenSet; }
60 template <typename ContinentNameT = Aws::String>
61 void SetContinentName(ContinentNameT&& value) {
62 m_continentNameHasBeenSet = true;
63 m_continentName = std::forward<ContinentNameT>(value);
64 }
65 template <typename ContinentNameT = Aws::String>
66 GeoLocationDetails& WithContinentName(ContinentNameT&& value) {
67 SetContinentName(std::forward<ContinentNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCountryCode() const { return m_countryCode; }
77 inline bool CountryCodeHasBeenSet() const { return m_countryCodeHasBeenSet; }
78 template <typename CountryCodeT = Aws::String>
79 void SetCountryCode(CountryCodeT&& value) {
80 m_countryCodeHasBeenSet = true;
81 m_countryCode = std::forward<CountryCodeT>(value);
82 }
83 template <typename CountryCodeT = Aws::String>
84 GeoLocationDetails& WithCountryCode(CountryCodeT&& value) {
85 SetCountryCode(std::forward<CountryCodeT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetCountryName() const { return m_countryName; }
95 inline bool CountryNameHasBeenSet() const { return m_countryNameHasBeenSet; }
96 template <typename CountryNameT = Aws::String>
97 void SetCountryName(CountryNameT&& value) {
98 m_countryNameHasBeenSet = true;
99 m_countryName = std::forward<CountryNameT>(value);
100 }
101 template <typename CountryNameT = Aws::String>
102 GeoLocationDetails& WithCountryName(CountryNameT&& value) {
103 SetCountryName(std::forward<CountryNameT>(value));
104 return *this;
105 }
107
109
118 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
119 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
120 template <typename SubdivisionCodeT = Aws::String>
121 void SetSubdivisionCode(SubdivisionCodeT&& value) {
122 m_subdivisionCodeHasBeenSet = true;
123 m_subdivisionCode = std::forward<SubdivisionCodeT>(value);
124 }
125 template <typename SubdivisionCodeT = Aws::String>
126 GeoLocationDetails& WithSubdivisionCode(SubdivisionCodeT&& value) {
127 SetSubdivisionCode(std::forward<SubdivisionCodeT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetSubdivisionName() const { return m_subdivisionName; }
138 inline bool SubdivisionNameHasBeenSet() const { return m_subdivisionNameHasBeenSet; }
139 template <typename SubdivisionNameT = Aws::String>
140 void SetSubdivisionName(SubdivisionNameT&& value) {
141 m_subdivisionNameHasBeenSet = true;
142 m_subdivisionName = std::forward<SubdivisionNameT>(value);
143 }
144 template <typename SubdivisionNameT = Aws::String>
145 GeoLocationDetails& WithSubdivisionName(SubdivisionNameT&& value) {
146 SetSubdivisionName(std::forward<SubdivisionNameT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_continentCode;
152 bool m_continentCodeHasBeenSet = false;
153
154 Aws::String m_continentName;
155 bool m_continentNameHasBeenSet = false;
156
157 Aws::String m_countryCode;
158 bool m_countryCodeHasBeenSet = false;
159
160 Aws::String m_countryName;
161 bool m_countryNameHasBeenSet = false;
162
163 Aws::String m_subdivisionCode;
164 bool m_subdivisionCodeHasBeenSet = false;
165
166 Aws::String m_subdivisionName;
167 bool m_subdivisionNameHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace Route53
172} // namespace Aws
const Aws::String & GetCountryCode() const
GeoLocationDetails & WithContinentName(ContinentNameT &&value)
GeoLocationDetails & WithSubdivisionName(SubdivisionNameT &&value)
GeoLocationDetails & WithCountryName(CountryNameT &&value)
AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetSubdivisionName() const
AWS_ROUTE53_API GeoLocationDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCountryName() const
void SetContinentCode(ContinentCodeT &&value)
void SetSubdivisionCode(SubdivisionCodeT &&value)
void SetContinentName(ContinentNameT &&value)
AWS_ROUTE53_API GeoLocationDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetContinentCode() const
void SetSubdivisionName(SubdivisionNameT &&value)
GeoLocationDetails & WithCountryCode(CountryCodeT &&value)
GeoLocationDetails & WithSubdivisionCode(SubdivisionCodeT &&value)
const Aws::String & GetSubdivisionCode() const
GeoLocationDetails & WithContinentCode(ContinentCodeT &&value)
AWS_ROUTE53_API GeoLocationDetails()=default
const Aws::String & GetContinentName() const
void SetCountryName(CountryNameT &&value)
void SetCountryCode(CountryCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String