AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RouteMatrixAvoidanceOptions.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/RouteMatrixAvoidanceArea.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/geo-routes/model/RouteMatrixAvoidanceZoneCategory.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
40 {
41 public:
42 AWS_GEOROUTES_API RouteMatrixAvoidanceOptions() = default;
45 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::Vector<RouteMatrixAvoidanceArea>& GetAreas() const { return m_areas; }
53 inline bool AreasHasBeenSet() const { return m_areasHasBeenSet; }
54 template<typename AreasT = Aws::Vector<RouteMatrixAvoidanceArea>>
55 void SetAreas(AreasT&& value) { m_areasHasBeenSet = true; m_areas = std::forward<AreasT>(value); }
56 template<typename AreasT = Aws::Vector<RouteMatrixAvoidanceArea>>
57 RouteMatrixAvoidanceOptions& WithAreas(AreasT&& value) { SetAreas(std::forward<AreasT>(value)); return *this;}
58 template<typename AreasT = RouteMatrixAvoidanceArea>
59 RouteMatrixAvoidanceOptions& AddAreas(AreasT&& value) { m_areasHasBeenSet = true; m_areas.emplace_back(std::forward<AreasT>(value)); return *this; }
61
63
66 inline bool GetCarShuttleTrains() const { return m_carShuttleTrains; }
67 inline bool CarShuttleTrainsHasBeenSet() const { return m_carShuttleTrainsHasBeenSet; }
68 inline void SetCarShuttleTrains(bool value) { m_carShuttleTrainsHasBeenSet = true; m_carShuttleTrains = value; }
69 inline RouteMatrixAvoidanceOptions& WithCarShuttleTrains(bool value) { SetCarShuttleTrains(value); return *this;}
71
73
76 inline bool GetControlledAccessHighways() const { return m_controlledAccessHighways; }
77 inline bool ControlledAccessHighwaysHasBeenSet() const { return m_controlledAccessHighwaysHasBeenSet; }
78 inline void SetControlledAccessHighways(bool value) { m_controlledAccessHighwaysHasBeenSet = true; m_controlledAccessHighways = value; }
81
83
86 inline bool GetDirtRoads() const { return m_dirtRoads; }
87 inline bool DirtRoadsHasBeenSet() const { return m_dirtRoadsHasBeenSet; }
88 inline void SetDirtRoads(bool value) { m_dirtRoadsHasBeenSet = true; m_dirtRoads = value; }
89 inline RouteMatrixAvoidanceOptions& WithDirtRoads(bool value) { SetDirtRoads(value); return *this;}
91
93
96 inline bool GetFerries() const { return m_ferries; }
97 inline bool FerriesHasBeenSet() const { return m_ferriesHasBeenSet; }
98 inline void SetFerries(bool value) { m_ferriesHasBeenSet = true; m_ferries = value; }
99 inline RouteMatrixAvoidanceOptions& WithFerries(bool value) { SetFerries(value); return *this;}
101
103
107 inline bool GetTollRoads() const { return m_tollRoads; }
108 inline bool TollRoadsHasBeenSet() const { return m_tollRoadsHasBeenSet; }
109 inline void SetTollRoads(bool value) { m_tollRoadsHasBeenSet = true; m_tollRoads = value; }
110 inline RouteMatrixAvoidanceOptions& WithTollRoads(bool value) { SetTollRoads(value); return *this;}
112
114
118 inline bool GetTollTransponders() const { return m_tollTransponders; }
119 inline bool TollTranspondersHasBeenSet() const { return m_tollTranspondersHasBeenSet; }
120 inline void SetTollTransponders(bool value) { m_tollTranspondersHasBeenSet = true; m_tollTransponders = value; }
121 inline RouteMatrixAvoidanceOptions& WithTollTransponders(bool value) { SetTollTransponders(value); return *this;}
123
125
131 inline const Aws::Vector<Aws::String>& GetTruckRoadTypes() const { return m_truckRoadTypes; }
132 inline bool TruckRoadTypesHasBeenSet() const { return m_truckRoadTypesHasBeenSet; }
133 template<typename TruckRoadTypesT = Aws::Vector<Aws::String>>
134 void SetTruckRoadTypes(TruckRoadTypesT&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = std::forward<TruckRoadTypesT>(value); }
135 template<typename TruckRoadTypesT = Aws::Vector<Aws::String>>
136 RouteMatrixAvoidanceOptions& WithTruckRoadTypes(TruckRoadTypesT&& value) { SetTruckRoadTypes(std::forward<TruckRoadTypesT>(value)); return *this;}
137 template<typename TruckRoadTypesT = Aws::String>
138 RouteMatrixAvoidanceOptions& AddTruckRoadTypes(TruckRoadTypesT&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.emplace_back(std::forward<TruckRoadTypesT>(value)); return *this; }
140
142
145 inline bool GetTunnels() const { return m_tunnels; }
146 inline bool TunnelsHasBeenSet() const { return m_tunnelsHasBeenSet; }
147 inline void SetTunnels(bool value) { m_tunnelsHasBeenSet = true; m_tunnels = value; }
148 inline RouteMatrixAvoidanceOptions& WithTunnels(bool value) { SetTunnels(value); return *this;}
150
152
155 inline bool GetUTurns() const { return m_uTurns; }
156 inline bool UTurnsHasBeenSet() const { return m_uTurnsHasBeenSet; }
157 inline void SetUTurns(bool value) { m_uTurnsHasBeenSet = true; m_uTurns = value; }
158 inline RouteMatrixAvoidanceOptions& WithUTurns(bool value) { SetUTurns(value); return *this;}
160
162
165 inline const Aws::Vector<RouteMatrixAvoidanceZoneCategory>& GetZoneCategories() const { return m_zoneCategories; }
166 inline bool ZoneCategoriesHasBeenSet() const { return m_zoneCategoriesHasBeenSet; }
167 template<typename ZoneCategoriesT = Aws::Vector<RouteMatrixAvoidanceZoneCategory>>
168 void SetZoneCategories(ZoneCategoriesT&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories = std::forward<ZoneCategoriesT>(value); }
169 template<typename ZoneCategoriesT = Aws::Vector<RouteMatrixAvoidanceZoneCategory>>
170 RouteMatrixAvoidanceOptions& WithZoneCategories(ZoneCategoriesT&& value) { SetZoneCategories(std::forward<ZoneCategoriesT>(value)); return *this;}
171 template<typename ZoneCategoriesT = RouteMatrixAvoidanceZoneCategory>
172 RouteMatrixAvoidanceOptions& AddZoneCategories(ZoneCategoriesT&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories.emplace_back(std::forward<ZoneCategoriesT>(value)); return *this; }
174 private:
175
177 bool m_areasHasBeenSet = false;
178
179 bool m_carShuttleTrains{false};
180 bool m_carShuttleTrainsHasBeenSet = false;
181
182 bool m_controlledAccessHighways{false};
183 bool m_controlledAccessHighwaysHasBeenSet = false;
184
185 bool m_dirtRoads{false};
186 bool m_dirtRoadsHasBeenSet = false;
187
188 bool m_ferries{false};
189 bool m_ferriesHasBeenSet = false;
190
191 bool m_tollRoads{false};
192 bool m_tollRoadsHasBeenSet = false;
193
194 bool m_tollTransponders{false};
195 bool m_tollTranspondersHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_truckRoadTypes;
198 bool m_truckRoadTypesHasBeenSet = false;
199
200 bool m_tunnels{false};
201 bool m_tunnelsHasBeenSet = false;
202
203 bool m_uTurns{false};
204 bool m_uTurnsHasBeenSet = false;
205
207 bool m_zoneCategoriesHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace GeoRoutes
212} // namespace Aws
RouteMatrixAvoidanceOptions & WithDirtRoads(bool value)
const Aws::Vector< RouteMatrixAvoidanceZoneCategory > & GetZoneCategories() const
AWS_GEOROUTES_API RouteMatrixAvoidanceOptions(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixAvoidanceOptions & WithTollRoads(bool value)
RouteMatrixAvoidanceOptions & WithCarShuttleTrains(bool value)
AWS_GEOROUTES_API RouteMatrixAvoidanceOptions()=default
const Aws::Vector< RouteMatrixAvoidanceArea > & GetAreas() const
RouteMatrixAvoidanceOptions & WithZoneCategories(ZoneCategoriesT &&value)
AWS_GEOROUTES_API RouteMatrixAvoidanceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTruckRoadTypes() const
RouteMatrixAvoidanceOptions & AddZoneCategories(ZoneCategoriesT &&value)
RouteMatrixAvoidanceOptions & AddAreas(AreasT &&value)
RouteMatrixAvoidanceOptions & WithAreas(AreasT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixAvoidanceOptions & WithControlledAccessHighways(bool value)
RouteMatrixAvoidanceOptions & WithTollTransponders(bool value)
RouteMatrixAvoidanceOptions & WithFerries(bool value)
RouteMatrixAvoidanceOptions & AddTruckRoadTypes(TruckRoadTypesT &&value)
RouteMatrixAvoidanceOptions & WithTunnels(bool value)
RouteMatrixAvoidanceOptions & WithTruckRoadTypes(TruckRoadTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue