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/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/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 Rekognition
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_REKOGNITION_API Geometry();
38 AWS_REKOGNITION_API Geometry(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Geometry& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
49 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
50 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
51 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
52 inline Geometry& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
53 inline Geometry& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
55
57
60 inline const Aws::Vector<Point>& GetPolygon() const{ return m_polygon; }
61 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
62 inline void SetPolygon(const Aws::Vector<Point>& value) { m_polygonHasBeenSet = true; m_polygon = value; }
63 inline void SetPolygon(Aws::Vector<Point>&& value) { m_polygonHasBeenSet = true; m_polygon = std::move(value); }
64 inline Geometry& WithPolygon(const Aws::Vector<Point>& value) { SetPolygon(value); return *this;}
65 inline Geometry& WithPolygon(Aws::Vector<Point>&& value) { SetPolygon(std::move(value)); return *this;}
66 inline Geometry& AddPolygon(const Point& value) { m_polygonHasBeenSet = true; m_polygon.push_back(value); return *this; }
67 inline Geometry& AddPolygon(Point&& value) { m_polygonHasBeenSet = true; m_polygon.push_back(std::move(value)); return *this; }
69 private:
70
71 BoundingBox m_boundingBox;
72 bool m_boundingBoxHasBeenSet = false;
73
74 Aws::Vector<Point> m_polygon;
75 bool m_polygonHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Rekognition
80} // namespace Aws
void SetBoundingBox(const BoundingBox &value)
Definition Geometry.h:50
AWS_REKOGNITION_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
const BoundingBox & GetBoundingBox() const
Definition Geometry.h:48
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API Geometry()
Geometry & WithPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:65
AWS_REKOGNITION_API Geometry(Aws::Utils::Json::JsonView jsonValue)
Geometry & AddPolygon(const Point &value)
Definition Geometry.h:66
Geometry & WithBoundingBox(const BoundingBox &value)
Definition Geometry.h:52
void SetBoundingBox(BoundingBox &&value)
Definition Geometry.h:51
void SetPolygon(Aws::Vector< Point > &&value)
Definition Geometry.h:63
void SetPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:62
Geometry & AddPolygon(Point &&value)
Definition Geometry.h:67
Geometry & WithBoundingBox(BoundingBox &&value)
Definition Geometry.h:53
const Aws::Vector< Point > & GetPolygon() const
Definition Geometry.h:60
Geometry & WithPolygon(const Aws::Vector< Point > &value)
Definition Geometry.h:64
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue