AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BoundingBoxT = BoundingBox>
51 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
52 template<typename BoundingBoxT = BoundingBox>
53 Geometry& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(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 template<typename PolygonT = Aws::Vector<Point>>
63 void SetPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon = std::forward<PolygonT>(value); }
64 template<typename PolygonT = Aws::Vector<Point>>
65 Geometry& WithPolygon(PolygonT&& value) { SetPolygon(std::forward<PolygonT>(value)); return *this;}
66 template<typename PolygonT = Point>
67 Geometry& AddPolygon(PolygonT&& value) { m_polygonHasBeenSet = true; m_polygon.emplace_back(std::forward<PolygonT>(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
AWS_REKOGNITION_API Geometry & operator=(Aws::Utils::Json::JsonView jsonValue)
Geometry & WithPolygon(PolygonT &&value)
Definition Geometry.h:65
const BoundingBox & GetBoundingBox() const
Definition Geometry.h:48
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API Geometry(Aws::Utils::Json::JsonView jsonValue)
void SetPolygon(PolygonT &&value)
Definition Geometry.h:63
Geometry & WithBoundingBox(BoundingBoxT &&value)
Definition Geometry.h:53
AWS_REKOGNITION_API Geometry()=default
void SetBoundingBox(BoundingBoxT &&value)
Definition Geometry.h:51
Geometry & AddPolygon(PolygonT &&value)
Definition Geometry.h:67
const Aws::Vector< Point > & GetPolygon() const
Definition Geometry.h:60
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue