AWS SDK for C++

AWS SDK for C++ Version 1.11.793

Loading...
Searching...
No Matches
IsolineAvoidanceAreaGeometry.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
10#include <aws/geo-routes/model/Corridor.h>
11#include <aws/geo-routes/model/PolylineCorridor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GeoRoutes {
23namespace Model {
24
33 public:
34 AWS_GEOROUTES_API IsolineAvoidanceAreaGeometry() = default;
37 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::Vector<double>& GetBoundingBox() const { return m_boundingBox; }
45 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
46 template <typename BoundingBoxT = Aws::Vector<double>>
47 void SetBoundingBox(BoundingBoxT&& value) {
48 m_boundingBoxHasBeenSet = true;
49 m_boundingBox = std::forward<BoundingBoxT>(value);
50 }
51 template <typename BoundingBoxT = Aws::Vector<double>>
53 SetBoundingBox(std::forward<BoundingBoxT>(value));
54 return *this;
55 }
57 m_boundingBoxHasBeenSet = true;
58 m_boundingBox.push_back(value);
59 return *this;
60 }
62
64
68 inline const Corridor& GetCorridor() const { return m_corridor; }
69 inline bool CorridorHasBeenSet() const { return m_corridorHasBeenSet; }
70 template <typename CorridorT = Corridor>
71 void SetCorridor(CorridorT&& value) {
72 m_corridorHasBeenSet = true;
73 m_corridor = std::forward<CorridorT>(value);
74 }
75 template <typename CorridorT = Corridor>
77 SetCorridor(std::forward<CorridorT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetPolygon() const { return m_polygon; }
88 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
89 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
90 void SetPolygon(PolygonT&& value) {
91 m_polygonHasBeenSet = true;
92 m_polygon = std::forward<PolygonT>(value);
93 }
94 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
96 SetPolygon(std::forward<PolygonT>(value));
97 return *this;
98 }
99 template <typename PolygonT = Aws::Vector<Aws::Vector<double>>>
101 m_polygonHasBeenSet = true;
102 m_polygon.emplace_back(std::forward<PolygonT>(value));
103 return *this;
104 }
106
108
113 inline const PolylineCorridor& GetPolylineCorridor() const { return m_polylineCorridor; }
114 inline bool PolylineCorridorHasBeenSet() const { return m_polylineCorridorHasBeenSet; }
115 template <typename PolylineCorridorT = PolylineCorridor>
116 void SetPolylineCorridor(PolylineCorridorT&& value) {
117 m_polylineCorridorHasBeenSet = true;
118 m_polylineCorridor = std::forward<PolylineCorridorT>(value);
119 }
120 template <typename PolylineCorridorT = PolylineCorridor>
122 SetPolylineCorridor(std::forward<PolylineCorridorT>(value));
123 return *this;
124 }
126
128
134 inline const Aws::Vector<Aws::String>& GetPolylinePolygon() const { return m_polylinePolygon; }
135 inline bool PolylinePolygonHasBeenSet() const { return m_polylinePolygonHasBeenSet; }
136 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
137 void SetPolylinePolygon(PolylinePolygonT&& value) {
138 m_polylinePolygonHasBeenSet = true;
139 m_polylinePolygon = std::forward<PolylinePolygonT>(value);
140 }
141 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
143 SetPolylinePolygon(std::forward<PolylinePolygonT>(value));
144 return *this;
145 }
146 template <typename PolylinePolygonT = Aws::String>
148 m_polylinePolygonHasBeenSet = true;
149 m_polylinePolygon.emplace_back(std::forward<PolylinePolygonT>(value));
150 return *this;
151 }
153 private:
154 Aws::Vector<double> m_boundingBox;
155
156 Corridor m_corridor;
157
159
160 PolylineCorridor m_polylineCorridor;
161
162 Aws::Vector<Aws::String> m_polylinePolygon;
163 bool m_boundingBoxHasBeenSet = false;
164 bool m_corridorHasBeenSet = false;
165 bool m_polygonHasBeenSet = false;
166 bool m_polylineCorridorHasBeenSet = false;
167 bool m_polylinePolygonHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace GeoRoutes
172} // namespace Aws
AWS_GEOROUTES_API IsolineAvoidanceAreaGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetPolylinePolygon() const
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetPolygon() const
IsolineAvoidanceAreaGeometry & WithPolylinePolygon(PolylinePolygonT &&value)
AWS_GEOROUTES_API IsolineAvoidanceAreaGeometry()=default
IsolineAvoidanceAreaGeometry & AddPolygon(PolygonT &&value)
IsolineAvoidanceAreaGeometry & AddPolylinePolygon(PolylinePolygonT &&value)
IsolineAvoidanceAreaGeometry & WithPolylineCorridor(PolylineCorridorT &&value)
IsolineAvoidanceAreaGeometry & WithCorridor(CorridorT &&value)
IsolineAvoidanceAreaGeometry & AddBoundingBox(double value)
IsolineAvoidanceAreaGeometry & WithBoundingBox(BoundingBoxT &&value)
AWS_GEOROUTES_API IsolineAvoidanceAreaGeometry(Aws::Utils::Json::JsonView jsonValue)
IsolineAvoidanceAreaGeometry & WithPolygon(PolygonT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue