/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { class GetContentModerationResult { public: AWS_REKOGNITION_API GetContentModerationResult(); AWS_REKOGNITION_API GetContentModerationResult(const Aws::AmazonWebServiceResult& result); AWS_REKOGNITION_API GetContentModerationResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The current status of the content moderation analysis job.

*/ inline const VideoJobStatus& GetJobStatus() const{ return m_jobStatus; } /** *

The current status of the content moderation analysis job.

*/ inline void SetJobStatus(const VideoJobStatus& value) { m_jobStatus = value; } /** *

The current status of the content moderation analysis job.

*/ inline void SetJobStatus(VideoJobStatus&& value) { m_jobStatus = std::move(value); } /** *

The current status of the content moderation analysis job.

*/ inline GetContentModerationResult& WithJobStatus(const VideoJobStatus& value) { SetJobStatus(value); return *this;} /** *

The current status of the content moderation analysis job.

*/ inline GetContentModerationResult& WithJobStatus(VideoJobStatus&& value) { SetJobStatus(std::move(value)); return *this;} /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; } /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; } /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); } /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); } /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline GetContentModerationResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline GetContentModerationResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;} /** *

If the job fails, StatusMessage provides a descriptive error * message.

*/ inline GetContentModerationResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} /** *

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * GetContentModeration.

*/ inline const VideoMetadata& GetVideoMetadata() const{ return m_videoMetadata; } /** *

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * GetContentModeration.

*/ inline void SetVideoMetadata(const VideoMetadata& value) { m_videoMetadata = value; } /** *

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * GetContentModeration.

*/ inline void SetVideoMetadata(VideoMetadata&& value) { m_videoMetadata = std::move(value); } /** *

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * GetContentModeration.

*/ inline GetContentModerationResult& WithVideoMetadata(const VideoMetadata& value) { SetVideoMetadata(value); return *this;} /** *

Information about a video that Amazon Rekognition analyzed. * Videometadata is returned in every page of paginated responses from * GetContentModeration.

*/ inline GetContentModerationResult& WithVideoMetadata(VideoMetadata&& value) { SetVideoMetadata(std::move(value)); return *this;} /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline const Aws::Vector& GetModerationLabels() const{ return m_moderationLabels; } /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline void SetModerationLabels(const Aws::Vector& value) { m_moderationLabels = value; } /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline void SetModerationLabels(Aws::Vector&& value) { m_moderationLabels = std::move(value); } /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline GetContentModerationResult& WithModerationLabels(const Aws::Vector& value) { SetModerationLabels(value); return *this;} /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline GetContentModerationResult& WithModerationLabels(Aws::Vector&& value) { SetModerationLabels(std::move(value)); return *this;} /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline GetContentModerationResult& AddModerationLabels(const ContentModerationDetection& value) { m_moderationLabels.push_back(value); return *this; } /** *

The detected inappropriate, unwanted, or offensive content moderation labels * and the time(s) they were detected.

*/ inline GetContentModerationResult& AddModerationLabels(ContentModerationDetection&& value) { m_moderationLabels.push_back(std::move(value)); return *this; } /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline GetContentModerationResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline GetContentModerationResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

If the response is truncated, Amazon Rekognition Video returns this token * that you can use in the subsequent request to retrieve the next set of content * moderation labels.

*/ inline GetContentModerationResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline const Aws::String& GetModerationModelVersion() const{ return m_moderationModelVersion; } /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline void SetModerationModelVersion(const Aws::String& value) { m_moderationModelVersion = value; } /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline void SetModerationModelVersion(Aws::String&& value) { m_moderationModelVersion = std::move(value); } /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline void SetModerationModelVersion(const char* value) { m_moderationModelVersion.assign(value); } /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline GetContentModerationResult& WithModerationModelVersion(const Aws::String& value) { SetModerationModelVersion(value); return *this;} /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline GetContentModerationResult& WithModerationModelVersion(Aws::String&& value) { SetModerationModelVersion(std::move(value)); return *this;} /** *

Version number of the moderation detection model that was used to detect * inappropriate, unwanted, or offensive content.

*/ inline GetContentModerationResult& WithModerationModelVersion(const char* value) { SetModerationModelVersion(value); return *this;} /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline void SetJobId(const Aws::String& value) { m_jobId = value; } /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline void SetJobId(Aws::String&& value) { m_jobId = std::move(value); } /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline void SetJobId(const char* value) { m_jobId.assign(value); } /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline GetContentModerationResult& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline GetContentModerationResult& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

Job identifier for the content moderation operation for which you want to * obtain results. The job identifer is returned by an initial call to * StartContentModeration.

*/ inline GetContentModerationResult& WithJobId(const char* value) { SetJobId(value); return *this;} inline const Video& GetVideo() const{ return m_video; } inline void SetVideo(const Video& value) { m_video = value; } inline void SetVideo(Video&& value) { m_video = std::move(value); } inline GetContentModerationResult& WithVideo(const Video& value) { SetVideo(value); return *this;} inline GetContentModerationResult& WithVideo(Video&& value) { SetVideo(std::move(value)); return *this;} /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline const Aws::String& GetJobTag() const{ return m_jobTag; } /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline void SetJobTag(const Aws::String& value) { m_jobTag = value; } /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline void SetJobTag(Aws::String&& value) { m_jobTag = std::move(value); } /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline void SetJobTag(const char* value) { m_jobTag.assign(value); } /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline GetContentModerationResult& WithJobTag(const Aws::String& value) { SetJobTag(value); return *this;} /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline GetContentModerationResult& WithJobTag(Aws::String&& value) { SetJobTag(std::move(value)); return *this;} /** *

A job identifier specified in the call to StartContentModeration and returned * in the job completion notification sent to your Amazon Simple Notification * Service topic.

*/ inline GetContentModerationResult& WithJobTag(const char* value) { SetJobTag(value); return *this;} /** *

Information about the paramters used when getting a response. Includes * information on aggregation and sorting methods.

*/ inline const GetContentModerationRequestMetadata& GetGetRequestMetadata() const{ return m_getRequestMetadata; } /** *

Information about the paramters used when getting a response. Includes * information on aggregation and sorting methods.

*/ inline void SetGetRequestMetadata(const GetContentModerationRequestMetadata& value) { m_getRequestMetadata = value; } /** *

Information about the paramters used when getting a response. Includes * information on aggregation and sorting methods.

*/ inline void SetGetRequestMetadata(GetContentModerationRequestMetadata&& value) { m_getRequestMetadata = std::move(value); } /** *

Information about the paramters used when getting a response. Includes * information on aggregation and sorting methods.

*/ inline GetContentModerationResult& WithGetRequestMetadata(const GetContentModerationRequestMetadata& value) { SetGetRequestMetadata(value); return *this;} /** *

Information about the paramters used when getting a response. Includes * information on aggregation and sorting methods.

*/ inline GetContentModerationResult& WithGetRequestMetadata(GetContentModerationRequestMetadata&& value) { SetGetRequestMetadata(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetContentModerationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetContentModerationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetContentModerationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: VideoJobStatus m_jobStatus; Aws::String m_statusMessage; VideoMetadata m_videoMetadata; Aws::Vector m_moderationLabels; Aws::String m_nextToken; Aws::String m_moderationModelVersion; Aws::String m_jobId; Video m_video; Aws::String m_jobTag; GetContentModerationRequestMetadata m_getRequestMetadata; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws