AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
WaypointOptimizationDestinationOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/WaypointOptimizationAccessHours.h>
10#include <aws/geo-routes/model/WaypointOptimizationSideOfStreetOptions.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GeoRoutes {
22namespace Model {
23
30 public:
31 AWS_GEOROUTES_API WaypointOptimizationDestinationOptions() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const WaypointOptimizationAccessHours& GetAccessHours() const { return m_accessHours; }
41 inline bool AccessHoursHasBeenSet() const { return m_accessHoursHasBeenSet; }
42 template <typename AccessHoursT = WaypointOptimizationAccessHours>
43 void SetAccessHours(AccessHoursT&& value) {
44 m_accessHoursHasBeenSet = true;
45 m_accessHours = std::forward<AccessHoursT>(value);
46 }
47 template <typename AccessHoursT = WaypointOptimizationAccessHours>
49 SetAccessHours(std::forward<AccessHoursT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAppointmentTime() const { return m_appointmentTime; }
59 inline bool AppointmentTimeHasBeenSet() const { return m_appointmentTimeHasBeenSet; }
60 template <typename AppointmentTimeT = Aws::String>
61 void SetAppointmentTime(AppointmentTimeT&& value) {
62 m_appointmentTimeHasBeenSet = true;
63 m_appointmentTime = std::forward<AppointmentTimeT>(value);
64 }
65 template <typename AppointmentTimeT = Aws::String>
67 SetAppointmentTime(std::forward<AppointmentTimeT>(value));
68 return *this;
69 }
71
73
76 inline double GetHeading() const { return m_heading; }
77 inline bool HeadingHasBeenSet() const { return m_headingHasBeenSet; }
78 inline void SetHeading(double value) {
79 m_headingHasBeenSet = true;
80 m_heading = value;
81 }
83 SetHeading(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetId() const { return m_id; }
93 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
94 template <typename IdT = Aws::String>
95 void SetId(IdT&& value) {
96 m_idHasBeenSet = true;
97 m_id = std::forward<IdT>(value);
98 }
99 template <typename IdT = Aws::String>
101 SetId(std::forward<IdT>(value));
102 return *this;
103 }
105
107
112 inline long long GetServiceDuration() const { return m_serviceDuration; }
113 inline bool ServiceDurationHasBeenSet() const { return m_serviceDurationHasBeenSet; }
114 inline void SetServiceDuration(long long value) {
115 m_serviceDurationHasBeenSet = true;
116 m_serviceDuration = value;
117 }
119 SetServiceDuration(value);
120 return *this;
121 }
123
125
129 inline const WaypointOptimizationSideOfStreetOptions& GetSideOfStreet() const { return m_sideOfStreet; }
130 inline bool SideOfStreetHasBeenSet() const { return m_sideOfStreetHasBeenSet; }
131 template <typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
132 void SetSideOfStreet(SideOfStreetT&& value) {
133 m_sideOfStreetHasBeenSet = true;
134 m_sideOfStreet = std::forward<SideOfStreetT>(value);
135 }
136 template <typename SideOfStreetT = WaypointOptimizationSideOfStreetOptions>
138 SetSideOfStreet(std::forward<SideOfStreetT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_appointmentTime;
146
147 double m_heading{0.0};
148
149 Aws::String m_id;
150
151 long long m_serviceDuration{0};
152
153 WaypointOptimizationSideOfStreetOptions m_sideOfStreet;
154 bool m_accessHoursHasBeenSet = false;
155 bool m_appointmentTimeHasBeenSet = false;
156 bool m_headingHasBeenSet = false;
157 bool m_idHasBeenSet = false;
158 bool m_serviceDurationHasBeenSet = false;
159 bool m_sideOfStreetHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace GeoRoutes
164} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationDestinationOptions & WithServiceDuration(long long value)
WaypointOptimizationDestinationOptions & WithSideOfStreet(SideOfStreetT &&value)
AWS_GEOROUTES_API WaypointOptimizationDestinationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationDestinationOptions(Aws::Utils::Json::JsonView jsonValue)
const WaypointOptimizationSideOfStreetOptions & GetSideOfStreet() const
WaypointOptimizationDestinationOptions & WithAppointmentTime(AppointmentTimeT &&value)
WaypointOptimizationDestinationOptions & WithAccessHours(AccessHoursT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue