AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClientLocation.h
1
6#pragma once
7#include <aws/internetmonitor/InternetMonitor_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace InternetMonitor
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_INTERNETMONITOR_API ClientLocation();
36 AWS_INTERNETMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_INTERNETMONITOR_API ClientLocation& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INTERNETMONITOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetASName() const{ return m_aSName; }
46 inline bool ASNameHasBeenSet() const { return m_aSNameHasBeenSet; }
47 inline void SetASName(const Aws::String& value) { m_aSNameHasBeenSet = true; m_aSName = value; }
48 inline void SetASName(Aws::String&& value) { m_aSNameHasBeenSet = true; m_aSName = std::move(value); }
49 inline void SetASName(const char* value) { m_aSNameHasBeenSet = true; m_aSName.assign(value); }
50 inline ClientLocation& WithASName(const Aws::String& value) { SetASName(value); return *this;}
51 inline ClientLocation& WithASName(Aws::String&& value) { SetASName(std::move(value)); return *this;}
52 inline ClientLocation& WithASName(const char* value) { SetASName(value); return *this;}
54
56
60 inline long long GetASNumber() const{ return m_aSNumber; }
61 inline bool ASNumberHasBeenSet() const { return m_aSNumberHasBeenSet; }
62 inline void SetASNumber(long long value) { m_aSNumberHasBeenSet = true; m_aSNumber = value; }
63 inline ClientLocation& WithASNumber(long long value) { SetASNumber(value); return *this;}
65
67
70 inline const Aws::String& GetCountry() const{ return m_country; }
71 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
72 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
73 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
74 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
75 inline ClientLocation& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
76 inline ClientLocation& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
77 inline ClientLocation& WithCountry(const char* value) { SetCountry(value); return *this;}
79
81
87 inline const Aws::String& GetSubdivision() const{ return m_subdivision; }
88 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
89 inline void SetSubdivision(const Aws::String& value) { m_subdivisionHasBeenSet = true; m_subdivision = value; }
90 inline void SetSubdivision(Aws::String&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::move(value); }
91 inline void SetSubdivision(const char* value) { m_subdivisionHasBeenSet = true; m_subdivision.assign(value); }
92 inline ClientLocation& WithSubdivision(const Aws::String& value) { SetSubdivision(value); return *this;}
93 inline ClientLocation& WithSubdivision(Aws::String&& value) { SetSubdivision(std::move(value)); return *this;}
94 inline ClientLocation& WithSubdivision(const char* value) { SetSubdivision(value); return *this;}
96
98
105 inline const Aws::String& GetMetro() const{ return m_metro; }
106 inline bool MetroHasBeenSet() const { return m_metroHasBeenSet; }
107 inline void SetMetro(const Aws::String& value) { m_metroHasBeenSet = true; m_metro = value; }
108 inline void SetMetro(Aws::String&& value) { m_metroHasBeenSet = true; m_metro = std::move(value); }
109 inline void SetMetro(const char* value) { m_metroHasBeenSet = true; m_metro.assign(value); }
110 inline ClientLocation& WithMetro(const Aws::String& value) { SetMetro(value); return *this;}
111 inline ClientLocation& WithMetro(Aws::String&& value) { SetMetro(std::move(value)); return *this;}
112 inline ClientLocation& WithMetro(const char* value) { SetMetro(value); return *this;}
114
116
119 inline const Aws::String& GetCity() const{ return m_city; }
120 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
121 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
122 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
123 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
124 inline ClientLocation& WithCity(const Aws::String& value) { SetCity(value); return *this;}
125 inline ClientLocation& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
126 inline ClientLocation& WithCity(const char* value) { SetCity(value); return *this;}
128
130
133 inline double GetLatitude() const{ return m_latitude; }
134 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
135 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
136 inline ClientLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
138
140
143 inline double GetLongitude() const{ return m_longitude; }
144 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
145 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
146 inline ClientLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
148 private:
149
150 Aws::String m_aSName;
151 bool m_aSNameHasBeenSet = false;
152
153 long long m_aSNumber;
154 bool m_aSNumberHasBeenSet = false;
155
156 Aws::String m_country;
157 bool m_countryHasBeenSet = false;
158
159 Aws::String m_subdivision;
160 bool m_subdivisionHasBeenSet = false;
161
162 Aws::String m_metro;
163 bool m_metroHasBeenSet = false;
164
165 Aws::String m_city;
166 bool m_cityHasBeenSet = false;
167
168 double m_latitude;
169 bool m_latitudeHasBeenSet = false;
170
171 double m_longitude;
172 bool m_longitudeHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace InternetMonitor
177} // namespace Aws
ClientLocation & WithASNumber(long long value)
ClientLocation & WithCity(Aws::String &&value)
void SetMetro(const Aws::String &value)
void SetCity(const Aws::String &value)
ClientLocation & WithLongitude(double value)
ClientLocation & WithCountry(Aws::String &&value)
ClientLocation & WithMetro(const char *value)
AWS_INTERNETMONITOR_API ClientLocation()
ClientLocation & WithASName(const char *value)
ClientLocation & WithSubdivision(const char *value)
AWS_INTERNETMONITOR_API ClientLocation(Aws::Utils::Json::JsonView jsonValue)
ClientLocation & WithASName(const Aws::String &value)
ClientLocation & WithMetro(const Aws::String &value)
ClientLocation & WithCity(const char *value)
void SetSubdivision(const Aws::String &value)
AWS_INTERNETMONITOR_API ClientLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
ClientLocation & WithMetro(Aws::String &&value)
ClientLocation & WithASName(Aws::String &&value)
ClientLocation & WithSubdivision(Aws::String &&value)
const Aws::String & GetSubdivision() const
void SetASName(const Aws::String &value)
ClientLocation & WithCountry(const char *value)
ClientLocation & WithLatitude(double value)
ClientLocation & WithCity(const Aws::String &value)
ClientLocation & WithCountry(const Aws::String &value)
void SetCountry(const Aws::String &value)
ClientLocation & WithSubdivision(const Aws::String &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