/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 AWS_REKOGNITION_API RecognizeCelebritiesResult { public: RecognizeCelebritiesResult(); RecognizeCelebritiesResult(const Aws::AmazonWebServiceResult& result); RecognizeCelebritiesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 15 celebrities in an image.

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

Details about each celebrity found in the image. Amazon Rekognition can * detect a maximum of 15 celebrities in an image.

*/ 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 15 celebrities in an image.

*/ 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 15 celebrities in an image.

*/ 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 15 celebrities in an image.

*/ 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 15 celebrities in an image.

*/ 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 15 celebrities in an image.

*/ 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; } /** *

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; } /** *

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; } /** *

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); } /** *

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;} /** *

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;} private: Aws::Vector m_celebrityFaces; Aws::Vector m_unrecognizedFaces; OrientationCorrection m_orientationCorrection; }; } // namespace Model } // namespace Rekognition } // namespace Aws