/** * 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 DetectFacesResult { public: AWS_REKOGNITION_API DetectFacesResult(); AWS_REKOGNITION_API DetectFacesResult(const Aws::AmazonWebServiceResult& result); AWS_REKOGNITION_API DetectFacesResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Details of each face found in the image.

*/ inline const Aws::Vector& GetFaceDetails() const{ return m_faceDetails; } /** *

Details of each face found in the image.

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

Details of each face found in the image.

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

Details of each face found in the image.

*/ inline DetectFacesResult& WithFaceDetails(const Aws::Vector& value) { SetFaceDetails(value); return *this;} /** *

Details of each face found in the image.

*/ inline DetectFacesResult& WithFaceDetails(Aws::Vector&& value) { SetFaceDetails(std::move(value)); return *this;} /** *

Details of each face found in the image.

*/ inline DetectFacesResult& AddFaceDetails(const FaceDetail& value) { m_faceDetails.push_back(value); return *this; } /** *

Details of each face found in the image.

*/ inline DetectFacesResult& AddFaceDetails(FaceDetail&& value) { m_faceDetails.push_back(std::move(value)); return *this; } /** *

The value of OrientationCorrection is always null.

If the * input image is in .jpeg format, it might contain exchangeable image file format * (Exif) metadata that includes the image's orientation. Amazon Rekognition uses * this orientation information to perform image correction. The bounding box * coordinates are translated to represent object locations after the orientation * information in the Exif metadata is used to correct the image orientation. * Images in .png format don't contain Exif metadata.

Amazon Rekognition * doesn’t perform image correction for images in .png format and .jpeg images * without orientation information in the image Exif metadata. The bounding box * coordinates aren't translated and represent the object locations before the * image is rotated.

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

The value of OrientationCorrection is always null.

If the * input image is in .jpeg format, it might contain exchangeable image file format * (Exif) metadata that includes the image's orientation. Amazon Rekognition uses * this orientation information to perform image correction. The bounding box * coordinates are translated to represent object locations after the orientation * information in the Exif metadata is used to correct the image orientation. * Images in .png format don't contain Exif metadata.

Amazon Rekognition * doesn’t perform image correction for images in .png format and .jpeg images * without orientation information in the image Exif metadata. The bounding box * coordinates aren't translated and represent the object locations before the * image is rotated.

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

The value of OrientationCorrection is always null.

If the * input image is in .jpeg format, it might contain exchangeable image file format * (Exif) metadata that includes the image's orientation. Amazon Rekognition uses * this orientation information to perform image correction. The bounding box * coordinates are translated to represent object locations after the orientation * information in the Exif metadata is used to correct the image orientation. * Images in .png format don't contain Exif metadata.

Amazon Rekognition * doesn’t perform image correction for images in .png format and .jpeg images * without orientation information in the image Exif metadata. The bounding box * coordinates aren't translated and represent the object locations before the * image is rotated.

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

The value of OrientationCorrection is always null.

If the * input image is in .jpeg format, it might contain exchangeable image file format * (Exif) metadata that includes the image's orientation. Amazon Rekognition uses * this orientation information to perform image correction. The bounding box * coordinates are translated to represent object locations after the orientation * information in the Exif metadata is used to correct the image orientation. * Images in .png format don't contain Exif metadata.

Amazon Rekognition * doesn’t perform image correction for images in .png format and .jpeg images * without orientation information in the image Exif metadata. The bounding box * coordinates aren't translated and represent the object locations before the * image is rotated.

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

The value of OrientationCorrection is always null.

If the * input image is in .jpeg format, it might contain exchangeable image file format * (Exif) metadata that includes the image's orientation. Amazon Rekognition uses * this orientation information to perform image correction. The bounding box * coordinates are translated to represent object locations after the orientation * information in the Exif metadata is used to correct the image orientation. * Images in .png format don't contain Exif metadata.

Amazon Rekognition * doesn’t perform image correction for images in .png format and .jpeg images * without orientation information in the image Exif metadata. The bounding box * coordinates aren't translated and represent the object locations before the * image is rotated.

*/ inline DetectFacesResult& 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 DetectFacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectFacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectFacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_faceDetails; OrientationCorrection m_orientationCorrection; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws