AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BoundingBox.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Textract {
17namespace Model {
18
37 public:
38 AWS_TEXTRACT_API BoundingBox() = default;
39 AWS_TEXTRACT_API BoundingBox(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TEXTRACT_API BoundingBox& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
48 inline double GetWidth() const { return m_width; }
49 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
50 inline void SetWidth(double value) {
51 m_widthHasBeenSet = true;
52 m_width = value;
53 }
54 inline BoundingBox& WithWidth(double value) {
55 SetWidth(value);
56 return *this;
57 }
59
61
65 inline double GetHeight() const { return m_height; }
66 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
67 inline void SetHeight(double value) {
68 m_heightHasBeenSet = true;
69 m_height = value;
70 }
71 inline BoundingBox& WithHeight(double value) {
72 SetHeight(value);
73 return *this;
74 }
76
78
82 inline double GetLeft() const { return m_left; }
83 inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; }
84 inline void SetLeft(double value) {
85 m_leftHasBeenSet = true;
86 m_left = value;
87 }
88 inline BoundingBox& WithLeft(double value) {
89 SetLeft(value);
90 return *this;
91 }
93
95
99 inline double GetTop() const { return m_top; }
100 inline bool TopHasBeenSet() const { return m_topHasBeenSet; }
101 inline void SetTop(double value) {
102 m_topHasBeenSet = true;
103 m_top = value;
104 }
105 inline BoundingBox& WithTop(double value) {
106 SetTop(value);
107 return *this;
108 }
110 private:
111 double m_width{0.0};
112
113 double m_height{0.0};
114
115 double m_left{0.0};
116
117 double m_top{0.0};
118 bool m_widthHasBeenSet = false;
119 bool m_heightHasBeenSet = false;
120 bool m_leftHasBeenSet = false;
121 bool m_topHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Textract
126} // namespace Aws
AWS_TEXTRACT_API BoundingBox(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API BoundingBox()=default
AWS_TEXTRACT_API BoundingBox & operator=(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithTop(double value)
BoundingBox & WithLeft(double value)
Definition BoundingBox.h:88
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
BoundingBox & WithWidth(double value)
Definition BoundingBox.h:54
BoundingBox & WithHeight(double value)
Definition BoundingBox.h:71
Aws::Utils::Json::JsonValue JsonValue