AWS SDK for C++

AWS SDK for C++ Version 1.11.761

Loading...
Searching...
No Matches
RouteMatrixAvoidanceAreaGeometry.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GeoRoutes {
21namespace Model {
22
29 public:
30 AWS_GEOROUTES_API RouteMatrixAvoidanceAreaGeometry() = default;
33 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::Vector<double>& GetBoundingBox() const { return m_boundingBox; }
43 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
44 template <typename BoundingBoxT = Aws::Vector<double>>
45 void SetBoundingBox(BoundingBoxT&& value) {
46 m_boundingBoxHasBeenSet = true;
47 m_boundingBox = std::forward<BoundingBoxT>(value);
48 }
49 template <typename BoundingBoxT = Aws::Vector<double>>
51 SetBoundingBox(std::forward<BoundingBoxT>(value));
52 return *this;
53 }
55 m_boundingBoxHasBeenSet = true;
56 m_boundingBox.push_back(value);
57 return *this;
58 }
60
62
65 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetPolygon() const { return m_polygon; }
66 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
67 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
68 void SetPolygon(PolygonT&& value) {
69 m_polygonHasBeenSet = true;
70 m_polygon = std::forward<PolygonT>(value);
71 }
72 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
74 SetPolygon(std::forward<PolygonT>(value));
75 return *this;
76 }
77 template <typename PolygonT = Aws::Vector<Aws::Vector<double>>>
79 m_polygonHasBeenSet = true;
80 m_polygon.emplace_back(std::forward<PolygonT>(value));
81 return *this;
82 }
84
86
93 inline const Aws::Vector<Aws::String>& GetPolylinePolygon() const { return m_polylinePolygon; }
94 inline bool PolylinePolygonHasBeenSet() const { return m_polylinePolygonHasBeenSet; }
95 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
96 void SetPolylinePolygon(PolylinePolygonT&& value) {
97 m_polylinePolygonHasBeenSet = true;
98 m_polylinePolygon = std::forward<PolylinePolygonT>(value);
99 }
100 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
102 SetPolylinePolygon(std::forward<PolylinePolygonT>(value));
103 return *this;
104 }
105 template <typename PolylinePolygonT = Aws::String>
107 m_polylinePolygonHasBeenSet = true;
108 m_polylinePolygon.emplace_back(std::forward<PolylinePolygonT>(value));
109 return *this;
110 }
112 private:
113 Aws::Vector<double> m_boundingBox;
114
116
117 Aws::Vector<Aws::String> m_polylinePolygon;
118 bool m_boundingBoxHasBeenSet = false;
119 bool m_polygonHasBeenSet = false;
120 bool m_polylinePolygonHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace GeoRoutes
125} // namespace Aws
RouteMatrixAvoidanceAreaGeometry & AddPolygon(PolygonT &&value)
AWS_GEOROUTES_API RouteMatrixAvoidanceAreaGeometry()=default
RouteMatrixAvoidanceAreaGeometry & WithPolylinePolygon(PolylinePolygonT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteMatrixAvoidanceAreaGeometry & AddBoundingBox(double value)
RouteMatrixAvoidanceAreaGeometry & WithPolygon(PolygonT &&value)
AWS_GEOROUTES_API RouteMatrixAvoidanceAreaGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteMatrixAvoidanceAreaGeometry & WithBoundingBox(BoundingBoxT &&value)
AWS_GEOROUTES_API RouteMatrixAvoidanceAreaGeometry(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetPolygon() const
RouteMatrixAvoidanceAreaGeometry & AddPolylinePolygon(PolylinePolygonT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue