AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetFaceSearchResult.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/PersonMatch.h>
11#include <aws/rekognition/model/Video.h>
12#include <aws/rekognition/model/VideoJobStatus.h>
13#include <aws/rekognition/model/VideoMetadata.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 GetFaceSearchResult() = default;
33
35
38 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
39 inline void SetJobStatus(VideoJobStatus value) {
40 m_jobStatusHasBeenSet = true;
41 m_jobStatus = value;
42 }
44 SetJobStatus(value);
45 return *this;
46 }
48
50
54 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
55 template <typename StatusMessageT = Aws::String>
56 void SetStatusMessage(StatusMessageT&& value) {
57 m_statusMessageHasBeenSet = true;
58 m_statusMessage = std::forward<StatusMessageT>(value);
59 }
60 template <typename StatusMessageT = Aws::String>
61 GetFaceSearchResult& WithStatusMessage(StatusMessageT&& value) {
62 SetStatusMessage(std::forward<StatusMessageT>(value));
63 return *this;
64 }
66
68
73 inline const Aws::String& GetNextToken() const { return m_nextToken; }
74 template <typename NextTokenT = Aws::String>
75 void SetNextToken(NextTokenT&& value) {
76 m_nextTokenHasBeenSet = true;
77 m_nextToken = std::forward<NextTokenT>(value);
78 }
79 template <typename NextTokenT = Aws::String>
80 GetFaceSearchResult& WithNextToken(NextTokenT&& value) {
81 SetNextToken(std::forward<NextTokenT>(value));
82 return *this;
83 }
85
87
92 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
93 template <typename VideoMetadataT = VideoMetadata>
94 void SetVideoMetadata(VideoMetadataT&& value) {
95 m_videoMetadataHasBeenSet = true;
96 m_videoMetadata = std::forward<VideoMetadataT>(value);
97 }
98 template <typename VideoMetadataT = VideoMetadata>
99 GetFaceSearchResult& WithVideoMetadata(VideoMetadataT&& value) {
100 SetVideoMetadata(std::forward<VideoMetadataT>(value));
101 return *this;
102 }
104
106
115 inline const Aws::Vector<PersonMatch>& GetPersons() const { return m_persons; }
116 template <typename PersonsT = Aws::Vector<PersonMatch>>
117 void SetPersons(PersonsT&& value) {
118 m_personsHasBeenSet = true;
119 m_persons = std::forward<PersonsT>(value);
120 }
121 template <typename PersonsT = Aws::Vector<PersonMatch>>
122 GetFaceSearchResult& WithPersons(PersonsT&& value) {
123 SetPersons(std::forward<PersonsT>(value));
124 return *this;
125 }
126 template <typename PersonsT = PersonMatch>
127 GetFaceSearchResult& AddPersons(PersonsT&& value) {
128 m_personsHasBeenSet = true;
129 m_persons.emplace_back(std::forward<PersonsT>(value));
130 return *this;
131 }
133
135
140 inline const Aws::String& GetJobId() const { return m_jobId; }
141 template <typename JobIdT = Aws::String>
142 void SetJobId(JobIdT&& value) {
143 m_jobIdHasBeenSet = true;
144 m_jobId = std::forward<JobIdT>(value);
145 }
146 template <typename JobIdT = Aws::String>
148 SetJobId(std::forward<JobIdT>(value));
149 return *this;
150 }
152
154
155 inline const Video& GetVideo() const { return m_video; }
156 template <typename VideoT = Video>
157 void SetVideo(VideoT&& value) {
158 m_videoHasBeenSet = true;
159 m_video = std::forward<VideoT>(value);
160 }
161 template <typename VideoT = Video>
163 SetVideo(std::forward<VideoT>(value));
164 return *this;
165 }
167
169
174 inline const Aws::String& GetJobTag() const { return m_jobTag; }
175 template <typename JobTagT = Aws::String>
176 void SetJobTag(JobTagT&& value) {
177 m_jobTagHasBeenSet = true;
178 m_jobTag = std::forward<JobTagT>(value);
179 }
180 template <typename JobTagT = Aws::String>
181 GetFaceSearchResult& WithJobTag(JobTagT&& value) {
182 SetJobTag(std::forward<JobTagT>(value));
183 return *this;
184 }
186
188
189 inline const Aws::String& GetRequestId() const { return m_requestId; }
190 template <typename RequestIdT = Aws::String>
191 void SetRequestId(RequestIdT&& value) {
192 m_requestIdHasBeenSet = true;
193 m_requestId = std::forward<RequestIdT>(value);
194 }
195 template <typename RequestIdT = Aws::String>
196 GetFaceSearchResult& WithRequestId(RequestIdT&& value) {
197 SetRequestId(std::forward<RequestIdT>(value));
198 return *this;
199 }
201 private:
203 bool m_jobStatusHasBeenSet = false;
204
205 Aws::String m_statusMessage;
206 bool m_statusMessageHasBeenSet = false;
207
208 Aws::String m_nextToken;
209 bool m_nextTokenHasBeenSet = false;
210
211 VideoMetadata m_videoMetadata;
212 bool m_videoMetadataHasBeenSet = false;
213
214 Aws::Vector<PersonMatch> m_persons;
215 bool m_personsHasBeenSet = false;
216
217 Aws::String m_jobId;
218 bool m_jobIdHasBeenSet = false;
219
220 Video m_video;
221 bool m_videoHasBeenSet = false;
222
223 Aws::String m_jobTag;
224 bool m_jobTagHasBeenSet = false;
225
226 Aws::String m_requestId;
227 bool m_requestIdHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace Rekognition
232} // 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)
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