AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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
35 {
36 public:
37 AWS_GEOROUTES_API RouteMatrixAvoidanceOptions();
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<RouteMatrixAvoidanceArea>& GetAreas() const{ return m_areas; }
48 inline bool AreasHasBeenSet() const { return m_areasHasBeenSet; }
49 inline void SetAreas(const Aws::Vector<RouteMatrixAvoidanceArea>& value) { m_areasHasBeenSet = true; m_areas = value; }
50 inline void SetAreas(Aws::Vector<RouteMatrixAvoidanceArea>&& value) { m_areasHasBeenSet = true; m_areas = std::move(value); }
52 inline RouteMatrixAvoidanceOptions& WithAreas(Aws::Vector<RouteMatrixAvoidanceArea>&& value) { SetAreas(std::move(value)); return *this;}
53 inline RouteMatrixAvoidanceOptions& AddAreas(const RouteMatrixAvoidanceArea& value) { m_areasHasBeenSet = true; m_areas.push_back(value); return *this; }
54 inline RouteMatrixAvoidanceOptions& AddAreas(RouteMatrixAvoidanceArea&& value) { m_areasHasBeenSet = true; m_areas.push_back(std::move(value)); return *this; }
56
58
61 inline bool GetCarShuttleTrains() const{ return m_carShuttleTrains; }
62 inline bool CarShuttleTrainsHasBeenSet() const { return m_carShuttleTrainsHasBeenSet; }
63 inline void SetCarShuttleTrains(bool value) { m_carShuttleTrainsHasBeenSet = true; m_carShuttleTrains = value; }
64 inline RouteMatrixAvoidanceOptions& WithCarShuttleTrains(bool value) { SetCarShuttleTrains(value); return *this;}
66
68
71 inline bool GetControlledAccessHighways() const{ return m_controlledAccessHighways; }
72 inline bool ControlledAccessHighwaysHasBeenSet() const { return m_controlledAccessHighwaysHasBeenSet; }
73 inline void SetControlledAccessHighways(bool value) { m_controlledAccessHighwaysHasBeenSet = true; m_controlledAccessHighways = value; }
76
78
81 inline bool GetDirtRoads() const{ return m_dirtRoads; }
82 inline bool DirtRoadsHasBeenSet() const { return m_dirtRoadsHasBeenSet; }
83 inline void SetDirtRoads(bool value) { m_dirtRoadsHasBeenSet = true; m_dirtRoads = value; }
84 inline RouteMatrixAvoidanceOptions& WithDirtRoads(bool value) { SetDirtRoads(value); return *this;}
86
88
91 inline bool GetFerries() const{ return m_ferries; }
92 inline bool FerriesHasBeenSet() const { return m_ferriesHasBeenSet; }
93 inline void SetFerries(bool value) { m_ferriesHasBeenSet = true; m_ferries = value; }
94 inline RouteMatrixAvoidanceOptions& WithFerries(bool value) { SetFerries(value); return *this;}
96
98
102 inline bool GetTollRoads() const{ return m_tollRoads; }
103 inline bool TollRoadsHasBeenSet() const { return m_tollRoadsHasBeenSet; }
104 inline void SetTollRoads(bool value) { m_tollRoadsHasBeenSet = true; m_tollRoads = value; }
105 inline RouteMatrixAvoidanceOptions& WithTollRoads(bool value) { SetTollRoads(value); return *this;}
107
109
113 inline bool GetTollTransponders() const{ return m_tollTransponders; }
114 inline bool TollTranspondersHasBeenSet() const { return m_tollTranspondersHasBeenSet; }
115 inline void SetTollTransponders(bool value) { m_tollTranspondersHasBeenSet = true; m_tollTransponders = value; }
116 inline RouteMatrixAvoidanceOptions& WithTollTransponders(bool value) { SetTollTransponders(value); return *this;}
118
120
126 inline const Aws::Vector<Aws::String>& GetTruckRoadTypes() const{ return m_truckRoadTypes; }
127 inline bool TruckRoadTypesHasBeenSet() const { return m_truckRoadTypesHasBeenSet; }
128 inline void SetTruckRoadTypes(const Aws::Vector<Aws::String>& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = value; }
129 inline void SetTruckRoadTypes(Aws::Vector<Aws::String>&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes = std::move(value); }
132 inline RouteMatrixAvoidanceOptions& AddTruckRoadTypes(const Aws::String& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(value); return *this; }
133 inline RouteMatrixAvoidanceOptions& AddTruckRoadTypes(Aws::String&& value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(std::move(value)); return *this; }
134 inline RouteMatrixAvoidanceOptions& AddTruckRoadTypes(const char* value) { m_truckRoadTypesHasBeenSet = true; m_truckRoadTypes.push_back(value); return *this; }
136
138
141 inline bool GetTunnels() const{ return m_tunnels; }
142 inline bool TunnelsHasBeenSet() const { return m_tunnelsHasBeenSet; }
143 inline void SetTunnels(bool value) { m_tunnelsHasBeenSet = true; m_tunnels = value; }
144 inline RouteMatrixAvoidanceOptions& WithTunnels(bool value) { SetTunnels(value); return *this;}
146
148
151 inline bool GetUTurns() const{ return m_uTurns; }
152 inline bool UTurnsHasBeenSet() const { return m_uTurnsHasBeenSet; }
153 inline void SetUTurns(bool value) { m_uTurnsHasBeenSet = true; m_uTurns = value; }
154 inline RouteMatrixAvoidanceOptions& WithUTurns(bool value) { SetUTurns(value); return *this;}
156
158
161 inline const Aws::Vector<RouteMatrixAvoidanceZoneCategory>& GetZoneCategories() const{ return m_zoneCategories; }
162 inline bool ZoneCategoriesHasBeenSet() const { return m_zoneCategoriesHasBeenSet; }
163 inline void SetZoneCategories(const Aws::Vector<RouteMatrixAvoidanceZoneCategory>& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories = value; }
164 inline void SetZoneCategories(Aws::Vector<RouteMatrixAvoidanceZoneCategory>&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories = std::move(value); }
167 inline RouteMatrixAvoidanceOptions& AddZoneCategories(const RouteMatrixAvoidanceZoneCategory& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories.push_back(value); return *this; }
168 inline RouteMatrixAvoidanceOptions& AddZoneCategories(RouteMatrixAvoidanceZoneCategory&& value) { m_zoneCategoriesHasBeenSet = true; m_zoneCategories.push_back(std::move(value)); return *this; }
170 private:
171
173 bool m_areasHasBeenSet = false;
174
175 bool m_carShuttleTrains;
176 bool m_carShuttleTrainsHasBeenSet = false;
177
178 bool m_controlledAccessHighways;
179 bool m_controlledAccessHighwaysHasBeenSet = false;
180
181 bool m_dirtRoads;
182 bool m_dirtRoadsHasBeenSet = false;
183
184 bool m_ferries;
185 bool m_ferriesHasBeenSet = false;
186
187 bool m_tollRoads;
188 bool m_tollRoadsHasBeenSet = false;
189
190 bool m_tollTransponders;
191 bool m_tollTranspondersHasBeenSet = false;
192
193 Aws::Vector<Aws::String> m_truckRoadTypes;
194 bool m_truckRoadTypesHasBeenSet = false;
195
196 bool m_tunnels;
197 bool m_tunnelsHasBeenSet = false;
198
199 bool m_uTurns;
200 bool m_uTurnsHasBeenSet = false;
201
203 bool m_zoneCategoriesHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace GeoRoutes
208} // namespace Aws
RouteMatrixAvoidanceOptions & WithDirtRoads(bool value)
const Aws::Vector< RouteMatrixAvoidanceZoneCategory > & GetZoneCategories() const
RouteMatrixAvoidanceOptions & AddTruckRoadTypes(const Aws::String &value)
RouteMatrixAvoidanceOptions & AddAreas(const RouteMatrixAvoidanceArea &value)
AWS_GEOROUTES_API RouteMatrixAvoidanceOptions(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixAvoidanceOptions & WithTollRoads(bool value)
RouteMatrixAvoidanceOptions & WithCarShuttleTrains(bool value)
const Aws::Vector< RouteMatrixAvoidanceArea > & GetAreas() const
RouteMatrixAvoidanceOptions & AddTruckRoadTypes(const char *value)
void SetAreas(Aws::Vector< RouteMatrixAvoidanceArea > &&value)
RouteMatrixAvoidanceOptions & WithZoneCategories(Aws::Vector< RouteMatrixAvoidanceZoneCategory > &&value)
RouteMatrixAvoidanceOptions & AddTruckRoadTypes(Aws::String &&value)
AWS_GEOROUTES_API RouteMatrixAvoidanceOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetTruckRoadTypes() const
RouteMatrixAvoidanceOptions & WithZoneCategories(const Aws::Vector< RouteMatrixAvoidanceZoneCategory > &value)
RouteMatrixAvoidanceOptions & WithAreas(const Aws::Vector< RouteMatrixAvoidanceArea > &value)
RouteMatrixAvoidanceOptions & AddZoneCategories(RouteMatrixAvoidanceZoneCategory &&value)
void SetAreas(const Aws::Vector< RouteMatrixAvoidanceArea > &value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixAvoidanceOptions & WithControlledAccessHighways(bool value)
void SetTruckRoadTypes(const Aws::Vector< Aws::String > &value)
void SetZoneCategories(Aws::Vector< RouteMatrixAvoidanceZoneCategory > &&value)
RouteMatrixAvoidanceOptions & WithTruckRoadTypes(const Aws::Vector< Aws::String > &value)
void SetZoneCategories(const Aws::Vector< RouteMatrixAvoidanceZoneCategory > &value)
RouteMatrixAvoidanceOptions & AddAreas(RouteMatrixAvoidanceArea &&value)
void SetTruckRoadTypes(Aws::Vector< Aws::String > &&value)
RouteMatrixAvoidanceOptions & WithTruckRoadTypes(Aws::Vector< Aws::String > &&value)
RouteMatrixAvoidanceOptions & WithTollTransponders(bool value)
RouteMatrixAvoidanceOptions & WithFerries(bool value)
RouteMatrixAvoidanceOptions & WithTunnels(bool value)
RouteMatrixAvoidanceOptions & WithAreas(Aws::Vector< RouteMatrixAvoidanceArea > &&value)
RouteMatrixAvoidanceOptions & AddZoneCategories(const RouteMatrixAvoidanceZoneCategory &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