AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
WaypointOptimizationWaypoint.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/WaypointOptimizationAccessHours.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/geo-routes/model/WaypointOptimizationSideOfStreetOptions.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 GeoRoutes
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_GEOROUTES_API WaypointOptimizationWaypoint() = default;
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const WaypointOptimizationAccessHours& GetAccessHours() const { return m_accessHours; }
48 inline bool AccessHoursHasBeenSet() const { return m_accessHoursHasBeenSet; }
49 template<typename AccessHoursT = WaypointOptimizationAccessHours>
50 void SetAccessHours(AccessHoursT&& value) { m_accessHoursHasBeenSet = true; m_accessHours = std::forward<AccessHoursT>(value); }
51 template<typename AccessHoursT = WaypointOptimizationAccessHours>
52 WaypointOptimizationWaypoint& WithAccessHours(AccessHoursT&& value) { SetAccessHours(std::forward<AccessHoursT>(value)); return *this;}
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) { m_appointmentTimeHasBeenSet = true; m_appointmentTime = std::forward<AppointmentTimeT>(value); }
63 template<typename AppointmentTimeT = Aws::String>
64 WaypointOptimizationWaypoint& WithAppointmentTime(AppointmentTimeT&& value) { SetAppointmentTime(std::forward<AppointmentTimeT>(value)); return *this;}
66
68
71 inline const Aws::Vector<int>& GetBefore() const { return m_before; }
72 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
73 template<typename BeforeT = Aws::Vector<int>>
74 void SetBefore(BeforeT&& value) { m_beforeHasBeenSet = true; m_before = std::forward<BeforeT>(value); }
75 template<typename BeforeT = Aws::Vector<int>>
76 WaypointOptimizationWaypoint& WithBefore(BeforeT&& value) { SetBefore(std::forward<BeforeT>(value)); return *this;}
77 inline WaypointOptimizationWaypoint& AddBefore(int value) { m_beforeHasBeenSet = true; m_before.push_back(value); return *this; }
79
81
84 inline double GetHeading() const { return m_heading; }
85 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
86 inline void SetHeading(double value) { m_headingHasBeenSet = true; m_heading = value; }
87 inline WaypointOptimizationWaypoint& WithHeading(double value) { SetHeading(value); return *this;}
89
91
94 inline const Aws::String& GetId() const { return m_id; }
95 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
96 template<typename IdT = Aws::String>
97 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
98 template<typename IdT = Aws::String>
99 WaypointOptimizationWaypoint& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
101
103
106 inline const Aws::Vector<double>& GetPosition() const { return m_position; }
107 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
108 template<typename PositionT = Aws::Vector<double>>
109 void SetPosition(PositionT&& value) { m_positionHasBeenSet = true; m_position = std::forward<PositionT>(value); }
110 template<typename PositionT = Aws::Vector<double>>
111 WaypointOptimizationWaypoint& WithPosition(PositionT&& value) { SetPosition(std::forward<PositionT>(value)); return *this;}
112 inline WaypointOptimizationWaypoint& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
114
116
121 inline long long GetServiceDuration() const { return m_serviceDuration; }
122 inline bool ServiceDurationHasBeenSet() const { return m_serviceDurationHasBeenSet; }
123 inline void SetServiceDuration(long long value) { m_serviceDurationHasBeenSet = true; m_serviceDuration = value; }
124 inline WaypointOptimizationWaypoint& WithServiceDuration(long long value) { SetServiceDuration(value); return *this;}
126
128
132 inline const WaypointOptimizationSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
133 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
134 template<typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
135 void SetSideOfStreet(SideOfStreetT&& value) { m_sideOfStreetHasBeenSet = true; m_sideOfStreet = std::forward<SideOfStreetT>(value); }
136 template<typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
137 WaypointOptimizationWaypoint& WithSideOfStreet(SideOfStreetT&& value) { SetSideOfStreet(std::forward<SideOfStreetT>(value)); return *this;}
139 private:
140
142 bool m_accessHoursHasBeenSet = false;
143
144 Aws::String m_appointmentTime;
145 bool m_appointmentTimeHasBeenSet = false;
146
147 Aws::Vector<int> m_before;
148 bool m_beforeHasBeenSet = false;
149
150 double m_heading{0.0};
151 bool m_headingHasBeenSet = false;
152
153 Aws::String m_id;
154 bool m_idHasBeenSet = false;
155
156 Aws::Vector<double> m_position;
157 bool m_positionHasBeenSet = false;
158
159 long long m_serviceDuration{0};
160 bool m_serviceDurationHasBeenSet = false;
161
162 WaypointOptimizationSideOfStreetOptions m_sideOfStreet;
163 bool m_sideOfStreetHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace GeoRoutes
168} // 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