AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
EndpointLocation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
29 public:
30 AWS_PINPOINT_API EndpointLocation() = default;
31 AWS_PINPOINT_API EndpointLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCity() const { return m_city; }
40 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
41 template <typename CityT = Aws::String>
42 void SetCity(CityT&& value) {
43 m_cityHasBeenSet = true;
44 m_city = std::forward<CityT>(value);
45 }
46 template <typename CityT = Aws::String>
47 EndpointLocation& WithCity(CityT&& value) {
48 SetCity(std::forward<CityT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetCountry() const { return m_country; }
59 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
60 template <typename CountryT = Aws::String>
61 void SetCountry(CountryT&& value) {
62 m_countryHasBeenSet = true;
63 m_country = std::forward<CountryT>(value);
64 }
65 template <typename CountryT = Aws::String>
66 EndpointLocation& WithCountry(CountryT&& value) {
67 SetCountry(std::forward<CountryT>(value));
68 return *this;
69 }
71
73
77 inline double GetLatitude() const { return m_latitude; }
78 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
79 inline void SetLatitude(double value) {
80 m_latitudeHasBeenSet = true;
81 m_latitude = value;
82 }
83 inline EndpointLocation& WithLatitude(double value) {
84 SetLatitude(value);
85 return *this;
86 }
88
90
94 inline double GetLongitude() const { return m_longitude; }
95 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
96 inline void SetLongitude(double value) {
97 m_longitudeHasBeenSet = true;
98 m_longitude = value;
99 }
100 inline EndpointLocation& WithLongitude(double value) {
101 SetLongitude(value);
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
111 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
112 template <typename PostalCodeT = Aws::String>
113 void SetPostalCode(PostalCodeT&& value) {
114 m_postalCodeHasBeenSet = true;
115 m_postalCode = std::forward<PostalCodeT>(value);
116 }
117 template <typename PostalCodeT = Aws::String>
118 EndpointLocation& WithPostalCode(PostalCodeT&& value) {
119 SetPostalCode(std::forward<PostalCodeT>(value));
120 return *this;
121 }
123
125
129 inline const Aws::String& GetRegion() const { return m_region; }
130 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
131 template <typename RegionT = Aws::String>
132 void SetRegion(RegionT&& value) {
133 m_regionHasBeenSet = true;
134 m_region = std::forward<RegionT>(value);
135 }
136 template <typename RegionT = Aws::String>
137 EndpointLocation& WithRegion(RegionT&& value) {
138 SetRegion(std::forward<RegionT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_city;
144
145 Aws::String m_country;
146
147 double m_latitude{0.0};
148
149 double m_longitude{0.0};
150
151 Aws::String m_postalCode;
152
153 Aws::String m_region;
154 bool m_cityHasBeenSet = false;
155 bool m_countryHasBeenSet = false;
156 bool m_latitudeHasBeenSet = false;
157 bool m_longitudeHasBeenSet = false;
158 bool m_postalCodeHasBeenSet = false;
159 bool m_regionHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Pinpoint
164} // namespace Aws
EndpointLocation & WithLatitude(double value)
AWS_PINPOINT_API EndpointLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EndpointLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointLocation & WithPostalCode(PostalCodeT &&value)
EndpointLocation & WithLongitude(double value)
EndpointLocation & WithCity(CityT &&value)
const Aws::String & GetPostalCode() const
AWS_PINPOINT_API EndpointLocation()=default
void SetPostalCode(PostalCodeT &&value)
const Aws::String & GetCity() const
const Aws::String & GetCountry() const
EndpointLocation & WithCountry(CountryT &&value)
EndpointLocation & WithRegion(RegionT &&value)
const Aws::String & GetRegion() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue