AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccessHours(const WaypointOptimizationAccessHours& value) { m_accessHoursHasBeenSet = true; m_accessHours = value; }
50 inline void SetAccessHours(WaypointOptimizationAccessHours&& value) { m_accessHoursHasBeenSet = true; m_accessHours = std::move(value); }
54
56
59 inline const Aws::String& GetAppointmentTime() const{ return m_appointmentTime; }
60 inline bool AppointmentTimeHasBeenSet() const { return m_appointmentTimeHasBeenSet; }
61 inline void SetAppointmentTime(const Aws::String& value) { m_appointmentTimeHasBeenSet = true; m_appointmentTime = value; }
62 inline void SetAppointmentTime(Aws::String&& value) { m_appointmentTimeHasBeenSet = true; m_appointmentTime = std::move(value); }
63 inline void SetAppointmentTime(const char* value) { m_appointmentTimeHasBeenSet = true; m_appointmentTime.assign(value); }
65 inline WaypointOptimizationWaypoint& WithAppointmentTime(Aws::String&& value) { SetAppointmentTime(std::move(value)); return *this;}
66 inline WaypointOptimizationWaypoint& WithAppointmentTime(const char* value) { SetAppointmentTime(value); return *this;}
68
70
73 inline const Aws::Vector<int>& GetBefore() const{ return m_before; }
74 inline bool BeforeHasBeenSet() const { return m_beforeHasBeenSet; }
75 inline void SetBefore(const Aws::Vector<int>& value) { m_beforeHasBeenSet = true; m_before = value; }
76 inline void SetBefore(Aws::Vector<int>&& value) { m_beforeHasBeenSet = true; m_before = std::move(value); }
77 inline WaypointOptimizationWaypoint& WithBefore(const Aws::Vector<int>& value) { SetBefore(value); return *this;}
78 inline WaypointOptimizationWaypoint& WithBefore(Aws::Vector<int>&& value) { SetBefore(std::move(value)); return *this;}
79 inline WaypointOptimizationWaypoint& AddBefore(int value) { m_beforeHasBeenSet = true; m_before.push_back(value); return *this; }
81
83
86 inline double GetHeading() const{ return m_heading; }
87 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
88 inline void SetHeading(double value) { m_headingHasBeenSet = true; m_heading = value; }
89 inline WaypointOptimizationWaypoint& WithHeading(double value) { SetHeading(value); return *this;}
91
93
96 inline const Aws::String& GetId() const{ return m_id; }
97 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
98 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
99 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
100 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
101 inline WaypointOptimizationWaypoint& WithId(const Aws::String& value) { SetId(value); return *this;}
102 inline WaypointOptimizationWaypoint& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
103 inline WaypointOptimizationWaypoint& WithId(const char* value) { SetId(value); return *this;}
105
107
110 inline const Aws::Vector<double>& GetPosition() const{ return m_position; }
111 inline bool PositionHasBeenSet() const { return m_positionHasBeenSet; }
112 inline void SetPosition(const Aws::Vector<double>& value) { m_positionHasBeenSet = true; m_position = value; }
113 inline void SetPosition(Aws::Vector<double>&& value) { m_positionHasBeenSet = true; m_position = std::move(value); }
114 inline WaypointOptimizationWaypoint& WithPosition(const Aws::Vector<double>& value) { SetPosition(value); return *this;}
115 inline WaypointOptimizationWaypoint& WithPosition(Aws::Vector<double>&& value) { SetPosition(std::move(value)); return *this;}
116 inline WaypointOptimizationWaypoint& AddPosition(double value) { m_positionHasBeenSet = true; m_position.push_back(value); return *this; }
118
120
125 inline long long GetServiceDuration() const{ return m_serviceDuration; }
126 inline bool ServiceDurationHasBeenSet() const { return m_serviceDurationHasBeenSet; }
127 inline void SetServiceDuration(long long value) { m_serviceDurationHasBeenSet = true; m_serviceDuration = value; }
128 inline WaypointOptimizationWaypoint& WithServiceDuration(long long value) { SetServiceDuration(value); return *this;}
130
132
136 inline const WaypointOptimizationSideOfStreetOptions& GetSideOfStreet() const{ return m_sideOfStreet; }
137 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
138 inline void SetSideOfStreet(const WaypointOptimizationSideOfStreetOptions& value) { m_sideOfStreetHasBeenSet = true; m_sideOfStreet = value; }
139 inline void SetSideOfStreet(WaypointOptimizationSideOfStreetOptions&& value) { m_sideOfStreetHasBeenSet = true; m_sideOfStreet = std::move(value); }
143 private:
144
146 bool m_accessHoursHasBeenSet = false;
147
148 Aws::String m_appointmentTime;
149 bool m_appointmentTimeHasBeenSet = false;
150
151 Aws::Vector<int> m_before;
152 bool m_beforeHasBeenSet = false;
153
154 double m_heading;
155 bool m_headingHasBeenSet = false;
156
157 Aws::String m_id;
158 bool m_idHasBeenSet = false;
159
160 Aws::Vector<double> m_position;
161 bool m_positionHasBeenSet = false;
162
163 long long m_serviceDuration;
164 bool m_serviceDurationHasBeenSet = false;
165
167 bool m_sideOfStreetHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace GeoRoutes
172} // namespace Aws
const WaypointOptimizationSideOfStreetOptions & GetSideOfStreet() const
const WaypointOptimizationAccessHours & GetAccessHours() const
WaypointOptimizationWaypoint & WithServiceDuration(long long value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationWaypoint & WithPosition(const Aws::Vector< double > &value)
WaypointOptimizationWaypoint & WithAppointmentTime(const char *value)
void SetSideOfStreet(const WaypointOptimizationSideOfStreetOptions &value)
WaypointOptimizationWaypoint & AddPosition(double value)
WaypointOptimizationWaypoint & WithBefore(Aws::Vector< int > &&value)
WaypointOptimizationWaypoint & WithAppointmentTime(Aws::String &&value)
WaypointOptimizationWaypoint & WithId(Aws::String &&value)
WaypointOptimizationWaypoint & WithAppointmentTime(const Aws::String &value)
WaypointOptimizationWaypoint & WithBefore(const Aws::Vector< int > &value)
AWS_GEOROUTES_API WaypointOptimizationWaypoint(Aws::Utils::Json::JsonView jsonValue)
WaypointOptimizationWaypoint & WithAccessHours(const WaypointOptimizationAccessHours &value)
WaypointOptimizationWaypoint & WithSideOfStreet(const WaypointOptimizationSideOfStreetOptions &value)
WaypointOptimizationWaypoint & WithHeading(double value)
WaypointOptimizationWaypoint & WithPosition(Aws::Vector< double > &&value)
void SetAccessHours(const WaypointOptimizationAccessHours &value)
WaypointOptimizationWaypoint & WithSideOfStreet(WaypointOptimizationSideOfStreetOptions &&value)
WaypointOptimizationWaypoint & WithId(const Aws::String &value)
AWS_GEOROUTES_API WaypointOptimizationWaypoint & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAccessHours(WaypointOptimizationAccessHours &&value)
void SetSideOfStreet(WaypointOptimizationSideOfStreetOptions &&value)
WaypointOptimizationWaypoint & WithAccessHours(WaypointOptimizationAccessHours &&value)
WaypointOptimizationWaypoint & WithId(const char *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