AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GeoLocation.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
28 public:
29 AWS_ROUTE53_API GeoLocation() = default;
30 AWS_ROUTE53_API GeoLocation(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_ROUTE53_API GeoLocation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
34
36
46 inline const Aws::String& GetContinentCode() const { return m_continentCode; }
47 inline bool ContinentCodeHasBeenSet() const { return m_continentCodeHasBeenSet; }
48 template <typename ContinentCodeT = Aws::String>
49 void SetContinentCode(ContinentCodeT&& value) {
50 m_continentCodeHasBeenSet = true;
51 m_continentCode = std::forward<ContinentCodeT>(value);
52 }
53 template <typename ContinentCodeT = Aws::String>
54 GeoLocation& WithContinentCode(ContinentCodeT&& value) {
55 SetContinentCode(std::forward<ContinentCodeT>(value));
56 return *this;
57 }
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) {
72 m_countryCodeHasBeenSet = true;
73 m_countryCode = std::forward<CountryCodeT>(value);
74 }
75 template <typename CountryCodeT = Aws::String>
76 GeoLocation& WithCountryCode(CountryCodeT&& value) {
77 SetCountryCode(std::forward<CountryCodeT>(value));
78 return *this;
79 }
81
83
92 inline const Aws::String& GetSubdivisionCode() const { return m_subdivisionCode; }
93 inline bool SubdivisionCodeHasBeenSet() const { return m_subdivisionCodeHasBeenSet; }
94 template <typename SubdivisionCodeT = Aws::String>
95 void SetSubdivisionCode(SubdivisionCodeT&& value) {
96 m_subdivisionCodeHasBeenSet = true;
97 m_subdivisionCode = std::forward<SubdivisionCodeT>(value);
98 }
99 template <typename SubdivisionCodeT = Aws::String>
100 GeoLocation& WithSubdivisionCode(SubdivisionCodeT&& value) {
101 SetSubdivisionCode(std::forward<SubdivisionCodeT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_continentCode;
107
108 Aws::String m_countryCode;
109
110 Aws::String m_subdivisionCode;
111 bool m_continentCodeHasBeenSet = false;
112 bool m_countryCodeHasBeenSet = false;
113 bool m_subdivisionCodeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace Route53
118} // namespace Aws
AWS_ROUTE53_API GeoLocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetSubdivisionCode(SubdivisionCodeT &&value)
Definition GeoLocation.h:95
GeoLocation & WithContinentCode(ContinentCodeT &&value)
Definition GeoLocation.h:54
void SetContinentCode(ContinentCodeT &&value)
Definition GeoLocation.h:49
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:46
AWS_ROUTE53_API GeoLocation(const Aws::Utils::Xml::XmlNode &xmlNode)
GeoLocation & WithSubdivisionCode(SubdivisionCodeT &&value)
const Aws::String & GetSubdivisionCode() const
Definition GeoLocation.h:92
GeoLocation & WithCountryCode(CountryCodeT &&value)
Definition GeoLocation.h:76
const Aws::String & GetCountryCode() const
Definition GeoLocation.h:68
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String