AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ASNameT = Aws::String>
48 void SetASName(ASNameT&& value) { m_aSNameHasBeenSet = true; m_aSName = std::forward<ASNameT>(value); }
49 template<typename ASNameT = Aws::String>
50 ClientLocation& WithASName(ASNameT&& value) { SetASName(std::forward<ASNameT>(value)); return *this;}
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) { m_aSNumberHasBeenSet = true; m_aSNumber = value; }
61 inline ClientLocation& WithASNumber(long long value) { SetASNumber(value); return *this;}
63
65
68 inline const Aws::String& GetCountry() const { return m_country; }
69 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
70 template<typename CountryT = Aws::String>
71 void SetCountry(CountryT&& value) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
72 template<typename CountryT = Aws::String>
73 ClientLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
75
77
83 inline const Aws::String& GetSubdivision() const { return m_subdivision; }
84 inline bool SubdivisionHasBeenSet() const { return m_subdivisionHasBeenSet; }
85 template<typename SubdivisionT = Aws::String>
86 void SetSubdivision(SubdivisionT&& value) { m_subdivisionHasBeenSet = true; m_subdivision = std::forward<SubdivisionT>(value); }
87 template<typename SubdivisionT = Aws::String>
88 ClientLocation& WithSubdivision(SubdivisionT&& value) { SetSubdivision(std::forward<SubdivisionT>(value)); return *this;}
90
92
99 inline const Aws::String& GetMetro() const { return m_metro; }
100 inline bool MetroHasBeenSet() const { return m_metroHasBeenSet; }
101 template<typename MetroT = Aws::String>
102 void SetMetro(MetroT&& value) { m_metroHasBeenSet = true; m_metro = std::forward<MetroT>(value); }
103 template<typename MetroT = Aws::String>
104 ClientLocation& WithMetro(MetroT&& value) { SetMetro(std::forward<MetroT>(value)); return *this;}
106
108
111 inline const Aws::String& GetCity() const { return m_city; }
112 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
113 template<typename CityT = Aws::String>
114 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
115 template<typename CityT = Aws::String>
116 ClientLocation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
118
120
123 inline double GetLatitude() const { return m_latitude; }
124 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
125 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
126 inline ClientLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
128
130
133 inline double GetLongitude() const { return m_longitude; }
134 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
135 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
136 inline ClientLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
138 private:
139
140 Aws::String m_aSName;
141 bool m_aSNameHasBeenSet = false;
142
143 long long m_aSNumber{0};
144 bool m_aSNumberHasBeenSet = false;
145
146 Aws::String m_country;
147 bool m_countryHasBeenSet = false;
148
149 Aws::String m_subdivision;
150 bool m_subdivisionHasBeenSet = false;
151
152 Aws::String m_metro;
153 bool m_metroHasBeenSet = false;
154
155 Aws::String m_city;
156 bool m_cityHasBeenSet = false;
157
158 double m_latitude{0.0};
159 bool m_latitudeHasBeenSet = false;
160
161 double m_longitude{0.0};
162 bool m_longitudeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace InternetMonitor
167} // 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