AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Intersection.h
1
6#pragma once
7#include <aws/geo-places/GeoPlaces_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/geo-places/model/Address.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-places/model/AccessPoint.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoPlaces
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GEOPLACES_API Intersection() = default;
39 AWS_GEOPLACES_API Intersection(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GEOPLACES_API Intersection& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GEOPLACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetPlaceId() const { return m_placeId; }
49 inline bool PlaceIdHasBeenSet() const { return m_placeIdHasBeenSet; }
50 template<typename PlaceIdT = Aws::String>
51 void SetPlaceId(PlaceIdT&& value) { m_placeIdHasBeenSet = true; m_placeId = std::forward<PlaceIdT>(value); }
52 template<typename PlaceIdT = Aws::String>
53 Intersection& WithPlaceId(PlaceIdT&& value) { SetPlaceId(std::forward<PlaceIdT>(value)); return *this;}
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) { m_titleHasBeenSet = true; m_title = std::forward<TitleT>(value); }
65 template<typename TitleT = Aws::String>
66 Intersection& WithTitle(TitleT&& value) { SetTitle(std::forward<TitleT>(value)); return *this;}
68
70
71 inline const Address& GetAddress() const { return m_address; }
72 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
73 template<typename AddressT = Address>
74 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
75 template<typename AddressT = Address>
76 Intersection& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
78
80
83 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
84 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
85 template<typename PositionT = Aws::Vector<double>>
86 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
87 template<typename PositionT = Aws::Vector<double>>
88 Intersection& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
89 inline Intersection& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
91
93
96 inline long long GetDistance() const { return m_distance; }
97 inline bool DistanceHasBeenSet() const { return m_distanceHasBeenSet; }
98 inline void SetDistance(long long value) { m_distanceHasBeenSet = true; m_distance = value; }
99 inline Intersection& WithDistance(long long value) { SetDistance(value); return *this;}
101
103
107 inline long long GetRouteDistance() const { return m_routeDistance; }
108 inline bool RouteDistanceHasBeenSet() const { return m_routeDistanceHasBeenSet; }
109 inline void SetRouteDistance(long long value) { m_routeDistanceHasBeenSet = true; m_routeDistance = value; }
110 inline Intersection& WithRouteDistance(long long value) { SetRouteDistance(value); return *this;}
112
114
120 inline const Aws::Vector<double>& GetMapView() const { return m_mapView; }
121 inline bool MapViewHasBeenSet() const { return m_mapViewHasBeenSet; }
122 template<typename MapViewT = Aws::Vector<double>>
123 void SetMapView(MapViewT&& value) { m_mapViewHasBeenSet = true; m_mapView = std::forward<MapViewT>(value); }
124 template<typename MapViewT = Aws::Vector<double>>
125 Intersection& WithMapView(MapViewT&& value) { SetMapView(std::forward<MapViewT>(value)); return *this;}
126 inline Intersection& AddMapView(double value) { m_mapViewHasBeenSet = true; m_mapView.push_back(value); return *this; }
128
130
133 inline const Aws::Vector<AccessPoint>& GetAccessPoints() const { return m_accessPoints; }
134 inline bool AccessPointsHasBeenSet() const { return m_accessPointsHasBeenSet; }
135 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
136 void SetAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints = std::forward<AccessPointsT>(value); }
137 template<typename AccessPointsT = Aws::Vector<AccessPoint>>
138 Intersection& WithAccessPoints(AccessPointsT&& value) { SetAccessPoints(std::forward<AccessPointsT>(value)); return *this;}
139 template<typename AccessPointsT = AccessPoint>
140 Intersection& AddAccessPoints(AccessPointsT&& value) { m_accessPointsHasBeenSet = true; m_accessPoints.emplace_back(std::forward<AccessPointsT>(value)); return *this; }
142 private:
143
144 Aws::String m_placeId;
145 bool m_placeIdHasBeenSet = false;
146
147 Aws::String m_title;
148 bool m_titleHasBeenSet = false;
149
150 Address m_address;
151 bool m_addressHasBeenSet = false;
152
153 Aws::Vector<double> m_position;
154 bool m_positionHasBeenSet = false;
155
156 long long m_distance{0};
157 bool m_distanceHasBeenSet = false;
158
159 long long m_routeDistance{0};
160 bool m_routeDistanceHasBeenSet = false;
161
162 Aws::Vector<double> m_mapView;
163 bool m_mapViewHasBeenSet = false;
164
165 Aws::Vector<AccessPoint> m_accessPoints;
166 bool m_accessPointsHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace GeoPlaces
171} // 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