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/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
27class Point {
28 public:
29 AWS_COMPREHEND_API Point() = default;
30 AWS_COMPREHEND_API Point(Aws::Utils::Json::JsonView jsonValue);
31 AWS_COMPREHEND_API Point& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline double GetX() const { return m_x; }
39 inline bool XHasBeenSet() const { return m_xHasBeenSet; }
40 inline void SetX(double value) {
41 m_xHasBeenSet = true;
42 m_x = value;
43 }
44 inline Point& WithX(double value) {
45 SetX(value);
46 return *this;
47 }
49
51
54 inline double GetY() const { return m_y; }
55 inline bool YHasBeenSet() const { return m_yHasBeenSet; }
56 inline void SetY(double value) {
57 m_yHasBeenSet = true;
58 m_y = value;
59 }
60 inline Point& WithY(double value) {
61 SetY(value);
62 return *this;
63 }
65 private:
66 double m_x{0.0};
67
68 double m_y{0.0};
69 bool m_xHasBeenSet = false;
70 bool m_yHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace Comprehend
75} // namespace Aws
AWS_COMPREHEND_API Point(Aws::Utils::Json::JsonView jsonValue)
double GetY() const
Definition Point.h:54
Point & WithX(double value)
Definition Point.h:44
void SetY(double value)
Definition Point.h:56
bool XHasBeenSet() const
Definition Point.h:39
void SetX(double value)
Definition Point.h:40
Point & WithY(double value)
Definition Point.h:60
AWS_COMPREHEND_API Point()=default
bool YHasBeenSet() const
Definition Point.h:55
AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const
double GetX() const
Definition Point.h:38
AWS_COMPREHEND_API Point & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue