AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCity(const Aws::String& value) { m_cityHasBeenSet = true; m_city = value; }
48 inline void SetCity(Aws::String&& value) { m_cityHasBeenSet = true; m_city = std::move(value); }
49 inline void SetCity(const char* value) { m_cityHasBeenSet = true; m_city.assign(value); }
50 inline EndpointLocation& WithCity(const Aws::String& value) { SetCity(value); return *this;}
51 inline EndpointLocation& WithCity(Aws::String&& value) { SetCity(std::move(value)); return *this;}
52 inline EndpointLocation& WithCity(const char* value) { SetCity(value); return *this;}
54
56
60 inline const Aws::String& GetCountry() const{ return m_country; }
61 inline bool CountryHasBeenSet() const { return m_countryHasBeenSet; }
62 inline void SetCountry(const Aws::String& value) { m_countryHasBeenSet = true; m_country = value; }
63 inline void SetCountry(Aws::String&& value) { m_countryHasBeenSet = true; m_country = std::move(value); }
64 inline void SetCountry(const char* value) { m_countryHasBeenSet = true; m_country.assign(value); }
65 inline EndpointLocation& WithCountry(const Aws::String& value) { SetCountry(value); return *this;}
66 inline EndpointLocation& WithCountry(Aws::String&& value) { SetCountry(std::move(value)); return *this;}
67 inline EndpointLocation& WithCountry(const char* value) { SetCountry(value); return *this;}
69
71
75 inline double GetLatitude() const{ return m_latitude; }
76 inline bool LatitudeHasBeenSet() const { return m_latitudeHasBeenSet; }
77 inline void SetLatitude(double value) { m_latitudeHasBeenSet = true; m_latitude = value; }
78 inline EndpointLocation& WithLatitude(double value) { SetLatitude(value); return *this;}
80
82
86 inline double GetLongitude() const{ return m_longitude; }
87 inline bool LongitudeHasBeenSet() const { return m_longitudeHasBeenSet; }
88 inline void SetLongitude(double value) { m_longitudeHasBeenSet = true; m_longitude = value; }
89 inline EndpointLocation& WithLongitude(double value) { SetLongitude(value); return *this;}
91
93
96 inline const Aws::String& GetPostalCode() const{ return m_postalCode; }
97 inline bool PostalCodeHasBeenSet() const { return m_postalCodeHasBeenSet; }
98 inline void SetPostalCode(const Aws::String& value) { m_postalCodeHasBeenSet = true; m_postalCode = value; }
99 inline void SetPostalCode(Aws::String&& value) { m_postalCodeHasBeenSet = true; m_postalCode = std::move(value); }
100 inline void SetPostalCode(const char* value) { m_postalCodeHasBeenSet = true; m_postalCode.assign(value); }
101 inline EndpointLocation& WithPostalCode(const Aws::String& value) { SetPostalCode(value); return *this;}
102 inline EndpointLocation& WithPostalCode(Aws::String&& value) { SetPostalCode(std::move(value)); return *this;}
103 inline EndpointLocation& WithPostalCode(const char* value) { SetPostalCode(value); return *this;}
105
107
111 inline const Aws::String& GetRegion() const{ return m_region; }
112 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
113 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
114 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
115 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
116 inline EndpointLocation& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
117 inline EndpointLocation& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
118 inline EndpointLocation& WithRegion(const char* value) { SetRegion(value); return *this;}
120 private:
121
122 Aws::String m_city;
123 bool m_cityHasBeenSet = false;
124
125 Aws::String m_country;
126 bool m_countryHasBeenSet = false;
127
128 double m_latitude;
129 bool m_latitudeHasBeenSet = false;
130
131 double m_longitude;
132 bool m_longitudeHasBeenSet = false;
133
134 Aws::String m_postalCode;
135 bool m_postalCodeHasBeenSet = false;
136
137 Aws::String m_region;
138 bool m_regionHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Pinpoint
143} // namespace Aws
void SetCity(const Aws::String &value)
EndpointLocation & WithLatitude(double value)
EndpointLocation & WithRegion(Aws::String &&value)
AWS_PINPOINT_API EndpointLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API EndpointLocation(Aws::Utils::Json::JsonView jsonValue)
EndpointLocation & WithPostalCode(const Aws::String &value)
void SetCountry(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
EndpointLocation & WithLongitude(double value)
EndpointLocation & WithCountry(const char *value)
EndpointLocation & WithCity(const Aws::String &value)
void SetPostalCode(Aws::String &&value)
EndpointLocation & WithCountry(const Aws::String &value)
const Aws::String & GetPostalCode() const
void SetRegion(const Aws::String &value)
EndpointLocation & WithCity(Aws::String &&value)
EndpointLocation & WithPostalCode(const char *value)
const Aws::String & GetCity() const
EndpointLocation & WithRegion(const Aws::String &value)
EndpointLocation & WithCity(const char *value)
void SetPostalCode(const Aws::String &value)
EndpointLocation & WithRegion(const char *value)
const Aws::String & GetCountry() const
const Aws::String & GetRegion() const
EndpointLocation & WithCountry(Aws::String &&value)
EndpointLocation & WithPostalCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue