/** * 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 AWS_REKOGNITION_API DetectTextResult { public: DetectTextResult(); DetectTextResult(const Aws::AmazonWebServiceResult& result); 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;} private: Aws::Vector m_textDetections; Aws::String m_textModelVersion; }; } // namespace Model } // namespace Rekognition } // namespace Aws