AWS SDK for C++

AWS SDK for C++ Version 1.11.784

Loading...
Searching...
No Matches
SearchUsersResult.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/SearchedFace.h>
12#include <aws/rekognition/model/SearchedUser.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 SearchUsersResult() = default;
33
35
39 inline const Aws::Vector<UserMatch>& GetUserMatches() const { return m_userMatches; }
40 template <typename UserMatchesT = Aws::Vector<UserMatch>>
41 void SetUserMatches(UserMatchesT&& value) {
42 m_userMatchesHasBeenSet = true;
43 m_userMatches = std::forward<UserMatchesT>(value);
44 }
45 template <typename UserMatchesT = Aws::Vector<UserMatch>>
46 SearchUsersResult& WithUserMatches(UserMatchesT&& value) {
47 SetUserMatches(std::forward<UserMatchesT>(value));
48 return *this;
49 }
50 template <typename UserMatchesT = UserMatch>
51 SearchUsersResult& AddUserMatches(UserMatchesT&& value) {
52 m_userMatchesHasBeenSet = true;
53 m_userMatches.emplace_back(std::forward<UserMatchesT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
64 template <typename FaceModelVersionT = Aws::String>
65 void SetFaceModelVersion(FaceModelVersionT&& value) {
66 m_faceModelVersionHasBeenSet = true;
67 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
68 }
69 template <typename FaceModelVersionT = Aws::String>
70 SearchUsersResult& WithFaceModelVersion(FaceModelVersionT&& value) {
71 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
72 return *this;
73 }
75
77
81 inline const SearchedFace& GetSearchedFace() const { return m_searchedFace; }
82 template <typename SearchedFaceT = SearchedFace>
83 void SetSearchedFace(SearchedFaceT&& value) {
84 m_searchedFaceHasBeenSet = true;
85 m_searchedFace = std::forward<SearchedFaceT>(value);
86 }
87 template <typename SearchedFaceT = SearchedFace>
88 SearchUsersResult& WithSearchedFace(SearchedFaceT&& value) {
89 SetSearchedFace(std::forward<SearchedFaceT>(value));
90 return *this;
91 }
93
95
99 inline const SearchedUser& GetSearchedUser() const { return m_searchedUser; }
100 template <typename SearchedUserT = SearchedUser>
101 void SetSearchedUser(SearchedUserT&& value) {
102 m_searchedUserHasBeenSet = true;
103 m_searchedUser = std::forward<SearchedUserT>(value);
104 }
105 template <typename SearchedUserT = SearchedUser>
106 SearchUsersResult& WithSearchedUser(SearchedUserT&& value) {
107 SetSearchedUser(std::forward<SearchedUserT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
121 SearchUsersResult& WithRequestId(RequestIdT&& value) {
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
129 Aws::Vector<UserMatch> m_userMatches;
130
131 Aws::String m_faceModelVersion;
132
133 SearchedFace m_searchedFace;
134
135 SearchedUser m_searchedUser;
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_userMatchesHasBeenSet = false;
140 bool m_faceModelVersionHasBeenSet = false;
141 bool m_searchedFaceHasBeenSet = false;
142 bool m_searchedUserHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace Rekognition
148} // namespace Aws
AWS_REKOGNITION_API SearchUsersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetSearchedFace(SearchedFaceT &&value)
SearchUsersResult & WithRequestId(RequestIdT &&value)
AWS_REKOGNITION_API SearchUsersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const SearchedFace & GetSearchedFace() const
const Aws::String & GetFaceModelVersion() const
SearchUsersResult & WithSearchedUser(SearchedUserT &&value)
SearchUsersResult & AddUserMatches(UserMatchesT &&value)
SearchUsersResult & WithUserMatches(UserMatchesT &&value)
const SearchedUser & GetSearchedUser() const
void SetFaceModelVersion(FaceModelVersionT &&value)
SearchUsersResult & WithFaceModelVersion(FaceModelVersionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< UserMatch > & GetUserMatches() const
SearchUsersResult & WithSearchedFace(SearchedFaceT &&value)
AWS_REKOGNITION_API SearchUsersResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue