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

ID of the face that was searched for matches in a collection.

*/ inline const Aws::String& GetSearchedFaceId() const{ return m_searchedFaceId; } /** *

ID of the face that was searched for matches in a collection.

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

ID of the face that was searched for matches in a collection.

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

ID of the face that was searched for matches in a collection.

*/ inline void SetSearchedFaceId(const char* value) { m_searchedFaceId.assign(value); } /** *

ID of the face that was searched for matches in a collection.

*/ inline SearchFacesResult& WithSearchedFaceId(const Aws::String& value) { SetSearchedFaceId(value); return *this;} /** *

ID of the face that was searched for matches in a collection.

*/ inline SearchFacesResult& WithSearchedFaceId(Aws::String&& value) { SetSearchedFaceId(std::move(value)); return *this;} /** *

ID of the face that was searched for matches in a collection.

*/ inline SearchFacesResult& WithSearchedFaceId(const char* value) { SetSearchedFaceId(value); return *this;} /** *

An array of faces that matched the input face, along with the confidence in * the match.

*/ inline const Aws::Vector& GetFaceMatches() const{ return m_faceMatches; } /** *

An array of faces that matched the input face, along with the confidence in * the match.

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

An array of faces that matched the input face, along with the confidence in * the match.

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

An array of faces that matched the input face, along with the confidence in * the match.

*/ inline SearchFacesResult& WithFaceMatches(const Aws::Vector& value) { SetFaceMatches(value); return *this;} /** *

An array of faces that matched the input face, along with the confidence in * the match.

*/ inline SearchFacesResult& WithFaceMatches(Aws::Vector&& value) { SetFaceMatches(std::move(value)); return *this;} /** *

An array of faces that matched the input face, along with the confidence in * the match.

*/ inline SearchFacesResult& AddFaceMatches(const FaceMatch& value) { m_faceMatches.push_back(value); return *this; } /** *

An array of faces that matched the input face, along with the confidence in * the match.

*/ inline SearchFacesResult& AddFaceMatches(FaceMatch&& value) { m_faceMatches.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 SearchFacesResult& WithFaceModelVersion(const Aws::String& value) { SetFaceModelVersion(value); return *this;} /** *

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

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

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

*/ inline SearchFacesResult& WithFaceModelVersion(const char* value) { SetFaceModelVersion(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 SearchFacesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline SearchFacesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline SearchFacesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_searchedFaceId; Aws::Vector m_faceMatches; Aws::String m_faceModelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws