AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Geometry.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/BoundingBox.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/textract/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 Textract
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_TEXTRACT_API Geometry();
39 AWS_TEXTRACT_API Geometry(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TEXTRACT_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
50 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
51 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
52 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
53 inline Geometry& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
54 inline Geometry& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
56
58
62 inline const Aws::Vector<Point>& GetPolygon() const{ return m_polygon; }
63 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
64 inline void SetPolygon(const Aws::Vector<Point>& value) { m_polygonHasBeenSet = true; m_polygon = value; }
65 inline void SetPolygon(Aws::Vector<Point>&& value) { m_polygonHasBeenSet = true; m_polygon = std::move(value); }
66 inline Geometry& WithPolygon(const Aws::Vector<Point>& value) { SetPolygon(value); return *this;}
67 inline Geometry& WithPolygon(Aws::Vector<Point>&& value) { SetPolygon(std::move(value)); return *this;}
68 inline Geometry& AddPolygon(const Point& value) { m_polygonHasBeenSet = true; m_polygon.push_back(value); return *this; }
69 inline Geometry& AddPolygon(Point&& value) { m_polygonHasBeenSet = true; m_polygon.push_back(std::move(value)); return *this; }
71 private:
72
73 BoundingBox m_boundingBox;
74 bool m_boundingBoxHasBeenSet = false;
75
76 Aws::Vector<Point> m_polygon;
77 bool m_polygonHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Textract
82} // namespace Aws
void SetPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:65
Geometry & WithBoundingBox(const BoundingBox &value)
Definition Geometry.h:53
void SetBoundingBox(BoundingBox &&value)
Definition Geometry.h:52
void SetBoundingBox(const BoundingBox &value)
Definition Geometry.h:51
const BoundingBox & GetBoundingBox() const
Definition Geometry.h:49
Geometry & WithPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:67
Geometry & AddPolygon(Point &&value)
Definition Geometry.h:69
void SetPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:64
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
bool BoundingBoxHasBeenSet() const
Definition Geometry.h:50
Geometry & AddPolygon(const Point &value)
Definition Geometry.h:68
AWS_TEXTRACT_API Geometry()
AWS_TEXTRACT_API Geometry(Aws::Utils::Json::JsonView jsonValue)
Geometry & WithBoundingBox(BoundingBox &&value)
Definition Geometry.h:54
AWS_TEXTRACT_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
Geometry & WithPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:66
const Aws::Vector< Point > & GetPolygon() const
Definition Geometry.h:62
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue