AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
GetContentModerationResult.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/ContentModerationDetection.h>
11#include <aws/rekognition/model/GetContentModerationRequestMetadata.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 GetContentModerationResult() = 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>
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>
82 SetVideoMetadata(std::forward<VideoMetadataT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<ContentModerationDetection>& GetModerationLabels() const { return m_moderationLabels; }
93 template <typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
94 void SetModerationLabels(ModerationLabelsT&& value) {
95 m_moderationLabelsHasBeenSet = true;
96 m_moderationLabels = std::forward<ModerationLabelsT>(value);
97 }
98 template <typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
100 SetModerationLabels(std::forward<ModerationLabelsT>(value));
101 return *this;
102 }
103 template <typename ModerationLabelsT = ContentModerationDetection>
105 m_moderationLabelsHasBeenSet = true;
106 m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::String& GetNextToken() const { return m_nextToken; }
118 template <typename NextTokenT = Aws::String>
119 void SetNextToken(NextTokenT&& value) {
120 m_nextTokenHasBeenSet = true;
121 m_nextToken = std::forward<NextTokenT>(value);
122 }
123 template <typename NextTokenT = Aws::String>
125 SetNextToken(std::forward<NextTokenT>(value));
126 return *this;
127 }
129
131
135 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
136 template <typename ModerationModelVersionT = Aws::String>
137 void SetModerationModelVersion(ModerationModelVersionT&& value) {
138 m_moderationModelVersionHasBeenSet = true;
139 m_moderationModelVersion = std::forward<ModerationModelVersionT>(value);
140 }
141 template <typename ModerationModelVersionT = Aws::String>
142 GetContentModerationResult& WithModerationModelVersion(ModerationModelVersionT&& value) {
143 SetModerationModelVersion(std::forward<ModerationModelVersionT>(value));
144 return *this;
145 }
147
149
154 inline const Aws::String& GetJobId() const { return m_jobId; }
155 template <typename JobIdT = Aws::String>
156 void SetJobId(JobIdT&& value) {
157 m_jobIdHasBeenSet = true;
158 m_jobId = std::forward<JobIdT>(value);
159 }
160 template <typename JobIdT = Aws::String>
162 SetJobId(std::forward<JobIdT>(value));
163 return *this;
164 }
166
168
169 inline const Video& GetVideo() const { return m_video; }
170 template <typename VideoT = Video>
171 void SetVideo(VideoT&& value) {
172 m_videoHasBeenSet = true;
173 m_video = std::forward<VideoT>(value);
174 }
175 template <typename VideoT = Video>
177 SetVideo(std::forward<VideoT>(value));
178 return *this;
179 }
181
183
188 inline const Aws::String& GetJobTag() const { return m_jobTag; }
189 template <typename JobTagT = Aws::String>
190 void SetJobTag(JobTagT&& value) {
191 m_jobTagHasBeenSet = true;
192 m_jobTag = std::forward<JobTagT>(value);
193 }
194 template <typename JobTagT = Aws::String>
196 SetJobTag(std::forward<JobTagT>(value));
197 return *this;
198 }
200
202
206 inline const GetContentModerationRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
207 template <typename GetRequestMetadataT = GetContentModerationRequestMetadata>
208 void SetGetRequestMetadata(GetRequestMetadataT&& value) {
209 m_getRequestMetadataHasBeenSet = true;
210 m_getRequestMetadata = std::forward<GetRequestMetadataT>(value);
211 }
212 template <typename GetRequestMetadataT = GetContentModerationRequestMetadata>
214 SetGetRequestMetadata(std::forward<GetRequestMetadataT>(value));
215 return *this;
216 }
218
220
221 inline const Aws::String& GetRequestId() const { return m_requestId; }
222 template <typename RequestIdT = Aws::String>
223 void SetRequestId(RequestIdT&& value) {
224 m_requestIdHasBeenSet = true;
225 m_requestId = std::forward<RequestIdT>(value);
226 }
227 template <typename RequestIdT = Aws::String>
229 SetRequestId(std::forward<RequestIdT>(value));
230 return *this;
231 }
233 private:
235 bool m_jobStatusHasBeenSet = false;
236
237 Aws::String m_statusMessage;
238 bool m_statusMessageHasBeenSet = false;
239
240 VideoMetadata m_videoMetadata;
241 bool m_videoMetadataHasBeenSet = false;
242
244 bool m_moderationLabelsHasBeenSet = false;
245
246 Aws::String m_nextToken;
247 bool m_nextTokenHasBeenSet = false;
248
249 Aws::String m_moderationModelVersion;
250 bool m_moderationModelVersionHasBeenSet = false;
251
252 Aws::String m_jobId;
253 bool m_jobIdHasBeenSet = false;
254
255 Video m_video;
256 bool m_videoHasBeenSet = false;
257
258 Aws::String m_jobTag;
259 bool m_jobTagHasBeenSet = false;
260
261 GetContentModerationRequestMetadata m_getRequestMetadata;
262 bool m_getRequestMetadataHasBeenSet = false;
263
264 Aws::String m_requestId;
265 bool m_requestIdHasBeenSet = false;
266};
267
268} // namespace Model
269} // namespace Rekognition
270} // 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