AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SearchUsersByImageResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/SearchedFaceDetails.h>
12#include <aws/rekognition/model/UnsearchedFace.h>
13#include <aws/rekognition/model/UserMatch.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace Rekognition {
27namespace Model {
29 public:
30 AWS_REKOGNITION_API SearchUsersByImageResult() = default;
33
35
40 inline const Aws::Vector<UserMatch>& GetUserMatches() const { return m_userMatches; }
41 template <typename UserMatchesT = Aws::Vector<UserMatch>>
42 void SetUserMatches(UserMatchesT&& value) {
43 m_userMatchesHasBeenSet = true;
44 m_userMatches = std::forward<UserMatchesT>(value);
45 }
46 template <typename UserMatchesT = Aws::Vector<UserMatch>>
48 SetUserMatches(std::forward<UserMatchesT>(value));
49 return *this;
50 }
51 template <typename UserMatchesT = UserMatch>
53 m_userMatchesHasBeenSet = true;
54 m_userMatches.emplace_back(std::forward<UserMatchesT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
65 template <typename FaceModelVersionT = Aws::String>
66 void SetFaceModelVersion(FaceModelVersionT&& value) {
67 m_faceModelVersionHasBeenSet = true;
68 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
69 }
70 template <typename FaceModelVersionT = Aws::String>
71 SearchUsersByImageResult& WithFaceModelVersion(FaceModelVersionT&& value) {
72 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
73 return *this;
74 }
76
78
84 inline const SearchedFaceDetails& GetSearchedFace() const { return m_searchedFace; }
85 template <typename SearchedFaceT = SearchedFaceDetails>
86 void SetSearchedFace(SearchedFaceT&& value) {
87 m_searchedFaceHasBeenSet = true;
88 m_searchedFace = std::forward<SearchedFaceT>(value);
89 }
90 template <typename SearchedFaceT = SearchedFaceDetails>
92 SetSearchedFace(std::forward<SearchedFaceT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::Vector<UnsearchedFace>& GetUnsearchedFaces() const { return m_unsearchedFaces; }
104 template <typename UnsearchedFacesT = Aws::Vector<UnsearchedFace>>
105 void SetUnsearchedFaces(UnsearchedFacesT&& value) {
106 m_unsearchedFacesHasBeenSet = true;
107 m_unsearchedFaces = std::forward<UnsearchedFacesT>(value);
108 }
109 template <typename UnsearchedFacesT = Aws::Vector<UnsearchedFace>>
111 SetUnsearchedFaces(std::forward<UnsearchedFacesT>(value));
112 return *this;
113 }
114 template <typename UnsearchedFacesT = UnsearchedFace>
115 SearchUsersByImageResult& AddUnsearchedFaces(UnsearchedFacesT&& value) {
116 m_unsearchedFacesHasBeenSet = true;
117 m_unsearchedFaces.emplace_back(std::forward<UnsearchedFacesT>(value));
118 return *this;
119 }
121
123
124 inline const Aws::String& GetRequestId() const { return m_requestId; }
125 template <typename RequestIdT = Aws::String>
126 void SetRequestId(RequestIdT&& value) {
127 m_requestIdHasBeenSet = true;
128 m_requestId = std::forward<RequestIdT>(value);
129 }
130 template <typename RequestIdT = Aws::String>
132 SetRequestId(std::forward<RequestIdT>(value));
133 return *this;
134 }
136 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
137
138 private:
139 Aws::Vector<UserMatch> m_userMatches;
140
141 Aws::String m_faceModelVersion;
142
143 SearchedFaceDetails m_searchedFace;
144
145 Aws::Vector<UnsearchedFace> m_unsearchedFaces;
146
147 Aws::String m_requestId;
148 Aws::Http::HttpResponseCode m_HttpResponseCode;
149 bool m_userMatchesHasBeenSet = false;
150 bool m_faceModelVersionHasBeenSet = false;
151 bool m_searchedFaceHasBeenSet = false;
152 bool m_unsearchedFacesHasBeenSet = false;
153 bool m_requestIdHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace Rekognition
158} // namespace Aws
const Aws::Vector< UnsearchedFace > & GetUnsearchedFaces() const
SearchUsersByImageResult & WithSearchedFace(SearchedFaceT &&value)
AWS_REKOGNITION_API SearchUsersByImageResult()=default
AWS_REKOGNITION_API SearchUsersByImageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchUsersByImageResult & WithUserMatches(UserMatchesT &&value)
SearchUsersByImageResult & WithUnsearchedFaces(UnsearchedFacesT &&value)
AWS_REKOGNITION_API SearchUsersByImageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
SearchUsersByImageResult & AddUnsearchedFaces(UnsearchedFacesT &&value)
const Aws::Vector< UserMatch > & GetUserMatches() const
SearchUsersByImageResult & WithFaceModelVersion(FaceModelVersionT &&value)
SearchUsersByImageResult & AddUserMatches(UserMatchesT &&value)
SearchUsersByImageResult & WithRequestId(RequestIdT &&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