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

Type that describes the face Amazon Rekognition chose to compare with the * faces in the target. This contains a bounding box for the selected face and * confidence level that the bounding box contains a face. Note that Amazon * Rekognition selects the largest face in the source image for this comparison. *

See Also:

AWS * API Reference

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

Bounding box of the face.

*/ inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; } /** *

Bounding box of the face.

*/ inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; } /** *

Bounding box of the face.

*/ inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; } /** *

Bounding box of the face.

*/ inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); } /** *

Bounding box of the face.

*/ inline ComparedSourceImageFace& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;} /** *

Bounding box of the face.

*/ inline ComparedSourceImageFace& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;} /** *

Confidence level that the selected bounding box contains a face.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

Confidence level that the selected bounding box contains a face.

*/ inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; } /** *

Confidence level that the selected bounding box contains a face.

*/ inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; } /** *

Confidence level that the selected bounding box contains a face.

*/ inline ComparedSourceImageFace& WithConfidence(double value) { SetConfidence(value); return *this;} private: BoundingBox m_boundingBox; bool m_boundingBoxHasBeenSet = false; double m_confidence; bool m_confidenceHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws