AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
30 public:
31 AWS_GEOROUTES_API IsolineShapeGeometry() = default;
34 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::Vector<Aws::Vector<Aws::Vector<double>>>& GetPolygon() const { return m_polygon; }
43 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
44 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
45 void SetPolygon(PolygonT&& value) {
46 m_polygonHasBeenSet = true;
47 m_polygon = std::forward<PolygonT>(value);
48 }
49 template <typename PolygonT = Aws::Vector<Aws::Vector<Aws::Vector<double>>>>
50 IsolineShapeGeometry& WithPolygon(PolygonT&& value) {
51 SetPolygon(std::forward<PolygonT>(value));
52 return *this;
53 }
54 template <typename PolygonT = Aws::Vector<Aws::Vector<double>>>
55 IsolineShapeGeometry& AddPolygon(PolygonT&& value) {
56 m_polygonHasBeenSet = true;
57 m_polygon.emplace_back(std::forward<PolygonT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::Vector<Aws::String>& GetPolylinePolygon() const { return m_polylinePolygon; }
71 inline bool PolylinePolygonHasBeenSet() const { return m_polylinePolygonHasBeenSet; }
72 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
73 void SetPolylinePolygon(PolylinePolygonT&& value) {
74 m_polylinePolygonHasBeenSet = true;
75 m_polylinePolygon = std::forward<PolylinePolygonT>(value);
76 }
77 template <typename PolylinePolygonT = Aws::Vector<Aws::String>>
78 IsolineShapeGeometry& WithPolylinePolygon(PolylinePolygonT&& value) {
79 SetPolylinePolygon(std::forward<PolylinePolygonT>(value));
80 return *this;
81 }
82 template <typename PolylinePolygonT = Aws::String>
83 IsolineShapeGeometry& AddPolylinePolygon(PolylinePolygonT&& value) {
84 m_polylinePolygonHasBeenSet = true;
85 m_polylinePolygon.emplace_back(std::forward<PolylinePolygonT>(value));
86 return *this;
87 }
89 private:
91
92 Aws::Vector<Aws::String> m_polylinePolygon;
93 bool m_polygonHasBeenSet = false;
94 bool m_polylinePolygonHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace GeoRoutes
99} // 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