AWS SDK for C++

AWS SDK for C++ Version 1.11.775

Loading...
Searching...
No Matches
Intersection.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-places/GeoPlaces_EXPORTS.h>
10#include <aws/geo-places/model/AccessPoint.h>
11#include <aws/geo-places/model/Address.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoPlaces {
23namespace Model {
24
32 public:
33 AWS_GEOPLACES_API Intersection() = default;
34 AWS_GEOPLACES_API Intersection(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GEOPLACES_API Intersection& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetPlaceId() const { return m_placeId; }
43 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
44 template <typename PlaceIdT = Aws::String>
45 void SetPlaceId(PlaceIdT&& value) {
46 m_placeIdHasBeenSet = true;
47 m_placeId = std::forward<PlaceIdT>(value);
48 }
49 template <typename PlaceIdT = Aws::String>
50 Intersection& WithPlaceId(PlaceIdT&& value) {
51 SetPlaceId(std::forward<PlaceIdT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetTitle() const { return m_title; }
62 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
63 template <typename TitleT = Aws::String>
64 void SetTitle(TitleT&& value) {
65 m_titleHasBeenSet = true;
66 m_title = std::forward<TitleT>(value);
67 }
68 template <typename TitleT = Aws::String>
69 Intersection& WithTitle(TitleT&& value) {
70 SetTitle(std::forward<TitleT>(value));
71 return *this;
72 }
74
76
77 inline const Address& GetAddress() const { return m_address; }
78 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
79 template <typename AddressT = Address>
80 void SetAddress(AddressT&& value) {
81 m_addressHasBeenSet = true;
82 m_address = std::forward<AddressT>(value);
83 }
84 template <typename AddressT = Address>
85 Intersection& WithAddress(AddressT&& value) {
86 SetAddress(std::forward<AddressT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
97 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
98 template <typename PositionT = Aws::Vector<double>>
99 void SetPosition(PositionT&& value) {
100 m_positionHasBeenSet = true;
101 m_position = std::forward<PositionT>(value);
102 }
103 template <typename PositionT = Aws::Vector<double>>
104 Intersection& WithPosition(PositionT&& value) {
105 SetPosition(std::forward<PositionT>(value));
106 return *this;
107 }
108 inline Intersection& AddPosition(double value) {
109 m_positionHasBeenSet = true;
110 m_position.push_back(value);
111 return *this;
112 }
114
116
119 inline long long GetDistance() const { return m_distance; }
120 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
121 inline void SetDistance(long long value) {
122 m_distanceHasBeenSet = true;
123 m_distance = value;
124 }
125 inline Intersection& WithDistance(long long value) {
126 SetDistance(value);
127 return *this;
128 }
130
132
136 inline long long GetRouteDistance() const { return m_routeDistance; }
137 inline bool RouteDistanceHasBeenSet() const { return m_routeDistanceHasBeenSet; }
138 inline void SetRouteDistance(long long value) {
139 m_routeDistanceHasBeenSet = true;
140 m_routeDistance = value;
141 }
142 inline Intersection& WithRouteDistance(long long value) {
143 SetRouteDistance(value);
144 return *this;
145 }
147
149
155 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
156 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
157 template <typename MapViewT = Aws::Vector<double>>
158 void SetMapView(MapViewT&& value) {
159 m_mapViewHasBeenSet = true;
160 m_mapView = std::forward<MapViewT>(value);
161 }
162 template <typename MapViewT = Aws::Vector<double>>
163 Intersection& WithMapView(MapViewT&& value) {
164 SetMapView(std::forward<MapViewT>(value));
165 return *this;
166 }
167 inline Intersection& AddMapView(double value) {
168 m_mapViewHasBeenSet = true;
169 m_mapView.push_back(value);
170 return *this;
171 }
173
175
179 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
180 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
181 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
182 void SetAccessPoints(AccessPointsT&& value) {
183 m_accessPointsHasBeenSet = true;
184 m_accessPoints = std::forward<AccessPointsT>(value);
185 }
186 template <typename AccessPointsT = Aws::Vector<AccessPoint>>
187 Intersection& WithAccessPoints(AccessPointsT&& value) {
188 SetAccessPoints(std::forward<AccessPointsT>(value));
189 return *this;
190 }
191 template <typename AccessPointsT = AccessPoint>
192 Intersection& AddAccessPoints(AccessPointsT&& value) {
193 m_accessPointsHasBeenSet = true;
194 m_accessPoints.emplace_back(std::forward<AccessPointsT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_placeId;
200
201 Aws::String m_title;
202
203 Address m_address;
204
205 Aws::Vector<double> m_position;
206
207 long long m_distance{0};
208
209 long long m_routeDistance{0};
210
211 Aws::Vector<double> m_mapView;
212
213 Aws::Vector<AccessPoint> m_accessPoints;
214 bool m_placeIdHasBeenSet = false;
215 bool m_titleHasBeenSet = false;
216 bool m_addressHasBeenSet = false;
217 bool m_positionHasBeenSet = false;
218 bool m_distanceHasBeenSet = false;
219 bool m_routeDistanceHasBeenSet = false;
220 bool m_mapViewHasBeenSet = false;
221 bool m_accessPointsHasBeenSet = false;
222};
223
224} // namespace Model
225} // namespace GeoPlaces
226} // namespace Aws
Intersection & AddAccessPoints(AccessPointsT &&value)
Intersection & WithPlaceId(PlaceIdT &&value)
Intersection & WithPosition(PositionT &&value)
const Address & GetAddress() const
Intersection & WithAccessPoints(AccessPointsT &&value)
AWS_GEOPLACES_API Intersection()=default
AWS_GEOPLACES_API Intersection(Aws::Utils::Json::JsonView jsonValue)
void SetRouteDistance(long long value)
void SetPosition(PositionT &&value)
AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAddress(AddressT &&value)
void SetAccessPoints(AccessPointsT &&value)
void SetMapView(MapViewT &&value)
const Aws::Vector< double > & GetMapView() const
void SetPlaceId(PlaceIdT &&value)
Intersection & WithTitle(TitleT &&value)
Intersection & WithAddress(AddressT &&value)
Intersection & AddMapView(double value)
Intersection & WithDistance(long long value)
Intersection & AddPosition(double value)
AWS_GEOPLACES_API Intersection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetPosition() const
Intersection & WithRouteDistance(long long value)
void SetDistance(long long value)
const Aws::Vector< AccessPoint > & GetAccessPoints() const
const Aws::String & GetTitle() const
Intersection & WithMapView(MapViewT &&value)
const Aws::String & GetPlaceId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue