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

Indicates the location of the landmark on the face.

See Also:

* AWS * API Reference

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

Type of landmark.

*/ inline const LandmarkType& GetType() const{ return m_type; } /** *

Type of landmark.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

Type of landmark.

*/ inline void SetType(const LandmarkType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

Type of landmark.

*/ inline void SetType(LandmarkType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

Type of landmark.

*/ inline Landmark& WithType(const LandmarkType& value) { SetType(value); return *this;} /** *

Type of landmark.

*/ inline Landmark& WithType(LandmarkType&& value) { SetType(std::move(value)); return *this;} /** *

The x-coordinate of the landmark expressed as a ratio of the width of the * image. The x-coordinate is measured from the left-side of the image. For * example, if the image is 700 pixels wide and the x-coordinate of the landmark is * at 350 pixels, this value is 0.5.

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

The x-coordinate of the landmark expressed as a ratio of the width of the * image. The x-coordinate is measured from the left-side of the image. For * example, if the image is 700 pixels wide and the x-coordinate of the landmark is * at 350 pixels, this value is 0.5.

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

The x-coordinate of the landmark expressed as a ratio of the width of the * image. The x-coordinate is measured from the left-side of the image. For * example, if the image is 700 pixels wide and the x-coordinate of the landmark is * at 350 pixels, this value is 0.5.

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

The x-coordinate of the landmark expressed as a ratio of the width of the * image. The x-coordinate is measured from the left-side of the image. For * example, if the image is 700 pixels wide and the x-coordinate of the landmark is * at 350 pixels, this value is 0.5.

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

The y-coordinate of the landmark expressed as a ratio of the height of the * image. The y-coordinate is measured from the top of the image. For example, if * the image height is 200 pixels and the y-coordinate of the landmark is at 50 * pixels, this value is 0.25.

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

The y-coordinate of the landmark expressed as a ratio of the height of the * image. The y-coordinate is measured from the top of the image. For example, if * the image height is 200 pixels and the y-coordinate of the landmark is at 50 * pixels, this value is 0.25.

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

The y-coordinate of the landmark expressed as a ratio of the height of the * image. The y-coordinate is measured from the top of the image. For example, if * the image height is 200 pixels and the y-coordinate of the landmark is at 50 * pixels, this value is 0.25.

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

The y-coordinate of the landmark expressed as a ratio of the height of the * image. The y-coordinate is measured from the top of the image. For example, if * the image height is 200 pixels and the y-coordinate of the landmark is at 50 * pixels, this value is 0.25.

*/ inline Landmark& WithY(double value) { SetY(value); return *this;} private: LandmarkType m_type; bool m_typeHasBeenSet = false; double m_x; bool m_xHasBeenSet = false; double m_y; bool m_yHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws