AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetFaceDetectionResult.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/FaceDetection.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 GetFaceDetectionResult() = 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 GetFaceDetectionResult& WithStatusMessage(StatusMessageT&& value) {
63 SetStatusMessage(std::forward<StatusMessageT>(value));
64 return *this;
65 }
67
69
74 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
75 template <typename VideoMetadataT = VideoMetadata>
76 void SetVideoMetadata(VideoMetadataT&& value) {
77 m_videoMetadataHasBeenSet = true;
78 m_videoMetadata = std::forward<VideoMetadataT>(value);
79 }
80 template <typename VideoMetadataT = VideoMetadata>
81 GetFaceDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
82 SetVideoMetadata(std::forward<VideoMetadataT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 template <typename NextTokenT = Aws::String>
94 void SetNextToken(NextTokenT&& value) {
95 m_nextTokenHasBeenSet = true;
96 m_nextToken = std::forward<NextTokenT>(value);
97 }
98 template <typename NextTokenT = Aws::String>
100 SetNextToken(std::forward<NextTokenT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::Vector<FaceDetection>& GetFaces() const { return m_faces; }
112 template <typename FacesT = Aws::Vector<FaceDetection>>
113 void SetFaces(FacesT&& value) {
114 m_facesHasBeenSet = true;
115 m_faces = std::forward<FacesT>(value);
116 }
117 template <typename FacesT = Aws::Vector<FaceDetection>>
119 SetFaces(std::forward<FacesT>(value));
120 return *this;
121 }
122 template <typename FacesT = FaceDetection>
124 m_facesHasBeenSet = true;
125 m_faces.emplace_back(std::forward<FacesT>(value));
126 return *this;
127 }
129
131
136 inline const Aws::String& GetJobId() const { return m_jobId; }
137 template <typename JobIdT = Aws::String>
138 void SetJobId(JobIdT&& value) {
139 m_jobIdHasBeenSet = true;
140 m_jobId = std::forward<JobIdT>(value);
141 }
142 template <typename JobIdT = Aws::String>
144 SetJobId(std::forward<JobIdT>(value));
145 return *this;
146 }
148
150
151 inline const Video& GetVideo() const { return m_video; }
152 template <typename VideoT = Video>
153 void SetVideo(VideoT&& value) {
154 m_videoHasBeenSet = true;
155 m_video = std::forward<VideoT>(value);
156 }
157 template <typename VideoT = Video>
159 SetVideo(std::forward<VideoT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetJobTag() const { return m_jobTag; }
171 template <typename JobTagT = Aws::String>
172 void SetJobTag(JobTagT&& value) {
173 m_jobTagHasBeenSet = true;
174 m_jobTag = std::forward<JobTagT>(value);
175 }
176 template <typename JobTagT = Aws::String>
178 SetJobTag(std::forward<JobTagT>(value));
179 return *this;
180 }
182
184
185 inline const Aws::String& GetRequestId() const { return m_requestId; }
186 template <typename RequestIdT = Aws::String>
187 void SetRequestId(RequestIdT&& value) {
188 m_requestIdHasBeenSet = true;
189 m_requestId = std::forward<RequestIdT>(value);
190 }
191 template <typename RequestIdT = Aws::String>
193 SetRequestId(std::forward<RequestIdT>(value));
194 return *this;
195 }
197 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
198
199 private:
201
202 Aws::String m_statusMessage;
203
204 VideoMetadata m_videoMetadata;
205
206 Aws::String m_nextToken;
207
209
210 Aws::String m_jobId;
211
212 Video m_video;
213
214 Aws::String m_jobTag;
215
216 Aws::String m_requestId;
217 Aws::Http::HttpResponseCode m_HttpResponseCode;
218 bool m_jobStatusHasBeenSet = false;
219 bool m_statusMessageHasBeenSet = false;
220 bool m_videoMetadataHasBeenSet = false;
221 bool m_nextTokenHasBeenSet = false;
222 bool m_facesHasBeenSet = false;
223 bool m_jobIdHasBeenSet = false;
224 bool m_videoHasBeenSet = false;
225 bool m_jobTagHasBeenSet = false;
226 bool m_requestIdHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace Rekognition
231} // namespace Aws
GetFaceDetectionResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< FaceDetection > & GetFaces() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetFaceDetectionResult & WithRequestId(RequestIdT &&value)
GetFaceDetectionResult & WithVideoMetadata(VideoMetadataT &&value)
GetFaceDetectionResult & WithVideo(VideoT &&value)
GetFaceDetectionResult & AddFaces(FacesT &&value)
AWS_REKOGNITION_API GetFaceDetectionResult()=default
AWS_REKOGNITION_API GetFaceDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFaceDetectionResult & WithJobStatus(VideoJobStatus value)
AWS_REKOGNITION_API GetFaceDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFaceDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetFaceDetectionResult & WithJobTag(JobTagT &&value)
GetFaceDetectionResult & WithJobId(JobIdT &&value)
GetFaceDetectionResult & WithFaces(FacesT &&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