AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Geometry.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/model/BoundingBox.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/comprehend/model/Point.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Comprehend
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_COMPREHEND_API Geometry() = default;
40 AWS_COMPREHEND_API Geometry(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPREHEND_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
51 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
52 template<typename BoundingBoxT = BoundingBox>
53 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
54 template<typename BoundingBoxT = BoundingBox>
55 Geometry& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
57
59
63 inline const Aws::Vector<Point>& GetPolygon() const { return m_polygon; }
64 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
65 template<typename PolygonT = Aws::Vector<Point>>
66 void SetPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon = std::forward<PolygonT>(value); }
67 template<typename PolygonT = Aws::Vector<Point>>
68 Geometry& WithPolygon(PolygonT&& value) { SetPolygon(std::forward<PolygonT>(value)); return *this;}
69 template<typename PolygonT = Point>
70 Geometry& AddPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon.emplace_back(std::forward<PolygonT>(value)); return *this; }
72 private:
73
74 BoundingBox m_boundingBox;
75 bool m_boundingBoxHasBeenSet = false;
76
77 Aws::Vector<Point> m_polygon;
78 bool m_polygonHasBeenSet = false;
79 };
80
81} // namespace Model
82} // namespace Comprehend
83} // namespace Aws
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
const BoundingBox & GetBoundingBox() const
Definition Geometry.h:50
Geometry & AddPolygon(PolygonT &&value)
Definition Geometry.h:70
void SetBoundingBox(BoundingBoxT &&value)
Definition Geometry.h:53
Geometry & WithPolygon(PolygonT &&value)
Definition Geometry.h:68
AWS_COMPREHEND_API Geometry()=default
AWS_COMPREHEND_API Geometry(Aws::Utils::Json::JsonView jsonValue)
void SetPolygon(PolygonT &&value)
Definition Geometry.h:66
Geometry & WithBoundingBox(BoundingBoxT &&value)
Definition Geometry.h:55
const Aws::Vector< Point > & GetPolygon() const
Definition Geometry.h:63
AWS_COMPREHEND_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue