AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
Point.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
31class Point {
32 public:
33 AWS_TEXTRACT_API Point() = default;
34 AWS_TEXTRACT_API Point(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TEXTRACT_API Point& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline double GetX() const { return m_x; }
43 inline bool XHasBeenSet() const { return m_xHasBeenSet; }
44 inline void SetX(double value) {
45 m_xHasBeenSet = true;
46 m_x = value;
47 }
48 inline Point& WithX(double value) {
49 SetX(value);
50 return *this;
51 }
53
55
58 inline double GetY() const { return m_y; }
59 inline bool YHasBeenSet() const { return m_yHasBeenSet; }
60 inline void SetY(double value) {
61 m_yHasBeenSet = true;
62 m_y = value;
63 }
64 inline Point& WithY(double value) {
65 SetY(value);
66 return *this;
67 }
69 private:
70 double m_x{0.0};
71
72 double m_y{0.0};
73 bool m_xHasBeenSet = false;
74 bool m_yHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Textract
79} // namespace Aws
void SetY(double value)
Definition Point.h:60
double GetY() const
Definition Point.h:58
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
Point & WithX(double value)
Definition Point.h:48
bool XHasBeenSet() const
Definition Point.h:43
bool YHasBeenSet() const
Definition Point.h:59
double GetX() const
Definition Point.h:42
void SetX(double value)
Definition Point.h:44
Point & WithY(double value)
Definition Point.h:64
AWS_TEXTRACT_API Point()=default
AWS_TEXTRACT_API Point(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API Point & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue