AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetFaceSearchResult.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/PersonMatch.h>
12#include <aws/rekognition/model/Video.h>
13#include <aws/rekognition/model/VideoJobStatus.h>
14#include <aws/rekognition/model/VideoMetadata.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace Rekognition {
28namespace Model {
30 public:
31 AWS_REKOGNITION_API GetFaceSearchResult() = default;
34
36
39 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
40 inline void SetJobStatus(VideoJobStatus value) {
41 m_jobStatusHasBeenSet = true;
42 m_jobStatus = value;
43 }
45 SetJobStatus(value);
46 return *this;
47 }
49
51
55 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
56 template <typename StatusMessageT = Aws::String>
57 void SetStatusMessage(StatusMessageT&& value) {
58 m_statusMessageHasBeenSet = true;
59 m_statusMessage = std::forward<StatusMessageT>(value);
60 }
61 template <typename StatusMessageT = Aws::String>
62 GetFaceSearchResult& WithStatusMessage(StatusMessageT&& value) {
63 SetStatusMessage(std::forward<StatusMessageT>(value));
64 return *this;
65 }
67
69
74 inline const Aws::String& GetNextToken() const { return m_nextToken; }
75 template <typename NextTokenT = Aws::String>
76 void SetNextToken(NextTokenT&& value) {
77 m_nextTokenHasBeenSet = true;
78 m_nextToken = std::forward<NextTokenT>(value);
79 }
80 template <typename NextTokenT = Aws::String>
81 GetFaceSearchResult& WithNextToken(NextTokenT&& value) {
82 SetNextToken(std::forward<NextTokenT>(value));
83 return *this;
84 }
86
88
93 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
94 template <typename VideoMetadataT = VideoMetadata>
95 void SetVideoMetadata(VideoMetadataT&& value) {
96 m_videoMetadataHasBeenSet = true;
97 m_videoMetadata = std::forward<VideoMetadataT>(value);
98 }
99 template <typename VideoMetadataT = VideoMetadata>
100 GetFaceSearchResult& WithVideoMetadata(VideoMetadataT&& value) {
101 SetVideoMetadata(std::forward<VideoMetadataT>(value));
102 return *this;
103 }
105
107
116 inline const Aws::Vector<PersonMatch>& GetPersons() const { return m_persons; }
117 template <typename PersonsT = Aws::Vector<PersonMatch>>
118 void SetPersons(PersonsT&& value) {
119 m_personsHasBeenSet = true;
120 m_persons = std::forward<PersonsT>(value);
121 }
122 template <typename PersonsT = Aws::Vector<PersonMatch>>
123 GetFaceSearchResult& WithPersons(PersonsT&& value) {
124 SetPersons(std::forward<PersonsT>(value));
125 return *this;
126 }
127 template <typename PersonsT = PersonMatch>
128 GetFaceSearchResult& AddPersons(PersonsT&& value) {
129 m_personsHasBeenSet = true;
130 m_persons.emplace_back(std::forward<PersonsT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::String& GetJobId() const { return m_jobId; }
142 template <typename JobIdT = Aws::String>
143 void SetJobId(JobIdT&& value) {
144 m_jobIdHasBeenSet = true;
145 m_jobId = std::forward<JobIdT>(value);
146 }
147 template <typename JobIdT = Aws::String>
149 SetJobId(std::forward<JobIdT>(value));
150 return *this;
151 }
153
155
156 inline const Video& GetVideo() const { return m_video; }
157 template <typename VideoT = Video>
158 void SetVideo(VideoT&& value) {
159 m_videoHasBeenSet = true;
160 m_video = std::forward<VideoT>(value);
161 }
162 template <typename VideoT = Video>
164 SetVideo(std::forward<VideoT>(value));
165 return *this;
166 }
168
170
175 inline const Aws::String& GetJobTag() const { return m_jobTag; }
176 template <typename JobTagT = Aws::String>
177 void SetJobTag(JobTagT&& value) {
178 m_jobTagHasBeenSet = true;
179 m_jobTag = std::forward<JobTagT>(value);
180 }
181 template <typename JobTagT = Aws::String>
182 GetFaceSearchResult& WithJobTag(JobTagT&& value) {
183 SetJobTag(std::forward<JobTagT>(value));
184 return *this;
185 }
187
189
190 inline const Aws::String& GetRequestId() const { return m_requestId; }
191 template <typename RequestIdT = Aws::String>
192 void SetRequestId(RequestIdT&& value) {
193 m_requestIdHasBeenSet = true;
194 m_requestId = std::forward<RequestIdT>(value);
195 }
196 template <typename RequestIdT = Aws::String>
197 GetFaceSearchResult& WithRequestId(RequestIdT&& value) {
198 SetRequestId(std::forward<RequestIdT>(value));
199 return *this;
200 }
202 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
203
204 private:
206
207 Aws::String m_statusMessage;
208
209 Aws::String m_nextToken;
210
211 VideoMetadata m_videoMetadata;
212
213 Aws::Vector<PersonMatch> m_persons;
214
215 Aws::String m_jobId;
216
217 Video m_video;
218
219 Aws::String m_jobTag;
220
221 Aws::String m_requestId;
222 Aws::Http::HttpResponseCode m_HttpResponseCode;
223 bool m_jobStatusHasBeenSet = false;
224 bool m_statusMessageHasBeenSet = false;
225 bool m_nextTokenHasBeenSet = false;
226 bool m_videoMetadataHasBeenSet = false;
227 bool m_personsHasBeenSet = false;
228 bool m_jobIdHasBeenSet = false;
229 bool m_videoHasBeenSet = false;
230 bool m_jobTagHasBeenSet = false;
231 bool m_requestIdHasBeenSet = false;
232};
233
234} // namespace Model
235} // namespace Rekognition
236} // namespace Aws
GetFaceSearchResult & WithVideoMetadata(VideoMetadataT &&value)
AWS_REKOGNITION_API GetFaceSearchResult()=default
AWS_REKOGNITION_API GetFaceSearchResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< PersonMatch > & GetPersons() const
GetFaceSearchResult & WithJobId(JobIdT &&value)
GetFaceSearchResult & WithStatusMessage(StatusMessageT &&value)
AWS_REKOGNITION_API GetFaceSearchResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFaceSearchResult & AddPersons(PersonsT &&value)
GetFaceSearchResult & WithJobStatus(VideoJobStatus value)
GetFaceSearchResult & WithVideo(VideoT &&value)
GetFaceSearchResult & WithNextToken(NextTokenT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetFaceSearchResult & WithRequestId(RequestIdT &&value)
GetFaceSearchResult & WithPersons(PersonsT &&value)
GetFaceSearchResult & WithJobTag(JobTagT &&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