/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { class AWS_REKOGNITION_API GetTextDetectionResult { public: GetTextDetectionResult(); GetTextDetectionResult(const Aws::AmazonWebServiceResult& result); GetTextDetectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Current status of the text detection job.

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

Current status of the text detection job.

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

Current status of the text detection job.

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

Current status of the text detection job.

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

Current status of the text detection job.

*/ inline GetTextDetectionResult& 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 GetTextDetectionResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;} /** *

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

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

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

*/ inline GetTextDetectionResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;} inline const VideoMetadata& GetVideoMetadata() const{ return m_videoMetadata; } inline void SetVideoMetadata(const VideoMetadata& value) { m_videoMetadata = value; } inline void SetVideoMetadata(VideoMetadata&& value) { m_videoMetadata = std::move(value); } inline GetTextDetectionResult& WithVideoMetadata(const VideoMetadata& value) { SetVideoMetadata(value); return *this;} inline GetTextDetectionResult& WithVideoMetadata(VideoMetadata&& value) { SetVideoMetadata(std::move(value)); return *this;} /** *

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

*/ inline const Aws::Vector& GetTextDetections() const{ return m_textDetections; } /** *

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

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

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

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

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

*/ inline GetTextDetectionResult& WithTextDetections(const Aws::Vector& value) { SetTextDetections(value); return *this;} /** *

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

*/ inline GetTextDetectionResult& WithTextDetections(Aws::Vector&& value) { SetTextDetections(std::move(value)); return *this;} /** *

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

*/ inline GetTextDetectionResult& AddTextDetections(const TextDetectionResult& value) { m_textDetections.push_back(value); return *this; } /** *

An array of text detected in the video. Each element contains the detected * text, the time in milliseconds from the start of the video that the text was * detected, and where it was detected on the screen.

*/ inline GetTextDetectionResult& AddTextDetections(TextDetectionResult&& value) { m_textDetections.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 text.

*/ 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 text.

*/ 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 text.

*/ 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 text.

*/ 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 text.

*/ inline GetTextDetectionResult& 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 text.

*/ inline GetTextDetectionResult& 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 text.

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

Version number of the text detection model that was used to detect text.

*/ inline const Aws::String& GetTextModelVersion() const{ return m_textModelVersion; } /** *

Version number of the text detection model that was used to detect text.

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

Version number of the text detection model that was used to detect text.

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

Version number of the text detection model that was used to detect text.

*/ inline void SetTextModelVersion(const char* value) { m_textModelVersion.assign(value); } /** *

Version number of the text detection model that was used to detect text.

*/ inline GetTextDetectionResult& WithTextModelVersion(const Aws::String& value) { SetTextModelVersion(value); return *this;} /** *

Version number of the text detection model that was used to detect text.

*/ inline GetTextDetectionResult& WithTextModelVersion(Aws::String&& value) { SetTextModelVersion(std::move(value)); return *this;} /** *

Version number of the text detection model that was used to detect text.

*/ inline GetTextDetectionResult& WithTextModelVersion(const char* value) { SetTextModelVersion(value); return *this;} private: VideoJobStatus m_jobStatus; Aws::String m_statusMessage; VideoMetadata m_videoMetadata; Aws::Vector m_textDetections; Aws::String m_nextToken; Aws::String m_textModelVersion; }; } // namespace Model } // namespace Rekognition } // namespace Aws