AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetLabelDetectionResult.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/GetLabelDetectionRequestMetadata.h>
11#include <aws/rekognition/model/LabelDetection.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 GetLabelDetectionResult() = 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 GetLabelDetectionResult& 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 GetLabelDetectionResult& WithVideoMetadata(VideoMetadataT&& value) {
82 SetVideoMetadata(std::forward<VideoMetadataT>(value));
83 return *this;
84 }
86
88
93 inline const Aws::String& GetNextToken() const { return m_nextToken; }
94 template <typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) {
96 m_nextTokenHasBeenSet = true;
97 m_nextToken = std::forward<NextTokenT>(value);
98 }
99 template <typename NextTokenT = Aws::String>
101 SetNextToken(std::forward<NextTokenT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::Vector<LabelDetection>& GetLabels() const { return m_labels; }
113 template <typename LabelsT = Aws::Vector<LabelDetection>>
114 void SetLabels(LabelsT&& value) {
115 m_labelsHasBeenSet = true;
116 m_labels = std::forward<LabelsT>(value);
117 }
118 template <typename LabelsT = Aws::Vector<LabelDetection>>
120 SetLabels(std::forward<LabelsT>(value));
121 return *this;
122 }
123 template <typename LabelsT = LabelDetection>
125 m_labelsHasBeenSet = true;
126 m_labels.emplace_back(std::forward<LabelsT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetLabelModelVersion() const { return m_labelModelVersion; }
137 template <typename LabelModelVersionT = Aws::String>
138 void SetLabelModelVersion(LabelModelVersionT&& value) {
139 m_labelModelVersionHasBeenSet = true;
140 m_labelModelVersion = std::forward<LabelModelVersionT>(value);
141 }
142 template <typename LabelModelVersionT = Aws::String>
143 GetLabelDetectionResult& WithLabelModelVersion(LabelModelVersionT&& value) {
144 SetLabelModelVersion(std::forward<LabelModelVersionT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::String& GetJobId() const { return m_jobId; }
156 template <typename JobIdT = Aws::String>
157 void SetJobId(JobIdT&& value) {
158 m_jobIdHasBeenSet = true;
159 m_jobId = std::forward<JobIdT>(value);
160 }
161 template <typename JobIdT = Aws::String>
163 SetJobId(std::forward<JobIdT>(value));
164 return *this;
165 }
167
169
170 inline const Video& GetVideo() const { return m_video; }
171 template <typename VideoT = Video>
172 void SetVideo(VideoT&& value) {
173 m_videoHasBeenSet = true;
174 m_video = std::forward<VideoT>(value);
175 }
176 template <typename VideoT = Video>
178 SetVideo(std::forward<VideoT>(value));
179 return *this;
180 }
182
184
189 inline const Aws::String& GetJobTag() const { return m_jobTag; }
190 template <typename JobTagT = Aws::String>
191 void SetJobTag(JobTagT&& value) {
192 m_jobTagHasBeenSet = true;
193 m_jobTag = std::forward<JobTagT>(value);
194 }
195 template <typename JobTagT = Aws::String>
197 SetJobTag(std::forward<JobTagT>(value));
198 return *this;
199 }
201
203
207 inline const GetLabelDetectionRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
208 template <typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
209 void SetGetRequestMetadata(GetRequestMetadataT&& value) {
210 m_getRequestMetadataHasBeenSet = true;
211 m_getRequestMetadata = std::forward<GetRequestMetadataT>(value);
212 }
213 template <typename GetRequestMetadataT = GetLabelDetectionRequestMetadata>
214 GetLabelDetectionResult& WithGetRequestMetadata(GetRequestMetadataT&& value) {
215 SetGetRequestMetadata(std::forward<GetRequestMetadataT>(value));
216 return *this;
217 }
219
221
222 inline const Aws::String& GetRequestId() const { return m_requestId; }
223 template <typename RequestIdT = Aws::String>
224 void SetRequestId(RequestIdT&& value) {
225 m_requestIdHasBeenSet = true;
226 m_requestId = std::forward<RequestIdT>(value);
227 }
228 template <typename RequestIdT = Aws::String>
230 SetRequestId(std::forward<RequestIdT>(value));
231 return *this;
232 }
234 private:
236
237 Aws::String m_statusMessage;
238
239 VideoMetadata m_videoMetadata;
240
241 Aws::String m_nextToken;
242
244
245 Aws::String m_labelModelVersion;
246
247 Aws::String m_jobId;
248
249 Video m_video;
250
251 Aws::String m_jobTag;
252
253 GetLabelDetectionRequestMetadata m_getRequestMetadata;
254
255 Aws::String m_requestId;
256 bool m_jobStatusHasBeenSet = false;
257 bool m_statusMessageHasBeenSet = false;
258 bool m_videoMetadataHasBeenSet = false;
259 bool m_nextTokenHasBeenSet = false;
260 bool m_labelsHasBeenSet = false;
261 bool m_labelModelVersionHasBeenSet = false;
262 bool m_jobIdHasBeenSet = false;
263 bool m_videoHasBeenSet = false;
264 bool m_jobTagHasBeenSet = false;
265 bool m_getRequestMetadataHasBeenSet = false;
266 bool m_requestIdHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace Rekognition
271} // namespace Aws
GetLabelDetectionResult & WithNextToken(NextTokenT &&value)
GetLabelDetectionResult & WithRequestId(RequestIdT &&value)
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