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/comprehend/Comprehend_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Comprehend {
17namespace Model {
18
31 public:
32 AWS_COMPREHEND_API BoundingBox() = default;
33 AWS_COMPREHEND_API BoundingBox(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPREHEND_API BoundingBox& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline double GetHeight() const { return m_height; }
43 inline bool HeightHasBeenSet() const { return m_heightHasBeenSet; }
44 inline void SetHeight(double value) {
45 m_heightHasBeenSet = true;
46 m_height = value;
47 }
48 inline BoundingBox& WithHeight(double value) {
49 SetHeight(value);
50 return *this;
51 }
53
55
59 inline double GetLeft() const { return m_left; }
60 inline bool LeftHasBeenSet() const { return m_leftHasBeenSet; }
61 inline void SetLeft(double value) {
62 m_leftHasBeenSet = true;
63 m_left = value;
64 }
65 inline BoundingBox& WithLeft(double value) {
66 SetLeft(value);
67 return *this;
68 }
70
72
76 inline double GetTop() const { return m_top; }
77 inline bool TopHasBeenSet() const { return m_topHasBeenSet; }
78 inline void SetTop(double value) {
79 m_topHasBeenSet = true;
80 m_top = value;
81 }
82 inline BoundingBox& WithTop(double value) {
83 SetTop(value);
84 return *this;
85 }
87
89
93 inline double GetWidth() const { return m_width; }
94 inline bool WidthHasBeenSet() const { return m_widthHasBeenSet; }
95 inline void SetWidth(double value) {
96 m_widthHasBeenSet = true;
97 m_width = value;
98 }
99 inline BoundingBox& WithWidth(double value) {
100 SetWidth(value);
101 return *this;
102 }
104 private:
105 double m_height{0.0};
106
107 double m_left{0.0};
108
109 double m_top{0.0};
110
111 double m_width{0.0};
112 bool m_heightHasBeenSet = false;
113 bool m_leftHasBeenSet = false;
114 bool m_topHasBeenSet = false;
115 bool m_widthHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace Comprehend
120} // namespace Aws
AWS_COMPREHEND_API BoundingBox(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithHeight(double value)
Definition BoundingBox.h:48
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPREHEND_API BoundingBox & operator=(Aws::Utils::Json::JsonView jsonValue)
BoundingBox & WithLeft(double value)
Definition BoundingBox.h:65
BoundingBox & WithWidth(double value)
Definition BoundingBox.h:99
BoundingBox & WithTop(double value)
Definition BoundingBox.h:82
AWS_COMPREHEND_API BoundingBox()=default
Aws::Utils::Json::JsonValue JsonValue