AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetLabelDetectionResult.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/GetLabelDetectionRequestMetadata.h>
12#include <aws/rekognition/model/LabelDetection.h>
13#include <aws/rekognition/model/Video.h>
14#include <aws/rekognition/model/VideoJobStatus.h>
15#include <aws/rekognition/model/VideoMetadata.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Rekognition {
29namespace Model {
31 public:
32 AWS_REKOGNITION_API GetLabelDetectionResult() = default;
35
37
40 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
41 inline void SetJobStatus(VideoJobStatus value) {
42 m_jobStatusHasBeenSet = true;
43 m_jobStatus = value;
44 }
46 SetJobStatus(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
57 template <typename StatusMessageT = Aws::String>
58 void SetStatusMessage(StatusMessageT&& value) {
59 m_statusMessageHasBeenSet = true;
60 m_statusMessage = std::forward<StatusMessageT>(value);
61 }
62 template <typename StatusMessageT = Aws::String>
63 GetLabelDetectionResult& WithStatusMessage(StatusMessageT&& value) {
64 SetStatusMessage(std::forward<StatusMessageT>(value));
65 return *this;
66 }
68
70
75 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
76 template <typename VideoMetadataT = VideoMetadata>
77 void SetVideoMetadata(VideoMetadataT&& value) {
78 m_videoMetadataHasBeenSet = true;
79 m_videoMetadata = std::forward<VideoMetadataT>(value);
80 }
81 template <typename VideoMetadataT = VideoMetadata>
82 GetLabelDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
83 SetVideoMetadata(std::forward<VideoMetadataT>(value));
84 return *this;
85 }
87
89
94 inline const Aws::String& GetNextToken() const { return m_nextToken; }
95 template <typename NextTokenT = Aws::String>
96 void SetNextToken(NextTokenT&& value) {
97 m_nextTokenHasBeenSet = true;
98 m_nextToken = std::forward<NextTokenT>(value);
99 }
100 template <typename NextTokenT = Aws::String>
102 SetNextToken(std::forward<NextTokenT>(value));
103 return *this;
104 }
106
108
113 inline const Aws::Vector<LabelDetection>& GetLabels() const { return m_labels; }
114 template <typename LabelsT = Aws::Vector<LabelDetection>>
115 void SetLabels(LabelsT&& value) {
116 m_labelsHasBeenSet = true;
117 m_labels = std::forward<LabelsT>(value);
118 }
119 template <typename LabelsT = Aws::Vector<LabelDetection>>
121 SetLabels(std::forward<LabelsT>(value));
122 return *this;
123 }
124 template <typename LabelsT = LabelDetection>
126 m_labelsHasBeenSet = true;
127 m_labels.emplace_back(std::forward<LabelsT>(value));
128 return *this;
129 }
131
133
137 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
138 template <typename LabelModelVersionT = Aws::String>
139 void SetLabelModelVersion(LabelModelVersionT&& value) {
140 m_labelModelVersionHasBeenSet = true;
141 m_labelModelVersion = std::forward<LabelModelVersionT>(value);
142 }
143 template <typename LabelModelVersionT = Aws::String>
144 GetLabelDetectionResult& WithLabelModelVersion(LabelModelVersionT&& value) {
145 SetLabelModelVersion(std::forward<LabelModelVersionT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::String& GetJobId() const { return m_jobId; }
157 template <typename JobIdT = Aws::String>
158 void SetJobId(JobIdT&& value) {
159 m_jobIdHasBeenSet = true;
160 m_jobId = std::forward<JobIdT>(value);
161 }
162 template <typename JobIdT = Aws::String>
164 SetJobId(std::forward<JobIdT>(value));
165 return *this;
166 }
168
170
171 inline const Video& GetVideo() const { return m_video; }
172 template <typename VideoT = Video>
173 void SetVideo(VideoT&& value) {
174 m_videoHasBeenSet = true;
175 m_video = std::forward<VideoT>(value);
176 }
177 template <typename VideoT = Video>
179 SetVideo(std::forward<VideoT>(value));
180 return *this;
181 }
183
185
190 inline const Aws::String& GetJobTag() const { return m_jobTag; }
191 template <typename JobTagT = Aws::String>
192 void SetJobTag(JobTagT&& value) {
193 m_jobTagHasBeenSet = true;
194 m_jobTag = std::forward<JobTagT>(value);
195 }
196 template <typename JobTagT = Aws::String>
198 SetJobTag(std::forward<JobTagT>(value));
199 return *this;
200 }
202
204
208 inline const GetLabelDetectionRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
209 template <typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
210 void SetGetRequestMetadata(GetRequestMetadataT&& value) {
211 m_getRequestMetadataHasBeenSet = true;
212 m_getRequestMetadata = std::forward<GetRequestMetadataT>(value);
213 }
214 template <typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
215 GetLabelDetectionResult& WithGetRequestMetadata(GetRequestMetadataT&& value) {
216 SetGetRequestMetadata(std::forward<GetRequestMetadataT>(value));
217 return *this;
218 }
220
222
223 inline const Aws::String& GetRequestId() const { return m_requestId; }
224 template <typename RequestIdT = Aws::String>
225 void SetRequestId(RequestIdT&& value) {
226 m_requestIdHasBeenSet = true;
227 m_requestId = std::forward<RequestIdT>(value);
228 }
229 template <typename RequestIdT = Aws::String>
231 SetRequestId(std::forward<RequestIdT>(value));
232 return *this;
233 }
235 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
236
237 private:
239
240 Aws::String m_statusMessage;
241
242 VideoMetadata m_videoMetadata;
243
244 Aws::String m_nextToken;
245
247
248 Aws::String m_labelModelVersion;
249
250 Aws::String m_jobId;
251
252 Video m_video;
253
254 Aws::String m_jobTag;
255
256 GetLabelDetectionRequestMetadata m_getRequestMetadata;
257
258 Aws::String m_requestId;
259 Aws::Http::HttpResponseCode m_HttpResponseCode;
260 bool m_jobStatusHasBeenSet = false;
261 bool m_statusMessageHasBeenSet = false;
262 bool m_videoMetadataHasBeenSet = false;
263 bool m_nextTokenHasBeenSet = false;
264 bool m_labelsHasBeenSet = false;
265 bool m_labelModelVersionHasBeenSet = false;
266 bool m_jobIdHasBeenSet = false;
267 bool m_videoHasBeenSet = false;
268 bool m_jobTagHasBeenSet = false;
269 bool m_getRequestMetadataHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace Rekognition
275} // namespace Aws
GetLabelDetectionResult & WithNextToken(NextTokenT &&value)
GetLabelDetectionResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetLabelDetectionResult & AddLabels(LabelsT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult()=default
GetLabelDetectionResult & WithVideo(VideoT &&value)
GetLabelDetectionResult & WithGetRequestMetadata(GetRequestMetadataT &&value)
GetLabelDetectionResult & WithJobTag(JobTagT &&value)
GetLabelDetectionResult & WithJobId(JobIdT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const GetLabelDetectionRequestMetadata & GetGetRequestMetadata() const
GetLabelDetectionResult & WithVideoMetadata(VideoMetadataT &&value)
GetLabelDetectionResult & WithJobStatus(VideoJobStatus value)
GetLabelDetectionResult & WithStatusMessage(StatusMessageT &&value)
GetLabelDetectionResult & WithLabels(LabelsT &&value)
AWS_REKOGNITION_API GetLabelDetectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetLabelDetectionResult & WithLabelModelVersion(LabelModelVersionT &&value)
const Aws::Vector< LabelDetection > & GetLabels() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue