/** * 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 { /** *

Provides face metadata. In addition, it also provides the confidence in the * match of this face with the input face.

See Also:

AWS * API Reference

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

Confidence in the match of this face with the input face.

*/ inline double GetSimilarity() const{ return m_similarity; } /** *

Confidence in the match of this face with the input face.

*/ inline bool SimilarityHasBeenSet() const { return m_similarityHasBeenSet; } /** *

Confidence in the match of this face with the input face.

*/ inline void SetSimilarity(double value) { m_similarityHasBeenSet = true; m_similarity = value; } /** *

Confidence in the match of this face with the input face.

*/ inline FaceMatch& WithSimilarity(double value) { SetSimilarity(value); return *this;} /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline const Face& GetFace() const{ return m_face; } /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; } /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline void SetFace(const Face& value) { m_faceHasBeenSet = true; m_face = value; } /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline void SetFace(Face&& value) { m_faceHasBeenSet = true; m_face = std::move(value); } /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline FaceMatch& WithFace(const Face& value) { SetFace(value); return *this;} /** *

Describes the face properties such as the bounding box, face ID, image ID of * the source image, and external image ID that you assigned.

*/ inline FaceMatch& WithFace(Face&& value) { SetFace(std::move(value)); return *this;} private: double m_similarity; bool m_similarityHasBeenSet = false; Face m_face; bool m_faceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws