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/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();
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 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
53 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
54 inline Geometry& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
55 inline Geometry& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(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 inline void SetPolygon(const Aws::Vector<Point>& value) { m_polygonHasBeenSet = true; m_polygon = value; }
66 inline void SetPolygon(Aws::Vector<Point>&& value) { m_polygonHasBeenSet = true; m_polygon = std::move(value); }
67 inline Geometry& WithPolygon(const Aws::Vector<Point>& value) { SetPolygon(value); return *this;}
68 inline Geometry& WithPolygon(Aws::Vector<Point>&& value) { SetPolygon(std::move(value)); return *this;}
69 inline Geometry& AddPolygon(const Point& value) { m_polygonHasBeenSet = true; m_polygon.push_back(value); return *this; }
70 inline Geometry& AddPolygon(Point&& value) { m_polygonHasBeenSet = true; m_polygon.push_back(std::move(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
void SetBoundingBox(const BoundingBox &value)
Definition Geometry.h:52
Geometry & WithPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:68
Geometry & WithBoundingBox(BoundingBox &&value)
Definition Geometry.h:55
Geometry & WithBoundingBox(const BoundingBox &value)
Definition Geometry.h:54
AWS_COMPREHEND_API Geometry(Aws::Utils::Json::JsonView jsonValue)
void SetPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:66
AWS_COMPREHEND_API Geometry()
Geometry & WithPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:67
void SetBoundingBox(BoundingBox &&value)
Definition Geometry.h:53
void SetPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:65
Geometry & AddPolygon(Point &&value)
Definition Geometry.h:70
const Aws::Vector< Point > & GetPolygon() const
Definition Geometry.h:63
AWS_COMPREHEND_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
Geometry & AddPolygon(const Point &value)
Definition Geometry.h:69
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue