AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
RouteAvoidanceAreaGeometry.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/Corridor.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/geo-routes/model/PolylineCorridor.h>
11#include <aws/core/utils/memory/stl/AWSString.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 RouteAvoidanceAreaGeometry() = default;
40 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Corridor& GetCorridor() const { return m_corridor; }
49 inline bool CorridorHasBeenSet() const { return m_corridorHasBeenSet; }
50 template<typename CorridorT = Corridor>
51 void SetCorridor(CorridorT&& value) { m_corridorHasBeenSet = true; m_corridor = std::forward<CorridorT>(value); }
52 template<typename CorridorT = Corridor>
53 RouteAvoidanceAreaGeometry& WithCorridor(CorridorT&& value) { SetCorridor(std::forward<CorridorT>(value)); return *this;}
55
57
63 inline const Aws::Vector<double>& GetBoundingBox() const { return m_boundingBox; }
64 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
65 template<typename BoundingBoxT = Aws::Vector<double>>
66 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
67 template<typename BoundingBoxT = Aws::Vector<double>>
68 RouteAvoidanceAreaGeometry& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
69 inline RouteAvoidanceAreaGeometry& AddBoundingBox(double value) { m_boundingBoxHasBeenSet = true; m_boundingBox.push_back(value); return *this; }
71
73
76 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetPolygon() const { return m_polygon; }
77 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
78 template<typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
79 void SetPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon = std::forward<PolygonT>(value); }
80 template<typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
81 RouteAvoidanceAreaGeometry& WithPolygon(PolygonT&& value) { SetPolygon(std::forward<PolygonT>(value)); return *this;}
82 template<typename PolygonT = Aws::Vector<Aws::Vector<double>>>
83 RouteAvoidanceAreaGeometry& AddPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon.emplace_back(std::forward<PolygonT>(value)); return *this; }
85
87
91 inline const PolylineCorridor& GetPolylineCorridor() const { return m_polylineCorridor; }
92 inline bool PolylineCorridorHasBeenSet() const { return m_polylineCorridorHasBeenSet; }
93 template<typename PolylineCorridorT = PolylineCorridor>
94 void SetPolylineCorridor(PolylineCorridorT&& value) { m_polylineCorridorHasBeenSet = true; m_polylineCorridor = std::forward<PolylineCorridorT>(value); }
95 template<typename PolylineCorridorT = PolylineCorridor>
96 RouteAvoidanceAreaGeometry& WithPolylineCorridor(PolylineCorridorT&& value) { SetPolylineCorridor(std::forward<PolylineCorridorT>(value)); return *this;}
98
100
107 inline const Aws::Vector<Aws::String>& GetPolylinePolygon() const { return m_polylinePolygon; }
108 inline bool PolylinePolygonHasBeenSet() const { return m_polylinePolygonHasBeenSet; }
109 template<typename PolylinePolygonT = Aws::Vector<Aws::String>>
110 void SetPolylinePolygon(PolylinePolygonT&& value) { m_polylinePolygonHasBeenSet = true; m_polylinePolygon = std::forward<PolylinePolygonT>(value); }
111 template<typename PolylinePolygonT = Aws::Vector<Aws::String>>
112 RouteAvoidanceAreaGeometry& WithPolylinePolygon(PolylinePolygonT&& value) { SetPolylinePolygon(std::forward<PolylinePolygonT>(value)); return *this;}
113 template<typename PolylinePolygonT = Aws::String>
114 RouteAvoidanceAreaGeometry& AddPolylinePolygon(PolylinePolygonT&& value) { m_polylinePolygonHasBeenSet = true; m_polylinePolygon.emplace_back(std::forward<PolylinePolygonT>(value)); return *this; }
116 private:
117
118 Corridor m_corridor;
119 bool m_corridorHasBeenSet = false;
120
121 Aws::Vector<double> m_boundingBox;
122 bool m_boundingBoxHasBeenSet = false;
123
125 bool m_polygonHasBeenSet = false;
126
127 PolylineCorridor m_polylineCorridor;
128 bool m_polylineCorridorHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_polylinePolygon;
131 bool m_polylinePolygonHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace GeoRoutes
136} // namespace Aws
RouteAvoidanceAreaGeometry & WithPolygon(PolygonT &&value)
RouteAvoidanceAreaGeometry & WithPolylineCorridor(PolylineCorridorT &&value)
RouteAvoidanceAreaGeometry & WithCorridor(CorridorT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteAvoidanceAreaGeometry & AddBoundingBox(double value)
RouteAvoidanceAreaGeometry & WithBoundingBox(BoundingBoxT &&value)
RouteAvoidanceAreaGeometry & WithPolylinePolygon(PolylinePolygonT &&value)
RouteAvoidanceAreaGeometry & AddPolylinePolygon(PolylinePolygonT &&value)
AWS_GEOROUTES_API RouteAvoidanceAreaGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetPolygon() const
AWS_GEOROUTES_API RouteAvoidanceAreaGeometry(Aws::Utils::Json::JsonView jsonValue)
RouteAvoidanceAreaGeometry & AddPolygon(PolygonT &&value)
const Aws::Vector< Aws::String > & GetPolylinePolygon() const
AWS_GEOROUTES_API RouteAvoidanceAreaGeometry()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue