AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RoutePedestrianPlace.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-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/RouteAccessPointDetails.h>
11#include <aws/geo-routes/model/RoutePedestrianPlaceType.h>
12#include <aws/geo-routes/model/RouteSideOfStreet.h>
13#include <aws/geo-routes/model/RouteStationDetails.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GeoRoutes {
25namespace Model {
26
34 public:
35 AWS_GEOROUTES_API RoutePedestrianPlace() = default;
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const RouteAccessPointDetails& GetAccessPointDetails() const { return m_accessPointDetails; }
45 inline bool AccessPointDetailsHasBeenSet() const { return m_accessPointDetailsHasBeenSet; }
46 template <typename AccessPointDetailsT = RouteAccessPointDetails>
47 void SetAccessPointDetails(AccessPointDetailsT&& value) {
48 m_accessPointDetailsHasBeenSet = true;
49 m_accessPointDetails = std::forward<AccessPointDetailsT>(value);
50 }
51 template <typename AccessPointDetailsT = RouteAccessPointDetails>
52 RoutePedestrianPlace& WithAccessPointDetails(AccessPointDetailsT&& value) {
53 SetAccessPointDetails(std::forward<AccessPointDetailsT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template <typename NameT = Aws::String>
65 void SetName(NameT&& value) {
66 m_nameHasBeenSet = true;
67 m_name = std::forward<NameT>(value);
68 }
69 template <typename NameT = Aws::String>
71 SetName(std::forward<NameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::Vector<double>& GetOriginalPosition() const { return m_originalPosition; }
81 inline bool OriginalPositionHasBeenSet() const { return m_originalPositionHasBeenSet; }
82 template <typename OriginalPositionT = Aws::Vector<double>>
83 void SetOriginalPosition(OriginalPositionT&& value) {
84 m_originalPositionHasBeenSet = true;
85 m_originalPosition = std::forward<OriginalPositionT>(value);
86 }
87 template <typename OriginalPositionT = Aws::Vector<double>>
88 RoutePedestrianPlace& WithOriginalPosition(OriginalPositionT&& value) {
89 SetOriginalPosition(std::forward<OriginalPositionT>(value));
90 return *this;
91 }
93 m_originalPositionHasBeenSet = true;
94 m_originalPosition.push_back(value);
95 return *this;
96 }
98
100
103 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
104 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
105 template <typename PositionT = Aws::Vector<double>>
106 void SetPosition(PositionT&& value) {
107 m_positionHasBeenSet = true;
108 m_position = std::forward<PositionT>(value);
109 }
110 template <typename PositionT = Aws::Vector<double>>
111 RoutePedestrianPlace& WithPosition(PositionT&& value) {
112 SetPosition(std::forward<PositionT>(value));
113 return *this;
114 }
115 inline RoutePedestrianPlace& AddPosition(double value) {
116 m_positionHasBeenSet = true;
117 m_position.push_back(value);
118 return *this;
119 }
121
123
127 inline RouteSideOfStreet GetSideOfStreet() const { return m_sideOfStreet; }
128 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
130 m_sideOfStreetHasBeenSet = true;
131 m_sideOfStreet = value;
132 }
134 SetSideOfStreet(value);
135 return *this;
136 }
138
140
143 inline const RouteStationDetails& GetStationDetails() const { return m_stationDetails; }
144 inline bool StationDetailsHasBeenSet() const { return m_stationDetailsHasBeenSet; }
145 template <typename StationDetailsT = RouteStationDetails>
146 void SetStationDetails(StationDetailsT&& value) {
147 m_stationDetailsHasBeenSet = true;
148 m_stationDetails = std::forward<StationDetailsT>(value);
149 }
150 template <typename StationDetailsT = RouteStationDetails>
151 RoutePedestrianPlace& WithStationDetails(StationDetailsT&& value) {
152 SetStationDetails(std::forward<StationDetailsT>(value));
153 return *this;
154 }
156
158
161 inline RoutePedestrianPlaceType GetType() const { return m_type; }
162 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
164 m_typeHasBeenSet = true;
165 m_type = value;
166 }
168 SetType(value);
169 return *this;
170 }
172
174
177 inline int GetWaypointIndex() const { return m_waypointIndex; }
178 inline bool WaypointIndexHasBeenSet() const { return m_waypointIndexHasBeenSet; }
179 inline void SetWaypointIndex(int value) {
180 m_waypointIndexHasBeenSet = true;
181 m_waypointIndex = value;
182 }
184 SetWaypointIndex(value);
185 return *this;
186 }
188 private:
189 RouteAccessPointDetails m_accessPointDetails;
190
191 Aws::String m_name;
192
193 Aws::Vector<double> m_originalPosition;
194
195 Aws::Vector<double> m_position;
196
198
199 RouteStationDetails m_stationDetails;
200
202
203 int m_waypointIndex{0};
204 bool m_accessPointDetailsHasBeenSet = false;
205 bool m_nameHasBeenSet = false;
206 bool m_originalPositionHasBeenSet = false;
207 bool m_positionHasBeenSet = false;
208 bool m_sideOfStreetHasBeenSet = false;
209 bool m_stationDetailsHasBeenSet = false;
210 bool m_typeHasBeenSet = false;
211 bool m_waypointIndexHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace GeoRoutes
216} // namespace Aws
RoutePedestrianPlace & WithAccessPointDetails(AccessPointDetailsT &&value)
RoutePedestrianPlace & WithWaypointIndex(int value)
AWS_GEOROUTES_API RoutePedestrianPlace & operator=(Aws::Utils::Json::JsonView jsonValue)
RoutePedestrianPlace & WithOriginalPosition(OriginalPositionT &&value)
RoutePedestrianPlace & WithPosition(PositionT &&value)
RoutePedestrianPlace & WithStationDetails(StationDetailsT &&value)
AWS_GEOROUTES_API RoutePedestrianPlace(Aws::Utils::Json::JsonView jsonValue)
RoutePedestrianPlace & WithSideOfStreet(RouteSideOfStreet value)
const RouteAccessPointDetails & GetAccessPointDetails() const
const Aws::Vector< double > & GetPosition() const
AWS_GEOROUTES_API RoutePedestrianPlace()=default
const RouteStationDetails & GetStationDetails() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(RoutePedestrianPlaceType value)
void SetOriginalPosition(OriginalPositionT &&value)
RoutePedestrianPlace & WithName(NameT &&value)
RoutePedestrianPlace & AddOriginalPosition(double value)
RoutePedestrianPlace & WithType(RoutePedestrianPlaceType value)
void SetAccessPointDetails(AccessPointDetailsT &&value)
const Aws::Vector< double > & GetOriginalPosition() const
RoutePedestrianPlace & AddPosition(double value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue