AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EndpointLocation.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_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 Pinpoint
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_PINPOINT_API EndpointLocation() = default;
36 AWS_PINPOINT_API EndpointLocation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetCity() const { return m_city; }
46 inline bool CityHasBeenSet() const { return m_cityHasBeenSet; }
47 template<typename CityT = Aws::String>
48 void SetCity(CityT&& value) { m_cityHasBeenSet = true; m_city = std::forward<CityT>(value); }
49 template<typename CityT = Aws::String>
50 EndpointLocation& WithCity(CityT&& value) { SetCity(std::forward<CityT>(value)); return *this;}
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) { m_countryHasBeenSet = true; m_country = std::forward<CountryT>(value); }
62 template<typename CountryT = Aws::String>
63 EndpointLocation& WithCountry(CountryT&& value) { SetCountry(std::forward<CountryT>(value)); return *this;}
65
67
71 inline double GetLatitude() const { return m_latitude; }
72 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
73 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
74 inline EndpointLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
76
78
82 inline double GetLongitude() const { return m_longitude; }
83 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
84 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
85 inline EndpointLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
87
89
92 inline const Aws::String& GetPostalCode() const { return m_postalCode; }
93 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
94 template<typename PostalCodeT = Aws::String>
95 void SetPostalCode(PostalCodeT&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::forward<PostalCodeT>(value); }
96 template<typename PostalCodeT = Aws::String>
97 EndpointLocation& WithPostalCode(PostalCodeT&& value) { SetPostalCode(std::forward<PostalCodeT>(value)); return *this;}
99
101
105 inline const Aws::String& GetRegion() const { return m_region; }
106 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
107 template<typename RegionT = Aws::String>
108 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
109 template<typename RegionT = Aws::String>
110 EndpointLocation& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
112 private:
113
114 Aws::String m_city;
115 bool m_cityHasBeenSet = false;
116
117 Aws::String m_country;
118 bool m_countryHasBeenSet = false;
119
120 double m_latitude{0.0};
121 bool m_latitudeHasBeenSet = false;
122
123 double m_longitude{0.0};
124 bool m_longitudeHasBeenSet = false;
125
126 Aws::String m_postalCode;
127 bool m_postalCodeHasBeenSet = false;
128
129 Aws::String m_region;
130 bool m_regionHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace Pinpoint
135} // 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