AWS SDK for C++

AWS SDK for C++ Version 1.11.709

Loading...
Searching...
No Matches
BoundingBox.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Rekognition {
17namespace Model {
18
42 public:
43 AWS_REKOGNITION_API BoundingBox() = default;
44 AWS_REKOGNITION_API BoundingBox(Aws::Utils::Json::JsonView jsonValue);
45 AWS_REKOGNITION_API BoundingBox& operator=(Aws::Utils::Json::JsonView jsonValue);
46 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
47
49
52 inline double GetWidth() const { return m_width; }
53 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
54 inline void SetWidth(double value) {
55 m_widthHasBeenSet = true;
56 m_width = value;
57 }
58 inline BoundingBox& WithWidth(double value) {
59 SetWidth(value);
60 return *this;
61 }
63
65
68 inline double GetHeight() const { return m_height; }
69 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
70 inline void SetHeight(double value) {
71 m_heightHasBeenSet = true;
72 m_height = value;
73 }
74 inline BoundingBox& WithHeight(double value) {
75 SetHeight(value);
76 return *this;
77 }
79
81
84 inline double GetLeft() const { return m_left; }
85 inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; }
86 inline void SetLeft(double value) {
87 m_leftHasBeenSet = true;
88 m_left = value;
89 }
90 inline BoundingBox& WithLeft(double value) {
91 SetLeft(value);
92 return *this;
93 }
95
97
100 inline double GetTop() const { return m_top; }
101 inline bool TopHasBeenSet() const { return m_topHasBeenSet; }
102 inline void SetTop(double value) {
103 m_topHasBeenSet = true;
104 m_top = value;
105 }
106 inline BoundingBox& WithTop(double value) {
107 SetTop(value);
108 return *this;
109 }
111 private:
112 double m_width{0.0};
113
114 double m_height{0.0};
115
116 double m_left{0.0};
117
118 double m_top{0.0};
119 bool m_widthHasBeenSet = false;
120 bool m_heightHasBeenSet = false;
121 bool m_leftHasBeenSet = false;
122 bool m_topHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Rekognition
127} // namespace Aws
BoundingBox & WithLeft(double value)
Definition BoundingBox.h:90
BoundingBox & WithWidth(double value)
Definition BoundingBox.h:58
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API BoundingBox(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithHeight(double value)
Definition BoundingBox.h:74
AWS_REKOGNITION_API BoundingBox()=default
AWS_REKOGNITION_API BoundingBox & operator=(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithTop(double value)
Aws::Utils::Json::JsonValue JsonValue