AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
WaypointOptimizationAvoidanceOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
9#include <aws/geo-routes/model/WaypointOptimizationAvoidanceArea.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
33 public:
34 AWS_GEOROUTES_API WaypointOptimizationAvoidanceOptions() = default;
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<WaypointOptimizationAvoidanceArea>& GetAreas() const { return m_areas; }
44 inline bool AreasHasBeenSet() const { return m_areasHasBeenSet; }
45 template <typename AreasT = Aws::Vector<WaypointOptimizationAvoidanceArea>>
46 void SetAreas(AreasT&& value) {
47 m_areasHasBeenSet = true;
48 m_areas = std::forward<AreasT>(value);
49 }
50 template <typename AreasT = Aws::Vector<WaypointOptimizationAvoidanceArea>>
52 SetAreas(std::forward<AreasT>(value));
53 return *this;
54 }
55 template <typename AreasT = WaypointOptimizationAvoidanceArea>
57 m_areasHasBeenSet = true;
58 m_areas.emplace_back(std::forward<AreasT>(value));
59 return *this;
60 }
62
64
67 inline bool GetCarShuttleTrains() const { return m_carShuttleTrains; }
68 inline bool CarShuttleTrainsHasBeenSet() const { return m_carShuttleTrainsHasBeenSet; }
69 inline void SetCarShuttleTrains(bool value) {
70 m_carShuttleTrainsHasBeenSet = true;
71 m_carShuttleTrains = value;
72 }
75 return *this;
76 }
78
80
83 inline bool GetControlledAccessHighways() const { return m_controlledAccessHighways; }
84 inline bool ControlledAccessHighwaysHasBeenSet() const { return m_controlledAccessHighwaysHasBeenSet; }
85 inline void SetControlledAccessHighways(bool value) {
86 m_controlledAccessHighwaysHasBeenSet = true;
87 m_controlledAccessHighways = value;
88 }
91 return *this;
92 }
94
96
99 inline bool GetDirtRoads() const { return m_dirtRoads; }
100 inline bool DirtRoadsHasBeenSet() const { return m_dirtRoadsHasBeenSet; }
101 inline void SetDirtRoads(bool value) {
102 m_dirtRoadsHasBeenSet = true;
103 m_dirtRoads = value;
104 }
106 SetDirtRoads(value);
107 return *this;
108 }
110
112
115 inline bool GetFerries() const { return m_ferries; }
116 inline bool FerriesHasBeenSet() const { return m_ferriesHasBeenSet; }
117 inline void SetFerries(bool value) {
118 m_ferriesHasBeenSet = true;
119 m_ferries = value;
120 }
122 SetFerries(value);
123 return *this;
124 }
126
128
132 inline bool GetTollRoads() const { return m_tollRoads; }
133 inline bool TollRoadsHasBeenSet() const { return m_tollRoadsHasBeenSet; }
134 inline void SetTollRoads(bool value) {
135 m_tollRoadsHasBeenSet = true;
136 m_tollRoads = value;
137 }
139 SetTollRoads(value);
140 return *this;
141 }
143
145
148 inline bool GetTunnels() const { return m_tunnels; }
149 inline bool TunnelsHasBeenSet() const { return m_tunnelsHasBeenSet; }
150 inline void SetTunnels(bool value) {
151 m_tunnelsHasBeenSet = true;
152 m_tunnels = value;
153 }
155 SetTunnels(value);
156 return *this;
157 }
159
161
164 inline bool GetUTurns() const { return m_uTurns; }
165 inline bool UTurnsHasBeenSet() const { return m_uTurnsHasBeenSet; }
166 inline void SetUTurns(bool value) {
167 m_uTurnsHasBeenSet = true;
168 m_uTurns = value;
169 }
171 SetUTurns(value);
172 return *this;
173 }
175 private:
177
178 bool m_carShuttleTrains{false};
179
180 bool m_controlledAccessHighways{false};
181
182 bool m_dirtRoads{false};
183
184 bool m_ferries{false};
185
186 bool m_tollRoads{false};
187
188 bool m_tunnels{false};
189
190 bool m_uTurns{false};
191 bool m_areasHasBeenSet = false;
192 bool m_carShuttleTrainsHasBeenSet = false;
193 bool m_controlledAccessHighwaysHasBeenSet = false;
194 bool m_dirtRoadsHasBeenSet = false;
195 bool m_ferriesHasBeenSet = false;
196 bool m_tollRoadsHasBeenSet = false;
197 bool m_tunnelsHasBeenSet = false;
198 bool m_uTurnsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace GeoRoutes
203} // namespace Aws
WaypointOptimizationAvoidanceOptions & AddAreas(AreasT &&value)
AWS_GEOROUTES_API WaypointOptimizationAvoidanceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API WaypointOptimizationAvoidanceOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
WaypointOptimizationAvoidanceOptions & WithAreas(AreasT &&value)
WaypointOptimizationAvoidanceOptions & WithCarShuttleTrains(bool value)
WaypointOptimizationAvoidanceOptions & WithControlledAccessHighways(bool value)
const Aws::Vector< WaypointOptimizationAvoidanceArea > & GetAreas() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue