/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { class RecognizeCelebritiesResult { public: AWS_REKOGNITION_API RecognizeCelebritiesResult(); AWS_REKOGNITION_API RecognizeCelebritiesResult(const Aws::AmazonWebServiceResult& result); AWS_REKOGNITION_API RecognizeCelebritiesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline const Aws::Vector& GetCelebrityFaces() const{ return m_celebrityFaces; } /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline void SetCelebrityFaces(const Aws::Vector& value) { m_celebrityFaces = value; } /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline void SetCelebrityFaces(Aws::Vector&& value) { m_celebrityFaces = std::move(value); } /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline RecognizeCelebritiesResult& WithCelebrityFaces(const Aws::Vector& value) { SetCelebrityFaces(value); return *this;} /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline RecognizeCelebritiesResult& WithCelebrityFaces(Aws::Vector&& value) { SetCelebrityFaces(std::move(value)); return *this;} /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline RecognizeCelebritiesResult& AddCelebrityFaces(const Celebrity& value) { m_celebrityFaces.push_back(value); return *this; } /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 64 celebrities in an image. Each celebrity object includes * the following attributes: Face, Confidence, * Emotions, Landmarks, Pose, * Quality, Smile, Id, * KnownGender, MatchConfidence, Name, * Urls.

*/ inline RecognizeCelebritiesResult& AddCelebrityFaces(Celebrity&& value) { m_celebrityFaces.push_back(std::move(value)); return *this; } /** *

Details about each unrecognized face in the image.

*/ inline const Aws::Vector& GetUnrecognizedFaces() const{ return m_unrecognizedFaces; } /** *

Details about each unrecognized face in the image.

*/ inline void SetUnrecognizedFaces(const Aws::Vector& value) { m_unrecognizedFaces = value; } /** *

Details about each unrecognized face in the image.

*/ inline void SetUnrecognizedFaces(Aws::Vector&& value) { m_unrecognizedFaces = std::move(value); } /** *

Details about each unrecognized face in the image.

*/ inline RecognizeCelebritiesResult& WithUnrecognizedFaces(const Aws::Vector& value) { SetUnrecognizedFaces(value); return *this;} /** *

Details about each unrecognized face in the image.

*/ inline RecognizeCelebritiesResult& WithUnrecognizedFaces(Aws::Vector&& value) { SetUnrecognizedFaces(std::move(value)); return *this;} /** *

Details about each unrecognized face in the image.

*/ inline RecognizeCelebritiesResult& AddUnrecognizedFaces(const ComparedFace& value) { m_unrecognizedFaces.push_back(value); return *this; } /** *

Details about each unrecognized face in the image.

*/ inline RecognizeCelebritiesResult& AddUnrecognizedFaces(ComparedFace&& value) { m_unrecognizedFaces.push_back(std::move(value)); return *this; } /** *

Support for estimating image orientation using the the * OrientationCorrection field has ceased as of August 2021. Any returned values * for this field included in an API response will always be NULL.

*

The orientation of the input image (counterclockwise direction). If your * application displays the image, you can use this value to correct the * orientation. The bounding box coordinates returned in * CelebrityFaces and UnrecognizedFaces represent face * locations before the image orientation is corrected.

If the input * image is in .jpeg format, it might contain exchangeable image (Exif) metadata * that includes the image's orientation. If so, and the Exif metadata for the * input image populates the orientation field, the value of * OrientationCorrection is null. The CelebrityFaces and * UnrecognizedFaces bounding box coordinates represent face locations * after Exif metadata is used to correct the image orientation. Images in .png * format don't contain Exif metadata.

*/ inline const OrientationCorrection& GetOrientationCorrection() const{ return m_orientationCorrection; } /** *

Support for estimating image orientation using the the * OrientationCorrection field has ceased as of August 2021. Any returned values * for this field included in an API response will always be NULL.

*

The orientation of the input image (counterclockwise direction). If your * application displays the image, you can use this value to correct the * orientation. The bounding box coordinates returned in * CelebrityFaces and UnrecognizedFaces represent face * locations before the image orientation is corrected.

If the input * image is in .jpeg format, it might contain exchangeable image (Exif) metadata * that includes the image's orientation. If so, and the Exif metadata for the * input image populates the orientation field, the value of * OrientationCorrection is null. The CelebrityFaces and * UnrecognizedFaces bounding box coordinates represent face locations * after Exif metadata is used to correct the image orientation. Images in .png * format don't contain Exif metadata.

*/ inline void SetOrientationCorrection(const OrientationCorrection& value) { m_orientationCorrection = value; } /** *

Support for estimating image orientation using the the * OrientationCorrection field has ceased as of August 2021. Any returned values * for this field included in an API response will always be NULL.

*

The orientation of the input image (counterclockwise direction). If your * application displays the image, you can use this value to correct the * orientation. The bounding box coordinates returned in * CelebrityFaces and UnrecognizedFaces represent face * locations before the image orientation is corrected.

If the input * image is in .jpeg format, it might contain exchangeable image (Exif) metadata * that includes the image's orientation. If so, and the Exif metadata for the * input image populates the orientation field, the value of * OrientationCorrection is null. The CelebrityFaces and * UnrecognizedFaces bounding box coordinates represent face locations * after Exif metadata is used to correct the image orientation. Images in .png * format don't contain Exif metadata.

*/ inline void SetOrientationCorrection(OrientationCorrection&& value) { m_orientationCorrection = std::move(value); } /** *

Support for estimating image orientation using the the * OrientationCorrection field has ceased as of August 2021. Any returned values * for this field included in an API response will always be NULL.

*

The orientation of the input image (counterclockwise direction). If your * application displays the image, you can use this value to correct the * orientation. The bounding box coordinates returned in * CelebrityFaces and UnrecognizedFaces represent face * locations before the image orientation is corrected.

If the input * image is in .jpeg format, it might contain exchangeable image (Exif) metadata * that includes the image's orientation. If so, and the Exif metadata for the * input image populates the orientation field, the value of * OrientationCorrection is null. The CelebrityFaces and * UnrecognizedFaces bounding box coordinates represent face locations * after Exif metadata is used to correct the image orientation. Images in .png * format don't contain Exif metadata.

*/ inline RecognizeCelebritiesResult& WithOrientationCorrection(const OrientationCorrection& value) { SetOrientationCorrection(value); return *this;} /** *

Support for estimating image orientation using the the * OrientationCorrection field has ceased as of August 2021. Any returned values * for this field included in an API response will always be NULL.

*

The orientation of the input image (counterclockwise direction). If your * application displays the image, you can use this value to correct the * orientation. The bounding box coordinates returned in * CelebrityFaces and UnrecognizedFaces represent face * locations before the image orientation is corrected.

If the input * image is in .jpeg format, it might contain exchangeable image (Exif) metadata * that includes the image's orientation. If so, and the Exif metadata for the * input image populates the orientation field, the value of * OrientationCorrection is null. The CelebrityFaces and * UnrecognizedFaces bounding box coordinates represent face locations * after Exif metadata is used to correct the image orientation. Images in .png * format don't contain Exif metadata.

*/ inline RecognizeCelebritiesResult& WithOrientationCorrection(OrientationCorrection&& value) { SetOrientationCorrection(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline RecognizeCelebritiesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline RecognizeCelebritiesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline RecognizeCelebritiesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_celebrityFaces; Aws::Vector m_unrecognizedFaces; OrientationCorrection m_orientationCorrection; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws