AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BoundingBox.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8
9namespace Aws
10{
11namespace Utils
12{
13namespace Json
14{
15 class JsonValue;
16 class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Rekognition
20{
21namespace Model
22{
23
47 {
48 public:
49 AWS_REKOGNITION_API BoundingBox();
50 AWS_REKOGNITION_API BoundingBox(Aws::Utils::Json::JsonView jsonValue);
51 AWS_REKOGNITION_API BoundingBox& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline double GetWidth() const{ return m_width; }
60 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
61 inline void SetWidth(double value) { m_widthHasBeenSet = true; m_width = value; }
62 inline BoundingBox& WithWidth(double value) { SetWidth(value); return *this;}
64
66
69 inline double GetHeight() const{ return m_height; }
70 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
71 inline void SetHeight(double value) { m_heightHasBeenSet = true; m_height = value; }
72 inline BoundingBox& WithHeight(double value) { SetHeight(value); return *this;}
74
76
79 inline double GetLeft() const{ return m_left; }
80 inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; }
81 inline void SetLeft(double value) { m_leftHasBeenSet = true; m_left = value; }
82 inline BoundingBox& WithLeft(double value) { SetLeft(value); return *this;}
84
86
89 inline double GetTop() const{ return m_top; }
90 inline bool TopHasBeenSet() const { return m_topHasBeenSet; }
91 inline void SetTop(double value) { m_topHasBeenSet = true; m_top = value; }
92 inline BoundingBox& WithTop(double value) { SetTop(value); return *this;}
94 private:
95
96 double m_width;
97 bool m_widthHasBeenSet = false;
98
99 double m_height;
100 bool m_heightHasBeenSet = false;
101
102 double m_left;
103 bool m_leftHasBeenSet = false;
104
105 double m_top;
106 bool m_topHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Rekognition
111} // namespace Aws
BoundingBox & WithLeft(double value)
Definition BoundingBox.h:82
BoundingBox & WithWidth(double value)
Definition BoundingBox.h:62
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API BoundingBox()
AWS_REKOGNITION_API BoundingBox(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithHeight(double value)
Definition BoundingBox.h:72
AWS_REKOGNITION_API BoundingBox & operator=(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithTop(double value)
Definition BoundingBox.h:92
Aws::Utils::Json::JsonValue JsonValue