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

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

*/ inline const Aws::Vector& GetUserMatches() const{ return m_userMatches; } /** *

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

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

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

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

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

*/ inline SearchUsersByImageResult& WithUserMatches(const Aws::Vector& value) { SetUserMatches(value); return *this;} /** *

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

*/ inline SearchUsersByImageResult& WithUserMatches(Aws::Vector&& value) { SetUserMatches(std::move(value)); return *this;} /** *

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

*/ inline SearchUsersByImageResult& AddUserMatches(const UserMatch& value) { m_userMatches.push_back(value); return *this; } /** *

An array of UserID objects that matched the input face, along with the * confidence in the match. The returned structure will be empty if there are no * matches. Returned if the SearchUsersByImageResponse action is successful.

*/ inline SearchUsersByImageResult& AddUserMatches(UserMatch&& value) { m_userMatches.push_back(std::move(value)); return *this; } /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline const Aws::String& GetFaceModelVersion() const{ return m_faceModelVersion; } /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline void SetFaceModelVersion(const Aws::String& value) { m_faceModelVersion = value; } /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline void SetFaceModelVersion(Aws::String&& value) { m_faceModelVersion = std::move(value); } /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline void SetFaceModelVersion(const char* value) { m_faceModelVersion.assign(value); } /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline SearchUsersByImageResult& WithFaceModelVersion(const Aws::String& value) { SetFaceModelVersion(value); return *this;} /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline SearchUsersByImageResult& WithFaceModelVersion(Aws::String&& value) { SetFaceModelVersion(std::move(value)); return *this;} /** *

Version number of the face detection model associated with the input * collection CollectionId.

*/ inline SearchUsersByImageResult& WithFaceModelVersion(const char* value) { SetFaceModelVersion(value); return *this;} /** *

A list of FaceDetail objects containing the BoundingBox for the largest face * in image, as well as the confidence in the bounding box, that was searched for * matches. If no valid face is detected in the image the response will contain no * SearchedFace object.

*/ inline const SearchedFaceDetails& GetSearchedFace() const{ return m_searchedFace; } /** *

A list of FaceDetail objects containing the BoundingBox for the largest face * in image, as well as the confidence in the bounding box, that was searched for * matches. If no valid face is detected in the image the response will contain no * SearchedFace object.

*/ inline void SetSearchedFace(const SearchedFaceDetails& value) { m_searchedFace = value; } /** *

A list of FaceDetail objects containing the BoundingBox for the largest face * in image, as well as the confidence in the bounding box, that was searched for * matches. If no valid face is detected in the image the response will contain no * SearchedFace object.

*/ inline void SetSearchedFace(SearchedFaceDetails&& value) { m_searchedFace = std::move(value); } /** *

A list of FaceDetail objects containing the BoundingBox for the largest face * in image, as well as the confidence in the bounding box, that was searched for * matches. If no valid face is detected in the image the response will contain no * SearchedFace object.

*/ inline SearchUsersByImageResult& WithSearchedFace(const SearchedFaceDetails& value) { SetSearchedFace(value); return *this;} /** *

A list of FaceDetail objects containing the BoundingBox for the largest face * in image, as well as the confidence in the bounding box, that was searched for * matches. If no valid face is detected in the image the response will contain no * SearchedFace object.

*/ inline SearchUsersByImageResult& WithSearchedFace(SearchedFaceDetails&& value) { SetSearchedFace(std::move(value)); return *this;} /** *

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

*/ inline const Aws::Vector& GetUnsearchedFaces() const{ return m_unsearchedFaces; } /** *

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

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

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

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

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

*/ inline SearchUsersByImageResult& WithUnsearchedFaces(const Aws::Vector& value) { SetUnsearchedFaces(value); return *this;} /** *

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

*/ inline SearchUsersByImageResult& WithUnsearchedFaces(Aws::Vector&& value) { SetUnsearchedFaces(std::move(value)); return *this;} /** *

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

*/ inline SearchUsersByImageResult& AddUnsearchedFaces(const UnsearchedFace& value) { m_unsearchedFaces.push_back(value); return *this; } /** *

List of UnsearchedFace objects. Contains the face details infered from the * specified image but not used for search. Contains reasons that describe why a * face wasn't used for Search.

*/ inline SearchUsersByImageResult& AddUnsearchedFaces(UnsearchedFace&& value) { m_unsearchedFaces.push_back(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 SearchUsersByImageResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchUsersByImageResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchUsersByImageResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_userMatches; Aws::String m_faceModelVersion; SearchedFaceDetails m_searchedFace; Aws::Vector m_unsearchedFaces; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws