AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
WaypointOptimizationWaypoint.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/WaypointOptimizationAccessHours.h>
11#include <aws/geo-routes/model/WaypointOptimizationSideOfStreetOptions.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes {
23namespace Model {
24
31 public:
32 AWS_GEOROUTES_API WaypointOptimizationWaypoint() = default;
35 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const WaypointOptimizationAccessHours& GetAccessHours() const { return m_accessHours; }
42 inline bool AccessHoursHasBeenSet() const { return m_accessHoursHasBeenSet; }
43 template <typename AccessHoursT = WaypointOptimizationAccessHours>
44 void SetAccessHours(AccessHoursT&& value) {
45 m_accessHoursHasBeenSet = true;
46 m_accessHours = std::forward<AccessHoursT>(value);
47 }
48 template <typename AccessHoursT = WaypointOptimizationAccessHours>
50 SetAccessHours(std::forward<AccessHoursT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAppointmentTime() const { return m_appointmentTime; }
60 inline bool AppointmentTimeHasBeenSet() const { return m_appointmentTimeHasBeenSet; }
61 template <typename AppointmentTimeT = Aws::String>
62 void SetAppointmentTime(AppointmentTimeT&& value) {
63 m_appointmentTimeHasBeenSet = true;
64 m_appointmentTime = std::forward<AppointmentTimeT>(value);
65 }
66 template <typename AppointmentTimeT = Aws::String>
68 SetAppointmentTime(std::forward<AppointmentTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<int>& GetBefore() const { return m_before; }
78 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
79 template <typename BeforeT = Aws::Vector<int>>
80 void SetBefore(BeforeT&& value) {
81 m_beforeHasBeenSet = true;
82 m_before = std::forward<BeforeT>(value);
83 }
84 template <typename BeforeT = Aws::Vector<int>>
86 SetBefore(std::forward<BeforeT>(value));
87 return *this;
88 }
90 m_beforeHasBeenSet = true;
91 m_before.push_back(value);
92 return *this;
93 }
95
97
100 inline double GetHeading() const { return m_heading; }
101 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
102 inline void SetHeading(double value) {
103 m_headingHasBeenSet = true;
104 m_heading = value;
105 }
107 SetHeading(value);
108 return *this;
109 }
111
113
116 inline const Aws::String& GetId() const { return m_id; }
117 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
118 template <typename IdT = Aws::String>
119 void SetId(IdT&& value) {
120 m_idHasBeenSet = true;
121 m_id = std::forward<IdT>(value);
122 }
123 template <typename IdT = Aws::String>
125 SetId(std::forward<IdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
135 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
136 template <typename PositionT = Aws::Vector<double>>
137 void SetPosition(PositionT&& value) {
138 m_positionHasBeenSet = true;
139 m_position = std::forward<PositionT>(value);
140 }
141 template <typename PositionT = Aws::Vector<double>>
143 SetPosition(std::forward<PositionT>(value));
144 return *this;
145 }
147 m_positionHasBeenSet = true;
148 m_position.push_back(value);
149 return *this;
150 }
152
154
159 inline long long GetServiceDuration() const { return m_serviceDuration; }
160 inline bool ServiceDurationHasBeenSet() const { return m_serviceDurationHasBeenSet; }
161 inline void SetServiceDuration(long long value) {
162 m_serviceDurationHasBeenSet = true;
163 m_serviceDuration = value;
164 }
166 SetServiceDuration(value);
167 return *this;
168 }
170
172
176 inline const WaypointOptimizationSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
177 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
178 template <typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
179 void SetSideOfStreet(SideOfStreetT&& value) {
180 m_sideOfStreetHasBeenSet = true;
181 m_sideOfStreet = std::forward<SideOfStreetT>(value);
182 }
183 template <typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
185 SetSideOfStreet(std::forward<SideOfStreetT>(value));
186 return *this;
187 }
189 private:
191
192 Aws::String m_appointmentTime;
193
194 Aws::Vector<int> m_before;
195
196 double m_heading{0.0};
197
198 Aws::String m_id;
199
200 Aws::Vector<double> m_position;
201
202 long long m_serviceDuration{0};
203
204 WaypointOptimizationSideOfStreetOptions m_sideOfStreet;
205 bool m_accessHoursHasBeenSet = false;
206 bool m_appointmentTimeHasBeenSet = false;
207 bool m_beforeHasBeenSet = false;
208 bool m_headingHasBeenSet = false;
209 bool m_idHasBeenSet = false;
210 bool m_positionHasBeenSet = false;
211 bool m_serviceDurationHasBeenSet = false;
212 bool m_sideOfStreetHasBeenSet = false;
213};
214
215} // namespace Model
216} // namespace GeoRoutes
217} // namespace Aws
WaypointOptimizationWaypoint & WithAppointmentTime(AppointmentTimeT &&value)
AWS_GEOROUTES_API WaypointOptimizationWaypoint()=default
const WaypointOptimizationSideOfStreetOptions & GetSideOfStreet() const
WaypointOptimizationWaypoint & WithPosition(PositionT &&value)
const WaypointOptimizationAccessHours & GetAccessHours() const
WaypointOptimizationWaypoint & WithServiceDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationWaypoint & AddPosition(double value)
AWS_GEOROUTES_API WaypointOptimizationWaypoint(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationWaypoint & WithHeading(double value)
WaypointOptimizationWaypoint & WithSideOfStreet(SideOfStreetT &&value)
WaypointOptimizationWaypoint & WithBefore(BeforeT &&value)
WaypointOptimizationWaypoint & WithAccessHours(AccessHoursT &&value)
AWS_GEOROUTES_API WaypointOptimizationWaypoint & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue