AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GetFaceDetectionResult.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/FaceDetection.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 GetFaceDetectionResult() = 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 GetFaceDetectionResult& WithStatusMessage(StatusMessageT&& value) {
62 SetStatusMessage(std::forward<StatusMessageT>(value));
63 return *this;
64 }
66
68
73 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
74 template <typename VideoMetadataT = VideoMetadata>
75 void SetVideoMetadata(VideoMetadataT&& value) {
76 m_videoMetadataHasBeenSet = true;
77 m_videoMetadata = std::forward<VideoMetadataT>(value);
78 }
79 template <typename VideoMetadataT = VideoMetadata>
80 GetFaceDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
81 SetVideoMetadata(std::forward<VideoMetadataT>(value));
82 return *this;
83 }
85
87
91 inline const Aws::String& GetNextToken() const { return m_nextToken; }
92 template <typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) {
94 m_nextTokenHasBeenSet = true;
95 m_nextToken = std::forward<NextTokenT>(value);
96 }
97 template <typename NextTokenT = Aws::String>
99 SetNextToken(std::forward<NextTokenT>(value));
100 return *this;
101 }
103
105
110 inline const Aws::Vector<FaceDetection>& GetFaces() const { return m_faces; }
111 template <typename FacesT = Aws::Vector<FaceDetection>>
112 void SetFaces(FacesT&& value) {
113 m_facesHasBeenSet = true;
114 m_faces = std::forward<FacesT>(value);
115 }
116 template <typename FacesT = Aws::Vector<FaceDetection>>
118 SetFaces(std::forward<FacesT>(value));
119 return *this;
120 }
121 template <typename FacesT = FaceDetection>
123 m_facesHasBeenSet = true;
124 m_faces.emplace_back(std::forward<FacesT>(value));
125 return *this;
126 }
128
130
135 inline const Aws::String& GetJobId() const { return m_jobId; }
136 template <typename JobIdT = Aws::String>
137 void SetJobId(JobIdT&& value) {
138 m_jobIdHasBeenSet = true;
139 m_jobId = std::forward<JobIdT>(value);
140 }
141 template <typename JobIdT = Aws::String>
143 SetJobId(std::forward<JobIdT>(value));
144 return *this;
145 }
147
149
150 inline const Video& GetVideo() const { return m_video; }
151 template <typename VideoT = Video>
152 void SetVideo(VideoT&& value) {
153 m_videoHasBeenSet = true;
154 m_video = std::forward<VideoT>(value);
155 }
156 template <typename VideoT = Video>
158 SetVideo(std::forward<VideoT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::String& GetJobTag() const { return m_jobTag; }
170 template <typename JobTagT = Aws::String>
171 void SetJobTag(JobTagT&& value) {
172 m_jobTagHasBeenSet = true;
173 m_jobTag = std::forward<JobTagT>(value);
174 }
175 template <typename JobTagT = Aws::String>
177 SetJobTag(std::forward<JobTagT>(value));
178 return *this;
179 }
181
183
184 inline const Aws::String& GetRequestId() const { return m_requestId; }
185 template <typename RequestIdT = Aws::String>
186 void SetRequestId(RequestIdT&& value) {
187 m_requestIdHasBeenSet = true;
188 m_requestId = std::forward<RequestIdT>(value);
189 }
190 template <typename RequestIdT = Aws::String>
192 SetRequestId(std::forward<RequestIdT>(value));
193 return *this;
194 }
196 private:
198
199 Aws::String m_statusMessage;
200
201 VideoMetadata m_videoMetadata;
202
203 Aws::String m_nextToken;
204
206
207 Aws::String m_jobId;
208
209 Video m_video;
210
211 Aws::String m_jobTag;
212
213 Aws::String m_requestId;
214 bool m_jobStatusHasBeenSet = false;
215 bool m_statusMessageHasBeenSet = false;
216 bool m_videoMetadataHasBeenSet = false;
217 bool m_nextTokenHasBeenSet = false;
218 bool m_facesHasBeenSet = false;
219 bool m_jobIdHasBeenSet = false;
220 bool m_videoHasBeenSet = false;
221 bool m_jobTagHasBeenSet = false;
222 bool m_requestIdHasBeenSet = false;
223};
224
225} // namespace Model
226} // namespace Rekognition
227} // namespace Aws
GetFaceDetectionResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< FaceDetection > & GetFaces() 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