This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

144 lines
4.4 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/rekognition/Rekognition_EXPORTS.h>
#include <aws/rekognition/model/LandmarkType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Rekognition
{
namespace Model
{
/**
* <p>Indicates the location of the landmark on the face.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/Landmark">AWS
* API Reference</a></p>
*/
class AWS_REKOGNITION_API Landmark
{
public:
Landmark();
Landmark(Aws::Utils::Json::JsonView jsonValue);
Landmark& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Type of landmark.</p>
*/
inline const LandmarkType& GetType() const{ return m_type; }
/**
* <p>Type of landmark.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>Type of landmark.</p>
*/
inline void SetType(const LandmarkType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>Type of landmark.</p>
*/
inline void SetType(LandmarkType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>Type of landmark.</p>
*/
inline Landmark& WithType(const LandmarkType& value) { SetType(value); return *this;}
/**
* <p>Type of landmark.</p>
*/
inline Landmark& WithType(LandmarkType&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The x-coordinate from the top left of the landmark expressed as the ratio of
* the width of the image. For example, if the image is 700 x 200 and the
* x-coordinate of the landmark is at 350 pixels, this value is 0.5. </p>
*/
inline double GetX() const{ return m_x; }
/**
* <p>The x-coordinate from the top left of the landmark expressed as the ratio of
* the width of the image. For example, if the image is 700 x 200 and the
* x-coordinate of the landmark is at 350 pixels, this value is 0.5. </p>
*/
inline bool XHasBeenSet() const { return m_xHasBeenSet; }
/**
* <p>The x-coordinate from the top left of the landmark expressed as the ratio of
* the width of the image. For example, if the image is 700 x 200 and the
* x-coordinate of the landmark is at 350 pixels, this value is 0.5. </p>
*/
inline void SetX(double value) { m_xHasBeenSet = true; m_x = value; }
/**
* <p>The x-coordinate from the top left of the landmark expressed as the ratio of
* the width of the image. For example, if the image is 700 x 200 and the
* x-coordinate of the landmark is at 350 pixels, this value is 0.5. </p>
*/
inline Landmark& WithX(double value) { SetX(value); return *this;}
/**
* <p>The y-coordinate from the top left of the landmark expressed as the ratio of
* the height of the image. For example, if the image is 700 x 200 and the
* y-coordinate of the landmark is at 100 pixels, this value is 0.5.</p>
*/
inline double GetY() const{ return m_y; }
/**
* <p>The y-coordinate from the top left of the landmark expressed as the ratio of
* the height of the image. For example, if the image is 700 x 200 and the
* y-coordinate of the landmark is at 100 pixels, this value is 0.5.</p>
*/
inline bool YHasBeenSet() const { return m_yHasBeenSet; }
/**
* <p>The y-coordinate from the top left of the landmark expressed as the ratio of
* the height of the image. For example, if the image is 700 x 200 and the
* y-coordinate of the landmark is at 100 pixels, this value is 0.5.</p>
*/
inline void SetY(double value) { m_yHasBeenSet = true; m_y = value; }
/**
* <p>The y-coordinate from the top left of the landmark expressed as the ratio of
* the height of the image. For example, if the image is 700 x 200 and the
* y-coordinate of the landmark is at 100 pixels, this value is 0.5.</p>
*/
inline Landmark& WithY(double value) { SetY(value); return *this;}
private:
LandmarkType m_type;
bool m_typeHasBeenSet;
double m_x;
bool m_xHasBeenSet;
double m_y;
bool m_yHasBeenSet;
};
} // namespace Model
} // namespace Rekognition
} // namespace Aws