AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Point.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace Rekognition {
17namespace Model {
18
32class Point {
33 public:
34 AWS_REKOGNITION_API Point() = default;
35 AWS_REKOGNITION_API Point(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API Point& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline double GetX() const { return m_x; }
44 inline bool XHasBeenSet() const { return m_xHasBeenSet; }
45 inline void SetX(double value) {
46 m_xHasBeenSet = true;
47 m_x = value;
48 }
49 inline Point& WithX(double value) {
50 SetX(value);
51 return *this;
52 }
54
56
59 inline double GetY() const { return m_y; }
60 inline bool YHasBeenSet() const { return m_yHasBeenSet; }
61 inline void SetY(double value) {
62 m_yHasBeenSet = true;
63 m_y = value;
64 }
65 inline Point& WithY(double value) {
66 SetY(value);
67 return *this;
68 }
70 private:
71 double m_x{0.0};
72
73 double m_y{0.0};
74 bool m_xHasBeenSet = false;
75 bool m_yHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Rekognition
80} // namespace Aws
AWS_REKOGNITION_API Point()=default
AWS_REKOGNITION_API Point & operator=(Aws::Utils::Json::JsonView jsonValue)
Point & WithY(double value)
Definition Point.h:65
void SetX(double value)
Definition Point.h:45
AWS_REKOGNITION_API Point(Aws::Utils::Json::JsonView jsonValue)
Point & WithX(double value)
Definition Point.h:49
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetY(double value)
Definition Point.h:61
Aws::Utils::Json::JsonValue JsonValue