AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ClientLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace InternetMonitor {
20namespace Model {
21
29 public:
30 AWS_INTERNETMONITOR_API ClientLocation() = default;
31 AWS_INTERNETMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue);
32 AWS_INTERNETMONITOR_API ClientLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetASName() const { return m_aSName; }
40 inline bool ASNameHasBeenSet() const { return m_aSNameHasBeenSet; }
41 template <typename ASNameT = Aws::String>
42 void SetASName(ASNameT&& value) {
43 m_aSNameHasBeenSet = true;
44 m_aSName = std::forward<ASNameT>(value);
45 }
46 template <typename ASNameT = Aws::String>
47 ClientLocation& WithASName(ASNameT&& value) {
48 SetASName(std::forward<ASNameT>(value));
49 return *this;
50 }
52
54
58 inline long long GetASNumber() const { return m_aSNumber; }
59 inline bool ASNumberHasBeenSet() const { return m_aSNumberHasBeenSet; }
60 inline void SetASNumber(long long value) {
61 m_aSNumberHasBeenSet = true;
62 m_aSNumber = value;
63 }
64 inline ClientLocation& WithASNumber(long long value) {
65 SetASNumber(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetCountry() const { return m_country; }
75 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
76 template <typename CountryT = Aws::String>
77 void SetCountry(CountryT&& value) {
78 m_countryHasBeenSet = true;
79 m_country = std::forward<CountryT>(value);
80 }
81 template <typename CountryT = Aws::String>
82 ClientLocation& WithCountry(CountryT&& value) {
83 SetCountry(std::forward<CountryT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
96 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
97 template <typename SubdivisionT = Aws::String>
98 void SetSubdivision(SubdivisionT&& value) {
99 m_subdivisionHasBeenSet = true;
100 m_subdivision = std::forward<SubdivisionT>(value);
101 }
102 template <typename SubdivisionT = Aws::String>
103 ClientLocation& WithSubdivision(SubdivisionT&& value) {
104 SetSubdivision(std::forward<SubdivisionT>(value));
105 return *this;
106 }
108
110
117 inline const Aws::String& GetMetro() const { return m_metro; }
118 inline bool MetroHasBeenSet() const { return m_metroHasBeenSet; }
119 template <typename MetroT = Aws::String>
120 void SetMetro(MetroT&& value) {
121 m_metroHasBeenSet = true;
122 m_metro = std::forward<MetroT>(value);
123 }
124 template <typename MetroT = Aws::String>
125 ClientLocation& WithMetro(MetroT&& value) {
126 SetMetro(std::forward<MetroT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetCity() const { return m_city; }
136 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
137 template <typename CityT = Aws::String>
138 void SetCity(CityT&& value) {
139 m_cityHasBeenSet = true;
140 m_city = std::forward<CityT>(value);
141 }
142 template <typename CityT = Aws::String>
143 ClientLocation& WithCity(CityT&& value) {
144 SetCity(std::forward<CityT>(value));
145 return *this;
146 }
148
150
153 inline double GetLatitude() const { return m_latitude; }
154 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
155 inline void SetLatitude(double value) {
156 m_latitudeHasBeenSet = true;
157 m_latitude = value;
158 }
159 inline ClientLocation& WithLatitude(double value) {
160 SetLatitude(value);
161 return *this;
162 }
164
166
169 inline double GetLongitude() const { return m_longitude; }
170 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
171 inline void SetLongitude(double value) {
172 m_longitudeHasBeenSet = true;
173 m_longitude = value;
174 }
175 inline ClientLocation& WithLongitude(double value) {
176 SetLongitude(value);
177 return *this;
178 }
180 private:
181 Aws::String m_aSName;
182
183 long long m_aSNumber{0};
184
185 Aws::String m_country;
186
187 Aws::String m_subdivision;
188
189 Aws::String m_metro;
190
191 Aws::String m_city;
192
193 double m_latitude{0.0};
194
195 double m_longitude{0.0};
196 bool m_aSNameHasBeenSet = false;
197 bool m_aSNumberHasBeenSet = false;
198 bool m_countryHasBeenSet = false;
199 bool m_subdivisionHasBeenSet = false;
200 bool m_metroHasBeenSet = false;
201 bool m_cityHasBeenSet = false;
202 bool m_latitudeHasBeenSet = false;
203 bool m_longitudeHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace InternetMonitor
208} // namespace Aws
ClientLocation & WithASNumber(long long value)
ClientLocation & WithLongitude(double value)
AWS_INTERNETMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_INTERNETMONITOR_API ClientLocation()=default
AWS_INTERNETMONITOR_API ClientLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
ClientLocation & WithMetro(MetroT &&value)
const Aws::String & GetSubdivision() const
void SetSubdivision(SubdivisionT &&value)
ClientLocation & WithCountry(CountryT &&value)
ClientLocation & WithASName(ASNameT &&value)
ClientLocation & WithLatitude(double value)
ClientLocation & WithSubdivision(SubdivisionT &&value)
ClientLocation & WithCity(CityT &&value)
AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue