/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Comprehend { namespace Model { /** *

The X and Y coordinates of a point on a document page.

For additional * information, see Point * in the Amazon Textract API reference.

See Also:

AWS * API Reference

*/ class Point { public: AWS_COMPREHEND_API Point(); AWS_COMPREHEND_API Point(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Point& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHEND_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value of the X coordinate for a point on a polygon

*/ inline double GetX() const{ return m_x; } /** *

The value of the X coordinate for a point on a polygon

*/ inline bool XHasBeenSet() const { return m_xHasBeenSet; } /** *

The value of the X coordinate for a point on a polygon

*/ inline void SetX(double value) { m_xHasBeenSet = true; m_x = value; } /** *

The value of the X coordinate for a point on a polygon

*/ inline Point& WithX(double value) { SetX(value); return *this;} /** *

The value of the Y coordinate for a point on a polygon

*/ inline double GetY() const{ return m_y; } /** *

The value of the Y coordinate for a point on a polygon

*/ inline bool YHasBeenSet() const { return m_yHasBeenSet; } /** *

The value of the Y coordinate for a point on a polygon

*/ inline void SetY(double value) { m_yHasBeenSet = true; m_y = value; } /** *

The value of the Y coordinate for a point on a polygon

*/ inline Point& WithY(double value) { SetY(value); return *this;} private: double m_x; bool m_xHasBeenSet = false; double m_y; bool m_yHasBeenSet = false; }; } // namespace Model } // namespace Comprehend } // namespace Aws