AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteVehiclePlace.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/RouteSideOfStreet.h>
12#include <aws/geo-routes/model/RouteStationDetails.h>
13#include <aws/geo-routes/model/RouteVehiclePlaceType.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 RouteVehiclePlace() = default;
36 AWS_GEOROUTES_API RouteVehiclePlace(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
52 RouteVehiclePlace& WithName(NameT&& value) {
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::Vector<double>& GetOriginalPosition() const { return m_originalPosition; }
63 inline bool OriginalPositionHasBeenSet() const { return m_originalPositionHasBeenSet; }
64 template <typename OriginalPositionT = Aws::Vector<double>>
65 void SetOriginalPosition(OriginalPositionT&& value) {
66 m_originalPositionHasBeenSet = true;
67 m_originalPosition = std::forward<OriginalPositionT>(value);
68 }
69 template <typename OriginalPositionT = Aws::Vector<double>>
70 RouteVehiclePlace& WithOriginalPosition(OriginalPositionT&& value) {
71 SetOriginalPosition(std::forward<OriginalPositionT>(value));
72 return *this;
73 }
74 inline RouteVehiclePlace& AddOriginalPosition(double value) {
75 m_originalPositionHasBeenSet = true;
76 m_originalPosition.push_back(value);
77 return *this;
78 }
80
82
85 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
86 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
87 template <typename PositionT = Aws::Vector<double>>
88 void SetPosition(PositionT&& value) {
89 m_positionHasBeenSet = true;
90 m_position = std::forward<PositionT>(value);
91 }
92 template <typename PositionT = Aws::Vector<double>>
93 RouteVehiclePlace& WithPosition(PositionT&& value) {
94 SetPosition(std::forward<PositionT>(value));
95 return *this;
96 }
97 inline RouteVehiclePlace& AddPosition(double value) {
98 m_positionHasBeenSet = true;
99 m_position.push_back(value);
100 return *this;
101 }
103
105
109 inline RouteSideOfStreet GetSideOfStreet() const { return m_sideOfStreet; }
110 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
112 m_sideOfStreetHasBeenSet = true;
113 m_sideOfStreet = value;
114 }
116 SetSideOfStreet(value);
117 return *this;
118 }
120
122
125 inline int GetWaypointIndex() const { return m_waypointIndex; }
126 inline bool WaypointIndexHasBeenSet() const { return m_waypointIndexHasBeenSet; }
127 inline void SetWaypointIndex(int value) {
128 m_waypointIndexHasBeenSet = true;
129 m_waypointIndex = value;
130 }
132 SetWaypointIndex(value);
133 return *this;
134 }
136
138
141 inline const RouteAccessPointDetails& GetAccessPointDetails() const { return m_accessPointDetails; }
142 inline bool AccessPointDetailsHasBeenSet() const { return m_accessPointDetailsHasBeenSet; }
143 template <typename AccessPointDetailsT = RouteAccessPointDetails>
144 void SetAccessPointDetails(AccessPointDetailsT&& value) {
145 m_accessPointDetailsHasBeenSet = true;
146 m_accessPointDetails = std::forward<AccessPointDetailsT>(value);
147 }
148 template <typename AccessPointDetailsT = RouteAccessPointDetails>
149 RouteVehiclePlace& WithAccessPointDetails(AccessPointDetailsT&& value) {
150 SetAccessPointDetails(std::forward<AccessPointDetailsT>(value));
151 return *this;
152 }
154
156
159 inline const RouteStationDetails& GetStationDetails() const { return m_stationDetails; }
160 inline bool StationDetailsHasBeenSet() const { return m_stationDetailsHasBeenSet; }
161 template <typename StationDetailsT = RouteStationDetails>
162 void SetStationDetails(StationDetailsT&& value) {
163 m_stationDetailsHasBeenSet = true;
164 m_stationDetails = std::forward<StationDetailsT>(value);
165 }
166 template <typename StationDetailsT = RouteStationDetails>
167 RouteVehiclePlace& WithStationDetails(StationDetailsT&& value) {
168 SetStationDetails(std::forward<StationDetailsT>(value));
169 return *this;
170 }
172
174
177 inline RouteVehiclePlaceType GetType() const { return m_type; }
178 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
179 inline void SetType(RouteVehiclePlaceType value) {
180 m_typeHasBeenSet = true;
181 m_type = value;
182 }
184 SetType(value);
185 return *this;
186 }
188 private:
189 Aws::String m_name;
190
191 Aws::Vector<double> m_originalPosition;
192
193 Aws::Vector<double> m_position;
194
196
197 int m_waypointIndex{0};
198
199 RouteAccessPointDetails m_accessPointDetails;
200
201 RouteStationDetails m_stationDetails;
202
204 bool m_nameHasBeenSet = false;
205 bool m_originalPositionHasBeenSet = false;
206 bool m_positionHasBeenSet = false;
207 bool m_sideOfStreetHasBeenSet = false;
208 bool m_waypointIndexHasBeenSet = false;
209 bool m_accessPointDetailsHasBeenSet = false;
210 bool m_stationDetailsHasBeenSet = false;
211 bool m_typeHasBeenSet = false;
212};
213
214} // namespace Model
215} // namespace GeoRoutes
216} // namespace Aws
AWS_GEOROUTES_API RouteVehiclePlace(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< double > & GetPosition() const
RouteVehiclePlace & WithStationDetails(StationDetailsT &&value)
RouteVehiclePlace & WithWaypointIndex(int value)
RouteVehiclePlace & WithType(RouteVehiclePlaceType value)
void SetOriginalPosition(OriginalPositionT &&value)
AWS_GEOROUTES_API RouteVehiclePlace()=default
RouteVehiclePlaceType GetType() const
RouteVehiclePlace & WithAccessPointDetails(AccessPointDetailsT &&value)
void SetSideOfStreet(RouteSideOfStreet value)
RouteVehiclePlace & AddOriginalPosition(double value)
RouteVehiclePlace & WithName(NameT &&value)
void SetType(RouteVehiclePlaceType value)
const RouteStationDetails & GetStationDetails() const
const Aws::Vector< double > & GetOriginalPosition() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccessPointDetails(AccessPointDetailsT &&value)
void SetStationDetails(StationDetailsT &&value)
RouteVehiclePlace & WithSideOfStreet(RouteSideOfStreet value)
const RouteAccessPointDetails & GetAccessPointDetails() const
RouteVehiclePlace & WithOriginalPosition(OriginalPositionT &&value)
RouteVehiclePlace & AddPosition(double value)
AWS_GEOROUTES_API RouteVehiclePlace & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteVehiclePlace & WithPosition(PositionT &&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