AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
IsolineShapeGeometry.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
32 public:
33 AWS_GEOROUTES_API IsolineShapeGeometry() = default;
36 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
46 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetPolygon() const { return m_polygon; }
47 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
48 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
49 void SetPolygon(PolygonT&& value) {
50 m_polygonHasBeenSet = true;
51 m_polygon = std::forward<PolygonT>(value);
52 }
53 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
54 IsolineShapeGeometry& WithPolygon(PolygonT&& value) {
55 SetPolygon(std::forward<PolygonT>(value));
56 return *this;
57 }
58 template <typename PolygonT = Aws::Vector<Aws::Vector<double>>>
59 IsolineShapeGeometry& AddPolygon(PolygonT&& value) {
60 m_polygonHasBeenSet = true;
61 m_polygon.emplace_back(std::forward<PolygonT>(value));
62 return *this;
63 }
65
67
77 inline const Aws::Vector<Aws::String>& GetPolylinePolygon() const { return m_polylinePolygon; }
78 inline bool PolylinePolygonHasBeenSet() const { return m_polylinePolygonHasBeenSet; }
79 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
80 void SetPolylinePolygon(PolylinePolygonT&& value) {
81 m_polylinePolygonHasBeenSet = true;
82 m_polylinePolygon = std::forward<PolylinePolygonT>(value);
83 }
84 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
85 IsolineShapeGeometry& WithPolylinePolygon(PolylinePolygonT&& value) {
86 SetPolylinePolygon(std::forward<PolylinePolygonT>(value));
87 return *this;
88 }
89 template <typename PolylinePolygonT = Aws::String>
90 IsolineShapeGeometry& AddPolylinePolygon(PolylinePolygonT&& value) {
91 m_polylinePolygonHasBeenSet = true;
92 m_polylinePolygon.emplace_back(std::forward<PolylinePolygonT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::Vector<Aws::String> m_polylinePolygon;
100 bool m_polygonHasBeenSet = false;
101 bool m_polylinePolygonHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GeoRoutes
106} // namespace Aws
AWS_GEOROUTES_API IsolineShapeGeometry(Aws::Utils::Json::JsonView jsonValue)
void SetPolylinePolygon(PolylinePolygonT &&value)
AWS_GEOROUTES_API IsolineShapeGeometry()=default
AWS_GEOROUTES_API IsolineShapeGeometry & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::Vector< Aws::Vector< double > > > & GetPolygon() const
IsolineShapeGeometry & WithPolylinePolygon(PolylinePolygonT &&value)
IsolineShapeGeometry & AddPolylinePolygon(PolylinePolygonT &&value)
IsolineShapeGeometry & AddPolygon(PolygonT &&value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
IsolineShapeGeometry & WithPolygon(PolygonT &&value)
const Aws::Vector< Aws::String > & GetPolylinePolygon() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue