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/textract/Textract_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 Textract
20{
21namespace Model
22{
23
42 {
43 public:
44 AWS_TEXTRACT_API BoundingBox();
45 AWS_TEXTRACT_API BoundingBox(Aws::Utils::Json::JsonView jsonValue);
46 AWS_TEXTRACT_API BoundingBox& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
55 inline double GetWidth() const{ return m_width; }
56 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
57 inline void SetWidth(double value) { m_widthHasBeenSet = true; m_width = value; }
58 inline BoundingBox& WithWidth(double value) { SetWidth(value); return *this;}
60
62
66 inline double GetHeight() const{ return m_height; }
67 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
68 inline void SetHeight(double value) { m_heightHasBeenSet = true; m_height = value; }
69 inline BoundingBox& WithHeight(double value) { SetHeight(value); return *this;}
71
73
77 inline double GetLeft() const{ return m_left; }
78 inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; }
79 inline void SetLeft(double value) { m_leftHasBeenSet = true; m_left = value; }
80 inline BoundingBox& WithLeft(double value) { SetLeft(value); return *this;}
82
84
88 inline double GetTop() const{ return m_top; }
89 inline bool TopHasBeenSet() const { return m_topHasBeenSet; }
90 inline void SetTop(double value) { m_topHasBeenSet = true; m_top = value; }
91 inline BoundingBox& WithTop(double value) { SetTop(value); return *this;}
93 private:
94
95 double m_width;
96 bool m_widthHasBeenSet = false;
97
98 double m_height;
99 bool m_heightHasBeenSet = false;
100
101 double m_left;
102 bool m_leftHasBeenSet = false;
103
104 double m_top;
105 bool m_topHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Textract
110} // namespace Aws
AWS_TEXTRACT_API BoundingBox(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API BoundingBox & operator=(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithTop(double value)
Definition BoundingBox.h:91
BoundingBox & WithLeft(double value)
Definition BoundingBox.h:80
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
BoundingBox & WithWidth(double value)
Definition BoundingBox.h:58
BoundingBox & WithHeight(double value)
Definition BoundingBox.h:69
Aws::Utils::Json::JsonValue JsonValue