AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
IsolineAvoidanceOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/model/IsolineAvoidanceArea.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/geo-routes/model/IsolineAvoidanceZoneCategory.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
38 {
39 public:
40 AWS_GEOROUTES_API IsolineAvoidanceOptions() = default;
43 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::Vector<IsolineAvoidanceArea>& GetAreas() const { return m_areas; }
51 inline bool AreasHasBeenSet() const { return m_areasHasBeenSet; }
52 template<typename AreasT = Aws::Vector<IsolineAvoidanceArea>>
53 void SetAreas(AreasT&& value) { m_areasHasBeenSet = true; m_areas = std::forward<AreasT>(value); }
54 template<typename AreasT = Aws::Vector<IsolineAvoidanceArea>>
55 IsolineAvoidanceOptions& WithAreas(AreasT&& value) { SetAreas(std::forward<AreasT>(value)); return *this;}
56 template<typename AreasT = IsolineAvoidanceArea>
57 IsolineAvoidanceOptions& AddAreas(AreasT&& value) { m_areasHasBeenSet = true; m_areas.emplace_back(std::forward<AreasT>(value)); return *this; }
59
61
64 inline bool GetCarShuttleTrains() const { return m_carShuttleTrains; }
65 inline bool CarShuttleTrainsHasBeenSet() const { return m_carShuttleTrainsHasBeenSet; }
66 inline void SetCarShuttleTrains(bool value) { m_carShuttleTrainsHasBeenSet = true; m_carShuttleTrains = value; }
67 inline IsolineAvoidanceOptions& WithCarShuttleTrains(bool value) { SetCarShuttleTrains(value); return *this;}
69
71
74 inline bool GetControlledAccessHighways() const { return m_controlledAccessHighways; }
75 inline bool ControlledAccessHighwaysHasBeenSet() const { return m_controlledAccessHighwaysHasBeenSet; }
76 inline void SetControlledAccessHighways(bool value) { m_controlledAccessHighwaysHasBeenSet = true; m_controlledAccessHighways = value; }
79
81
84 inline bool GetDirtRoads() const { return m_dirtRoads; }
85 inline bool DirtRoadsHasBeenSet() const { return m_dirtRoadsHasBeenSet; }
86 inline void SetDirtRoads(bool value) { m_dirtRoadsHasBeenSet = true; m_dirtRoads = value; }
87 inline IsolineAvoidanceOptions& WithDirtRoads(bool value) { SetDirtRoads(value); return *this;}
89
91
94 inline bool GetFerries() const { return m_ferries; }
95 inline bool FerriesHasBeenSet() const { return m_ferriesHasBeenSet; }
96 inline void SetFerries(bool value) { m_ferriesHasBeenSet = true; m_ferries = value; }
97 inline IsolineAvoidanceOptions& WithFerries(bool value) { SetFerries(value); return *this;}
99
101
104 inline bool GetSeasonalClosure() const { return m_seasonalClosure; }
105 inline bool SeasonalClosureHasBeenSet() const { return m_seasonalClosureHasBeenSet; }
106 inline void SetSeasonalClosure(bool value) { m_seasonalClosureHasBeenSet = true; m_seasonalClosure = value; }
107 inline IsolineAvoidanceOptions& WithSeasonalClosure(bool value) { SetSeasonalClosure(value); return *this;}
109
111
115 inline bool GetTollRoads() const { return m_tollRoads; }
116 inline bool TollRoadsHasBeenSet() const { return m_tollRoadsHasBeenSet; }
117 inline void SetTollRoads(bool value) { m_tollRoadsHasBeenSet = true; m_tollRoads = value; }
118 inline IsolineAvoidanceOptions& WithTollRoads(bool value) { SetTollRoads(value); return *this;}
120
122
126 inline bool GetTollTransponders() const { return m_tollTransponders; }
127 inline bool TollTranspondersHasBeenSet() const { return m_tollTranspondersHasBeenSet; }
128 inline void SetTollTransponders(bool value) { m_tollTranspondersHasBeenSet = true; m_tollTransponders = value; }
129 inline IsolineAvoidanceOptions& WithTollTransponders(bool value) { SetTollTransponders(value); return *this;}
131
133
139 inline const Aws::Vector<Aws::String>& GetTruckRoadTypes() const { return m_truckRoadTypes; }
140 inline bool TruckRoadTypesHasBeenSet() const { return m_truckRoadTypesHasBeenSet; }
141 template<typename TruckRoadTypesT = Aws::Vector<Aws::String>>
142 void SetTruckRoadTypes(TruckRoadTypesT&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = std::forward<TruckRoadTypesT>(value); }
143 template<typename TruckRoadTypesT = Aws::Vector<Aws::String>>
144 IsolineAvoidanceOptions& WithTruckRoadTypes(TruckRoadTypesT&& value) { SetTruckRoadTypes(std::forward<TruckRoadTypesT>(value)); return *this;}
145 template<typename TruckRoadTypesT = Aws::String>
146 IsolineAvoidanceOptions& AddTruckRoadTypes(TruckRoadTypesT&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.emplace_back(std::forward<TruckRoadTypesT>(value)); return *this; }
148
150
153 inline bool GetTunnels() const { return m_tunnels; }
154 inline bool TunnelsHasBeenSet() const { return m_tunnelsHasBeenSet; }
155 inline void SetTunnels(bool value) { m_tunnelsHasBeenSet = true; m_tunnels = value; }
156 inline IsolineAvoidanceOptions& WithTunnels(bool value) { SetTunnels(value); return *this;}
158
160
163 inline bool GetUTurns() const { return m_uTurns; }
164 inline bool UTurnsHasBeenSet() const { return m_uTurnsHasBeenSet; }
165 inline void SetUTurns(bool value) { m_uTurnsHasBeenSet = true; m_uTurns = value; }
166 inline IsolineAvoidanceOptions& WithUTurns(bool value) { SetUTurns(value); return *this;}
168
170
173 inline const Aws::Vector<IsolineAvoidanceZoneCategory>& GetZoneCategories() const { return m_zoneCategories; }
174 inline bool ZoneCategoriesHasBeenSet() const { return m_zoneCategoriesHasBeenSet; }
175 template<typename ZoneCategoriesT = Aws::Vector<IsolineAvoidanceZoneCategory>>
176 void SetZoneCategories(ZoneCategoriesT&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories = std::forward<ZoneCategoriesT>(value); }
177 template<typename ZoneCategoriesT = Aws::Vector<IsolineAvoidanceZoneCategory>>
178 IsolineAvoidanceOptions& WithZoneCategories(ZoneCategoriesT&& value) { SetZoneCategories(std::forward<ZoneCategoriesT>(value)); return *this;}
179 template<typename ZoneCategoriesT = IsolineAvoidanceZoneCategory>
180 IsolineAvoidanceOptions& AddZoneCategories(ZoneCategoriesT&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories.emplace_back(std::forward<ZoneCategoriesT>(value)); return *this; }
182 private:
183
185 bool m_areasHasBeenSet = false;
186
187 bool m_carShuttleTrains{false};
188 bool m_carShuttleTrainsHasBeenSet = false;
189
190 bool m_controlledAccessHighways{false};
191 bool m_controlledAccessHighwaysHasBeenSet = false;
192
193 bool m_dirtRoads{false};
194 bool m_dirtRoadsHasBeenSet = false;
195
196 bool m_ferries{false};
197 bool m_ferriesHasBeenSet = false;
198
199 bool m_seasonalClosure{false};
200 bool m_seasonalClosureHasBeenSet = false;
201
202 bool m_tollRoads{false};
203 bool m_tollRoadsHasBeenSet = false;
204
205 bool m_tollTransponders{false};
206 bool m_tollTranspondersHasBeenSet = false;
207
208 Aws::Vector<Aws::String> m_truckRoadTypes;
209 bool m_truckRoadTypesHasBeenSet = false;
210
211 bool m_tunnels{false};
212 bool m_tunnelsHasBeenSet = false;
213
214 bool m_uTurns{false};
215 bool m_uTurnsHasBeenSet = false;
216
218 bool m_zoneCategoriesHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace GeoRoutes
223} // namespace Aws
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
IsolineAvoidanceOptions & WithTollRoads(bool value)
IsolineAvoidanceOptions & WithSeasonalClosure(bool value)
IsolineAvoidanceOptions & WithZoneCategories(ZoneCategoriesT &&value)
IsolineAvoidanceOptions & AddTruckRoadTypes(TruckRoadTypesT &&value)
IsolineAvoidanceOptions & AddAreas(AreasT &&value)
IsolineAvoidanceOptions & WithUTurns(bool value)
IsolineAvoidanceOptions & WithTollTransponders(bool value)
IsolineAvoidanceOptions & WithFerries(bool value)
const Aws::Vector< Aws::String > & GetTruckRoadTypes() const
IsolineAvoidanceOptions & WithTunnels(bool value)
AWS_GEOROUTES_API IsolineAvoidanceOptions()=default
IsolineAvoidanceOptions & WithTruckRoadTypes(TruckRoadTypesT &&value)
const Aws::Vector< IsolineAvoidanceArea > & GetAreas() const
IsolineAvoidanceOptions & WithControlledAccessHighways(bool value)
const Aws::Vector< IsolineAvoidanceZoneCategory > & GetZoneCategories() const
IsolineAvoidanceOptions & AddZoneCategories(ZoneCategoriesT &&value)
AWS_GEOROUTES_API IsolineAvoidanceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
IsolineAvoidanceOptions & WithDirtRoads(bool value)
AWS_GEOROUTES_API IsolineAvoidanceOptions(Aws::Utils::Json::JsonView jsonValue)
IsolineAvoidanceOptions & WithCarShuttleTrains(bool value)
IsolineAvoidanceOptions & WithAreas(AreasT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue