AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetContentModerationResult.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/VideoJobStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/VideoMetadata.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/rekognition/model/Video.h>
13#include <aws/rekognition/model/GetContentModerationRequestMetadata.h>
14#include <aws/rekognition/model/ContentModerationDetection.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Rekognition
30{
31namespace Model
32{
34 {
35 public:
36 AWS_REKOGNITION_API GetContentModerationResult() = default;
39
40
42
45 inline VideoJobStatus GetJobStatus() const { return m_jobStatus; }
46 inline void SetJobStatus(VideoJobStatus value) { m_jobStatusHasBeenSet = true; m_jobStatus = value; }
49
51
55 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
56 template<typename StatusMessageT = Aws::String>
57 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
58 template<typename StatusMessageT = Aws::String>
59 GetContentModerationResult& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
61
63
68 inline const VideoMetadata& GetVideoMetadata() const { return m_videoMetadata; }
69 template<typename VideoMetadataT = VideoMetadata>
70 void SetVideoMetadata(VideoMetadataT&& value) { m_videoMetadataHasBeenSet = true; m_videoMetadata = std::forward<VideoMetadataT>(value); }
71 template<typename VideoMetadataT = VideoMetadata>
72 GetContentModerationResult& WithVideoMetadata(VideoMetadataT&& value) { SetVideoMetadata(std::forward<VideoMetadataT>(value)); return *this;}
74
76
80 inline const Aws::Vector<ContentModerationDetection>& GetModerationLabels() const { return m_moderationLabels; }
81 template<typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
82 void SetModerationLabels(ModerationLabelsT&& value) { m_moderationLabelsHasBeenSet = true; m_moderationLabels = std::forward<ModerationLabelsT>(value); }
83 template<typename ModerationLabelsT = Aws::Vector<ContentModerationDetection>>
84 GetContentModerationResult& WithModerationLabels(ModerationLabelsT&& value) { SetModerationLabels(std::forward<ModerationLabelsT>(value)); return *this;}
85 template<typename ModerationLabelsT = ContentModerationDetection>
86 GetContentModerationResult& AddModerationLabels(ModerationLabelsT&& value) { m_moderationLabelsHasBeenSet = true; m_moderationLabels.emplace_back(std::forward<ModerationLabelsT>(value)); return *this; }
88
90
95 inline const Aws::String& GetNextToken() const { return m_nextToken; }
96 template<typename NextTokenT = Aws::String>
97 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
98 template<typename NextTokenT = Aws::String>
99 GetContentModerationResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
101
103
107 inline const Aws::String& GetModerationModelVersion() const { return m_moderationModelVersion; }
108 template<typename ModerationModelVersionT = Aws::String>
109 void SetModerationModelVersion(ModerationModelVersionT&& value) { m_moderationModelVersionHasBeenSet = true; m_moderationModelVersion = std::forward<ModerationModelVersionT>(value); }
110 template<typename ModerationModelVersionT = Aws::String>
111 GetContentModerationResult& WithModerationModelVersion(ModerationModelVersionT&& value) { SetModerationModelVersion(std::forward<ModerationModelVersionT>(value)); return *this;}
113
115
120 inline const Aws::String& GetJobId() const { return m_jobId; }
121 template<typename JobIdT = Aws::String>
122 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
123 template<typename JobIdT = Aws::String>
124 GetContentModerationResult& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
126
128
129 inline const Video& GetVideo() const { return m_video; }
130 template<typename VideoT = Video>
131 void SetVideo(VideoT&& value) { m_videoHasBeenSet = true; m_video = std::forward<VideoT>(value); }
132 template<typename VideoT = Video>
133 GetContentModerationResult& WithVideo(VideoT&& value) { SetVideo(std::forward<VideoT>(value)); return *this;}
135
137
142 inline const Aws::String& GetJobTag() const { return m_jobTag; }
143 template<typename JobTagT = Aws::String>
144 void SetJobTag(JobTagT&& value) { m_jobTagHasBeenSet = true; m_jobTag = std::forward<JobTagT>(value); }
145 template<typename JobTagT = Aws::String>
146 GetContentModerationResult& WithJobTag(JobTagT&& value) { SetJobTag(std::forward<JobTagT>(value)); return *this;}
148
150
154 inline const GetContentModerationRequestMetadata& GetGetRequestMetadata() const { return m_getRequestMetadata; }
155 template<typename GetRequestMetadataT = GetContentModerationRequestMetadata>
156 void SetGetRequestMetadata(GetRequestMetadataT&& value) { m_getRequestMetadataHasBeenSet = true; m_getRequestMetadata = std::forward<GetRequestMetadataT>(value); }
157 template<typename GetRequestMetadataT = GetContentModerationRequestMetadata>
158 GetContentModerationResult& WithGetRequestMetadata(GetRequestMetadataT&& value) { SetGetRequestMetadata(std::forward<GetRequestMetadataT>(value)); return *this;}
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template<typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
166 template<typename RequestIdT = Aws::String>
167 GetContentModerationResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
169 private:
170
172 bool m_jobStatusHasBeenSet = false;
173
174 Aws::String m_statusMessage;
175 bool m_statusMessageHasBeenSet = false;
176
177 VideoMetadata m_videoMetadata;
178 bool m_videoMetadataHasBeenSet = false;
179
181 bool m_moderationLabelsHasBeenSet = false;
182
183 Aws::String m_nextToken;
184 bool m_nextTokenHasBeenSet = false;
185
186 Aws::String m_moderationModelVersion;
187 bool m_moderationModelVersionHasBeenSet = false;
188
189 Aws::String m_jobId;
190 bool m_jobIdHasBeenSet = false;
191
192 Video m_video;
193 bool m_videoHasBeenSet = false;
194
195 Aws::String m_jobTag;
196 bool m_jobTagHasBeenSet = false;
197
198 GetContentModerationRequestMetadata m_getRequestMetadata;
199 bool m_getRequestMetadataHasBeenSet = false;
200
201 Aws::String m_requestId;
202 bool m_requestIdHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace Rekognition
207} // 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