AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
GetContentModerationResult.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/ContentModerationDetection.h>
12#include <aws/rekognition/model/GetContentModerationRequestMetadata.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 GetContentModerationResult() = 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>
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>
83 SetVideoMetadata(std::forward<VideoMetadataT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<ContentModerationDetection>& GetModerationLabels() const { return m_moderationLabels; }
94 template <typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
95 void SetModerationLabels(ModerationLabelsT&& value) {
96 m_moderationLabelsHasBeenSet = true;
97 m_moderationLabels = std::forward<ModerationLabelsT>(value);
98 }
99 template <typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
101 SetModerationLabels(std::forward<ModerationLabelsT>(value));
102 return *this;
103 }
104 template <typename ModerationLabelsT = ContentModerationDetection>
106 m_moderationLabelsHasBeenSet = true;
107 m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 template <typename NextTokenT = Aws::String>
120 void SetNextToken(NextTokenT&& value) {
121 m_nextTokenHasBeenSet = true;
122 m_nextToken = std::forward<NextTokenT>(value);
123 }
124 template <typename NextTokenT = Aws::String>
126 SetNextToken(std::forward<NextTokenT>(value));
127 return *this;
128 }
130
132
136 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
137 template <typename ModerationModelVersionT = Aws::String>
138 void SetModerationModelVersion(ModerationModelVersionT&& value) {
139 m_moderationModelVersionHasBeenSet = true;
140 m_moderationModelVersion = std::forward<ModerationModelVersionT>(value);
141 }
142 template <typename ModerationModelVersionT = Aws::String>
143 GetContentModerationResult& WithModerationModelVersion(ModerationModelVersionT&& value) {
144 SetModerationModelVersion(std::forward<ModerationModelVersionT>(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 GetContentModerationRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
208 template <typename GetRequestMetadataT = GetContentModerationRequestMetadata>
209 void SetGetRequestMetadata(GetRequestMetadataT&& value) {
210 m_getRequestMetadataHasBeenSet = true;
211 m_getRequestMetadata = std::forward<GetRequestMetadataT>(value);
212 }
213 template <typename GetRequestMetadataT = GetContentModerationRequestMetadata>
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 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
235
236 private:
238
239 Aws::String m_statusMessage;
240
241 VideoMetadata m_videoMetadata;
242
244
245 Aws::String m_nextToken;
246
247 Aws::String m_moderationModelVersion;
248
249 Aws::String m_jobId;
250
251 Video m_video;
252
253 Aws::String m_jobTag;
254
255 GetContentModerationRequestMetadata m_getRequestMetadata;
256
257 Aws::String m_requestId;
258 Aws::Http::HttpResponseCode m_HttpResponseCode;
259 bool m_jobStatusHasBeenSet = false;
260 bool m_statusMessageHasBeenSet = false;
261 bool m_videoMetadataHasBeenSet = false;
262 bool m_moderationLabelsHasBeenSet = false;
263 bool m_nextTokenHasBeenSet = false;
264 bool m_moderationModelVersionHasBeenSet = false;
265 bool m_jobIdHasBeenSet = false;
266 bool m_videoHasBeenSet = false;
267 bool m_jobTagHasBeenSet = false;
268 bool m_getRequestMetadataHasBeenSet = false;
269 bool m_requestIdHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace Rekognition
274} // namespace Aws
GetContentModerationResult & WithJobTag(JobTagT &&value)
GetContentModerationResult & WithVideo(VideoT &&value)
GetContentModerationResult & WithStatusMessage(StatusMessageT &&value)
GetContentModerationResult & AddModerationLabels(ModerationLabelsT &&value)
GetContentModerationResult & WithJobStatus(VideoJobStatus value)
GetContentModerationResult & WithNextToken(NextTokenT &&value)
AWS_REKOGNITION_API GetContentModerationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetContentModerationResult & WithModerationModelVersion(ModerationModelVersionT &&value)
GetContentModerationResult & WithJobId(JobIdT &&value)
GetContentModerationResult & WithVideoMetadata(VideoMetadataT &&value)
const Aws::Vector< ContentModerationDetection > & GetModerationLabels() const
GetContentModerationResult & WithGetRequestMetadata(GetRequestMetadataT &&value)
GetContentModerationResult & WithRequestId(RequestIdT &&value)
void SetModerationModelVersion(ModerationModelVersionT &&value)
const GetContentModerationRequestMetadata & GetGetRequestMetadata() const
AWS_REKOGNITION_API GetContentModerationResult()=default
AWS_REKOGNITION_API GetContentModerationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetContentModerationResult & WithModerationLabels(ModerationLabelsT &&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