AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WaypointOptimizationAvoidanceOptions.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/WaypointOptimizationAvoidanceArea.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes
23{
24namespace Model
25{
26
33 {
34 public:
38 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<WaypointOptimizationAvoidanceArea>& GetAreas() const{ return m_areas; }
46 inline bool AreasHasBeenSet() const { return m_areasHasBeenSet; }
47 inline void SetAreas(const Aws::Vector<WaypointOptimizationAvoidanceArea>& value) { m_areasHasBeenSet = true; m_areas = value; }
48 inline void SetAreas(Aws::Vector<WaypointOptimizationAvoidanceArea>&& value) { m_areasHasBeenSet = true; m_areas = std::move(value); }
51 inline WaypointOptimizationAvoidanceOptions& AddAreas(const WaypointOptimizationAvoidanceArea& value) { m_areasHasBeenSet = true; m_areas.push_back(value); return *this; }
52 inline WaypointOptimizationAvoidanceOptions& AddAreas(WaypointOptimizationAvoidanceArea&& value) { m_areasHasBeenSet = true; m_areas.push_back(std::move(value)); return *this; }
54
56
59 inline bool GetCarShuttleTrains() const{ return m_carShuttleTrains; }
60 inline bool CarShuttleTrainsHasBeenSet() const { return m_carShuttleTrainsHasBeenSet; }
61 inline void SetCarShuttleTrains(bool value) { m_carShuttleTrainsHasBeenSet = true; m_carShuttleTrains = value; }
64
66
69 inline bool GetControlledAccessHighways() const{ return m_controlledAccessHighways; }
70 inline bool ControlledAccessHighwaysHasBeenSet() const { return m_controlledAccessHighwaysHasBeenSet; }
71 inline void SetControlledAccessHighways(bool value) { m_controlledAccessHighwaysHasBeenSet = true; m_controlledAccessHighways = value; }
74
76
79 inline bool GetDirtRoads() const{ return m_dirtRoads; }
80 inline bool DirtRoadsHasBeenSet() const { return m_dirtRoadsHasBeenSet; }
81 inline void SetDirtRoads(bool value) { m_dirtRoadsHasBeenSet = true; m_dirtRoads = value; }
82 inline WaypointOptimizationAvoidanceOptions& WithDirtRoads(bool value) { SetDirtRoads(value); return *this;}
84
86
89 inline bool GetFerries() const{ return m_ferries; }
90 inline bool FerriesHasBeenSet() const { return m_ferriesHasBeenSet; }
91 inline void SetFerries(bool value) { m_ferriesHasBeenSet = true; m_ferries = value; }
92 inline WaypointOptimizationAvoidanceOptions& WithFerries(bool value) { SetFerries(value); return *this;}
94
96
100 inline bool GetTollRoads() const{ return m_tollRoads; }
101 inline bool TollRoadsHasBeenSet() const { return m_tollRoadsHasBeenSet; }
102 inline void SetTollRoads(bool value) { m_tollRoadsHasBeenSet = true; m_tollRoads = value; }
103 inline WaypointOptimizationAvoidanceOptions& WithTollRoads(bool value) { SetTollRoads(value); return *this;}
105
107
110 inline bool GetTunnels() const{ return m_tunnels; }
111 inline bool TunnelsHasBeenSet() const { return m_tunnelsHasBeenSet; }
112 inline void SetTunnels(bool value) { m_tunnelsHasBeenSet = true; m_tunnels = value; }
113 inline WaypointOptimizationAvoidanceOptions& WithTunnels(bool value) { SetTunnels(value); return *this;}
115
117
120 inline bool GetUTurns() const{ return m_uTurns; }
121 inline bool UTurnsHasBeenSet() const { return m_uTurnsHasBeenSet; }
122 inline void SetUTurns(bool value) { m_uTurnsHasBeenSet = true; m_uTurns = value; }
123 inline WaypointOptimizationAvoidanceOptions& WithUTurns(bool value) { SetUTurns(value); return *this;}
125 private:
126
128 bool m_areasHasBeenSet = false;
129
130 bool m_carShuttleTrains;
131 bool m_carShuttleTrainsHasBeenSet = false;
132
133 bool m_controlledAccessHighways;
134 bool m_controlledAccessHighwaysHasBeenSet = false;
135
136 bool m_dirtRoads;
137 bool m_dirtRoadsHasBeenSet = false;
138
139 bool m_ferries;
140 bool m_ferriesHasBeenSet = false;
141
142 bool m_tollRoads;
143 bool m_tollRoadsHasBeenSet = false;
144
145 bool m_tunnels;
146 bool m_tunnelsHasBeenSet = false;
147
148 bool m_uTurns;
149 bool m_uTurnsHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace GeoRoutes
154} // namespace Aws
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(Aws::Vector< WaypointOptimizationAvoidanceArea > &&value)
WaypointOptimizationAvoidanceOptions & AddAreas(WaypointOptimizationAvoidanceArea &&value)
WaypointOptimizationAvoidanceOptions & AddAreas(const WaypointOptimizationAvoidanceArea &value)
void SetAreas(Aws::Vector< WaypointOptimizationAvoidanceArea > &&value)
WaypointOptimizationAvoidanceOptions & WithCarShuttleTrains(bool value)
void SetAreas(const Aws::Vector< WaypointOptimizationAvoidanceArea > &value)
WaypointOptimizationAvoidanceOptions & WithControlledAccessHighways(bool value)
const Aws::Vector< WaypointOptimizationAvoidanceArea > & GetAreas() const
WaypointOptimizationAvoidanceOptions & WithAreas(const Aws::Vector< WaypointOptimizationAvoidanceArea > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue