AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SearchUsersResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/SearchedFace.h>
11#include <aws/rekognition/model/SearchedUser.h>
12#include <aws/rekognition/model/UserMatch.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition {
26namespace Model {
28 public:
29 AWS_REKOGNITION_API SearchUsersResult() = default;
32
34
38 inline const Aws::Vector<UserMatch>& GetUserMatches() const { return m_userMatches; }
39 template <typename UserMatchesT = Aws::Vector<UserMatch>>
40 void SetUserMatches(UserMatchesT&& value) {
41 m_userMatchesHasBeenSet = true;
42 m_userMatches = std::forward<UserMatchesT>(value);
43 }
44 template <typename UserMatchesT = Aws::Vector<UserMatch>>
45 SearchUsersResult& WithUserMatches(UserMatchesT&& value) {
46 SetUserMatches(std::forward<UserMatchesT>(value));
47 return *this;
48 }
49 template <typename UserMatchesT = UserMatch>
50 SearchUsersResult& AddUserMatches(UserMatchesT&& value) {
51 m_userMatchesHasBeenSet = true;
52 m_userMatches.emplace_back(std::forward<UserMatchesT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetFaceModelVersion() const { return m_faceModelVersion; }
63 template <typename FaceModelVersionT = Aws::String>
64 void SetFaceModelVersion(FaceModelVersionT&& value) {
65 m_faceModelVersionHasBeenSet = true;
66 m_faceModelVersion = std::forward<FaceModelVersionT>(value);
67 }
68 template <typename FaceModelVersionT = Aws::String>
69 SearchUsersResult& WithFaceModelVersion(FaceModelVersionT&& value) {
70 SetFaceModelVersion(std::forward<FaceModelVersionT>(value));
71 return *this;
72 }
74
76
80 inline const SearchedFace& GetSearchedFace() const { return m_searchedFace; }
81 template <typename SearchedFaceT = SearchedFace>
82 void SetSearchedFace(SearchedFaceT&& value) {
83 m_searchedFaceHasBeenSet = true;
84 m_searchedFace = std::forward<SearchedFaceT>(value);
85 }
86 template <typename SearchedFaceT = SearchedFace>
87 SearchUsersResult& WithSearchedFace(SearchedFaceT&& value) {
88 SetSearchedFace(std::forward<SearchedFaceT>(value));
89 return *this;
90 }
92
94
98 inline const SearchedUser& GetSearchedUser() const { return m_searchedUser; }
99 template <typename SearchedUserT = SearchedUser>
100 void SetSearchedUser(SearchedUserT&& value) {
101 m_searchedUserHasBeenSet = true;
102 m_searchedUser = std::forward<SearchedUserT>(value);
103 }
104 template <typename SearchedUserT = SearchedUser>
105 SearchUsersResult& WithSearchedUser(SearchedUserT&& value) {
106 SetSearchedUser(std::forward<SearchedUserT>(value));
107 return *this;
108 }
110
112
113 inline const Aws::String& GetRequestId() const { return m_requestId; }
114 template <typename RequestIdT = Aws::String>
115 void SetRequestId(RequestIdT&& value) {
116 m_requestIdHasBeenSet = true;
117 m_requestId = std::forward<RequestIdT>(value);
118 }
119 template <typename RequestIdT = Aws::String>
120 SearchUsersResult& WithRequestId(RequestIdT&& value) {
121 SetRequestId(std::forward<RequestIdT>(value));
122 return *this;
123 }
125 private:
126 Aws::Vector<UserMatch> m_userMatches;
127 bool m_userMatchesHasBeenSet = false;
128
129 Aws::String m_faceModelVersion;
130 bool m_faceModelVersionHasBeenSet = false;
131
132 SearchedFace m_searchedFace;
133 bool m_searchedFaceHasBeenSet = false;
134
135 SearchedUser m_searchedUser;
136 bool m_searchedUserHasBeenSet = false;
137
138 Aws::String m_requestId;
139 bool m_requestIdHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace Rekognition
144} // 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)
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