AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegionOfInterest.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
40 {
41 public:
42 AWS_REKOGNITION_API RegionOfInterest();
43 AWS_REKOGNITION_API RegionOfInterest(Aws::Utils::Json::JsonView jsonValue);
44 AWS_REKOGNITION_API RegionOfInterest& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
53 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
54 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
55 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
56 inline RegionOfInterest& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
57 inline RegionOfInterest& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
59
61
65 inline const Aws::Vector<Point>& GetPolygon() const{ return m_polygon; }
66 inline bool PolygonHasBeenSet() const { return m_polygonHasBeenSet; }
67 inline void SetPolygon(const Aws::Vector<Point>& value) { m_polygonHasBeenSet = true; m_polygon = value; }
68 inline void SetPolygon(Aws::Vector<Point>&& value) { m_polygonHasBeenSet = true; m_polygon = std::move(value); }
69 inline RegionOfInterest& WithPolygon(const Aws::Vector<Point>& value) { SetPolygon(value); return *this;}
70 inline RegionOfInterest& WithPolygon(Aws::Vector<Point>&& value) { SetPolygon(std::move(value)); return *this;}
71 inline RegionOfInterest& AddPolygon(const Point& value) { m_polygonHasBeenSet = true; m_polygon.push_back(value); return *this; }
72 inline RegionOfInterest& AddPolygon(Point&& value) { m_polygonHasBeenSet = true; m_polygon.push_back(std::move(value)); return *this; }
74 private:
75
76 BoundingBox m_boundingBox;
77 bool m_boundingBoxHasBeenSet = false;
78
79 Aws::Vector<Point> m_polygon;
80 bool m_polygonHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Rekognition
85} // namespace Aws
const Aws::Vector< Point > & GetPolygon() const
RegionOfInterest & WithBoundingBox(BoundingBox &&value)
RegionOfInterest & AddPolygon(Point &&value)
void SetPolygon(const Aws::Vector< Point > &value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBoundingBox(const BoundingBox &value)
void SetPolygon(Aws::Vector< Point > &&value)
RegionOfInterest & WithBoundingBox(const BoundingBox &value)
RegionOfInterest & WithPolygon(Aws::Vector< Point > &&value)
AWS_REKOGNITION_API RegionOfInterest & operator=(Aws::Utils::Json::JsonView jsonValue)
RegionOfInterest & AddPolygon(const Point &value)
RegionOfInterest & WithPolygon(const Aws::Vector< Point > &value)
const BoundingBox & GetBoundingBox() const
AWS_REKOGNITION_API RegionOfInterest(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue