/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 DetectTextResult { public: AWS_REKOGNITION_API DetectTextResult(); AWS_REKOGNITION_API DetectTextResult(const Aws::AmazonWebServiceResult& result); AWS_REKOGNITION_API DetectTextResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

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

An array of text that was detected in the input image.

*/ inline DetectTextResult& AddTextDetections(TextDetection&& value) { m_textDetections.push_back(std::move(value)); return *this; } /** *

The model version used to detect text.

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

The model version used to detect text.

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

The model version used to detect text.

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

The model version used to detect text.

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

The model version used to detect text.

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

The model version used to detect text.

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

The model version used to detect text.

*/ inline DetectTextResult& WithTextModelVersion(const char* value) { SetTextModelVersion(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 DetectTextResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DetectTextResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DetectTextResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_textDetections; Aws::String m_textModelVersion; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws