AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SearchFacesResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/FaceMatch.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition
26{
27namespace Model
28{
30 {
31 public:
32 AWS_REKOGNITION_API SearchFacesResult() = default;
35
36
38
41 inline const Aws::String& GetSearchedFaceId() const { return m_searchedFaceId; }
42 template<typename SearchedFaceIdT = Aws::String>
43 void SetSearchedFaceId(SearchedFaceIdT&& value) { m_searchedFaceIdHasBeenSet = true; m_searchedFaceId = std::forward<SearchedFaceIdT>(value); }
44 template<typename SearchedFaceIdT = Aws::String>
45 SearchFacesResult& WithSearchedFaceId(SearchedFaceIdT&& value) { SetSearchedFaceId(std::forward<SearchedFaceIdT>(value)); return *this;}
47
49
53 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
54 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
55 void SetFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches = std::forward<FaceMatchesT>(value); }
56 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
57 SearchFacesResult& WithFaceMatches(FaceMatchesT&& value) { SetFaceMatches(std::forward<FaceMatchesT>(value)); return *this;}
58 template<typename FaceMatchesT = FaceMatch>
59 SearchFacesResult& AddFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value)); return *this; }
61
63
67 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
68 template<typename FaceModelVersionT = Aws::String>
69 void SetFaceModelVersion(FaceModelVersionT&& value) { m_faceModelVersionHasBeenSet = true; m_faceModelVersion = std::forward<FaceModelVersionT>(value); }
70 template<typename FaceModelVersionT = Aws::String>
71 SearchFacesResult& WithFaceModelVersion(FaceModelVersionT&& value) { SetFaceModelVersion(std::forward<FaceModelVersionT>(value)); return *this;}
73
75
76 inline const Aws::String& GetRequestId() const { return m_requestId; }
77 template<typename RequestIdT = Aws::String>
78 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
79 template<typename RequestIdT = Aws::String>
80 SearchFacesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
82 private:
83
84 Aws::String m_searchedFaceId;
85 bool m_searchedFaceIdHasBeenSet = false;
86
87 Aws::Vector<FaceMatch> m_faceMatches;
88 bool m_faceMatchesHasBeenSet = false;
89
90 Aws::String m_faceModelVersion;
91 bool m_faceModelVersionHasBeenSet = false;
92
93 Aws::String m_requestId;
94 bool m_requestIdHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace Rekognition
99} // namespace Aws
const Aws::String & GetSearchedFaceId() const
SearchFacesResult & WithFaceModelVersion(FaceModelVersionT &&value)
AWS_REKOGNITION_API SearchFacesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REKOGNITION_API SearchFacesResult()=default
SearchFacesResult & WithSearchedFaceId(SearchedFaceIdT &&value)
const Aws::String & GetFaceModelVersion() const
SearchFacesResult & AddFaceMatches(FaceMatchesT &&value)
const Aws::Vector< FaceMatch > & GetFaceMatches() const
SearchFacesResult & WithRequestId(RequestIdT &&value)
void SetFaceModelVersion(FaceModelVersionT &&value)
SearchFacesResult & WithFaceMatches(FaceMatchesT &&value)
AWS_REKOGNITION_API SearchFacesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSearchedFaceId(SearchedFaceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue