AWS SDK for C++

AWS SDK for C++ Version 1.11.832

Loading...
Searching...
No Matches
RouteRentalPlace.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/RouteRentalPlaceType.h>
12#include <aws/geo-routes/model/RouteStationDetails.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GeoRoutes {
24namespace Model {
25
33 public:
34 AWS_GEOROUTES_API RouteRentalPlace() = default;
35 AWS_GEOROUTES_API RouteRentalPlace(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const RouteAccessPointDetails& GetAccessPointDetails() const { return m_accessPointDetails; }
44 inline bool AccessPointDetailsHasBeenSet() const { return m_accessPointDetailsHasBeenSet; }
45 template <typename AccessPointDetailsT = RouteAccessPointDetails>
46 void SetAccessPointDetails(AccessPointDetailsT&& value) {
47 m_accessPointDetailsHasBeenSet = true;
48 m_accessPointDetails = std::forward<AccessPointDetailsT>(value);
49 }
50 template <typename AccessPointDetailsT = RouteAccessPointDetails>
51 RouteRentalPlace& WithAccessPointDetails(AccessPointDetailsT&& value) {
52 SetAccessPointDetails(std::forward<AccessPointDetailsT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 RouteRentalPlace& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::Vector<double>& GetOriginalPosition() const { return m_originalPosition; }
80 inline bool OriginalPositionHasBeenSet() const { return m_originalPositionHasBeenSet; }
81 template <typename OriginalPositionT = Aws::Vector<double>>
82 void SetOriginalPosition(OriginalPositionT&& value) {
83 m_originalPositionHasBeenSet = true;
84 m_originalPosition = std::forward<OriginalPositionT>(value);
85 }
86 template <typename OriginalPositionT = Aws::Vector<double>>
87 RouteRentalPlace& WithOriginalPosition(OriginalPositionT&& value) {
88 SetOriginalPosition(std::forward<OriginalPositionT>(value));
89 return *this;
90 }
91 inline RouteRentalPlace& AddOriginalPosition(double value) {
92 m_originalPositionHasBeenSet = true;
93 m_originalPosition.push_back(value);
94 return *this;
95 }
97
99
102 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
103 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
104 template <typename PositionT = Aws::Vector<double>>
105 void SetPosition(PositionT&& value) {
106 m_positionHasBeenSet = true;
107 m_position = std::forward<PositionT>(value);
108 }
109 template <typename PositionT = Aws::Vector<double>>
110 RouteRentalPlace& WithPosition(PositionT&& value) {
111 SetPosition(std::forward<PositionT>(value));
112 return *this;
113 }
114 inline RouteRentalPlace& AddPosition(double value) {
115 m_positionHasBeenSet = true;
116 m_position.push_back(value);
117 return *this;
118 }
120
122
125 inline const RouteStationDetails& GetStationDetails() const { return m_stationDetails; }
126 inline bool StationDetailsHasBeenSet() const { return m_stationDetailsHasBeenSet; }
127 template <typename StationDetailsT = RouteStationDetails>
128 void SetStationDetails(StationDetailsT&& value) {
129 m_stationDetailsHasBeenSet = true;
130 m_stationDetails = std::forward<StationDetailsT>(value);
131 }
132 template <typename StationDetailsT = RouteStationDetails>
133 RouteRentalPlace& WithStationDetails(StationDetailsT&& value) {
134 SetStationDetails(std::forward<StationDetailsT>(value));
135 return *this;
136 }
138
140
143 inline RouteRentalPlaceType GetType() const { return m_type; }
144 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
145 inline void SetType(RouteRentalPlaceType value) {
146 m_typeHasBeenSet = true;
147 m_type = value;
148 }
150 SetType(value);
151 return *this;
152 }
154
156
159 inline int GetWaypointIndex() const { return m_waypointIndex; }
160 inline bool WaypointIndexHasBeenSet() const { return m_waypointIndexHasBeenSet; }
161 inline void SetWaypointIndex(int value) {
162 m_waypointIndexHasBeenSet = true;
163 m_waypointIndex = value;
164 }
166 SetWaypointIndex(value);
167 return *this;
168 }
170 private:
171 RouteAccessPointDetails m_accessPointDetails;
172
173 Aws::String m_name;
174
175 Aws::Vector<double> m_originalPosition;
176
177 Aws::Vector<double> m_position;
178
179 RouteStationDetails m_stationDetails;
180
182
183 int m_waypointIndex{0};
184 bool m_accessPointDetailsHasBeenSet = false;
185 bool m_nameHasBeenSet = false;
186 bool m_originalPositionHasBeenSet = false;
187 bool m_positionHasBeenSet = false;
188 bool m_stationDetailsHasBeenSet = false;
189 bool m_typeHasBeenSet = false;
190 bool m_waypointIndexHasBeenSet = false;
191};
192
193} // namespace Model
194} // namespace GeoRoutes
195} // namespace Aws
AWS_GEOROUTES_API RouteRentalPlace()=default
const RouteAccessPointDetails & GetAccessPointDetails() const
RouteRentalPlace & WithStationDetails(StationDetailsT &&value)
RouteRentalPlace & WithName(NameT &&value)
void SetType(RouteRentalPlaceType value)
void SetStationDetails(StationDetailsT &&value)
RouteRentalPlaceType GetType() const
void SetOriginalPosition(OriginalPositionT &&value)
AWS_GEOROUTES_API RouteRentalPlace(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteRentalPlace & WithOriginalPosition(OriginalPositionT &&value)
const Aws::Vector< double > & GetPosition() const
RouteRentalPlace & WithWaypointIndex(int value)
const RouteStationDetails & GetStationDetails() const
const Aws::Vector< double > & GetOriginalPosition() const
RouteRentalPlace & WithPosition(PositionT &&value)
AWS_GEOROUTES_API RouteRentalPlace & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteRentalPlace & AddOriginalPosition(double value)
RouteRentalPlace & AddPosition(double value)
RouteRentalPlace & WithAccessPointDetails(AccessPointDetailsT &&value)
void SetAccessPointDetails(AccessPointDetailsT &&value)
RouteRentalPlace & WithType(RouteRentalPlaceType 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