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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

An array of UserMatch objects that matched the input face along with the * confidence in the match. Array will be empty if there are no matches.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contains the ID of a face that was used to search for matches in a * collection.

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

Contains the ID of a face that was used to search for matches in a * collection.

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

Contains the ID of a face that was used to search for matches in a * collection.

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

Contains the ID of a face that was used to search for matches in a * collection.

*/ inline SearchUsersResult& WithSearchedFace(const SearchedFace& value) { SetSearchedFace(value); return *this;} /** *

Contains the ID of a face that was used to search for matches in a * collection.

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

Contains the ID of the UserID that was used to search for matches in a * collection.

*/ inline const SearchedUser& GetSearchedUser() const{ return m_searchedUser; } /** *

Contains the ID of the UserID that was used to search for matches in a * collection.

*/ inline void SetSearchedUser(const SearchedUser& value) { m_searchedUser = value; } /** *

Contains the ID of the UserID that was used to search for matches in a * collection.

*/ inline void SetSearchedUser(SearchedUser&& value) { m_searchedUser = std::move(value); } /** *

Contains the ID of the UserID that was used to search for matches in a * collection.

*/ inline SearchUsersResult& WithSearchedUser(const SearchedUser& value) { SetSearchedUser(value); return *this;} /** *

Contains the ID of the UserID that was used to search for matches in a * collection.

*/ inline SearchUsersResult& WithSearchedUser(SearchedUser&& value) { SetSearchedUser(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 SearchUsersResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchUsersResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchUsersResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_userMatches; Aws::String m_faceModelVersion; SearchedFace m_searchedFace; SearchedUser m_searchedUser; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws