/** * 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 { namespace Rekognition { namespace Model { /** */ class AWS_REKOGNITION_API DetectTextRequest : public RekognitionRequest { public: DetectTextRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "DetectText"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline const Image& GetImage() const{ return m_image; } /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline void SetImage(const Image& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline void SetImage(Image&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline DetectTextRequest& WithImage(const Image& value) { SetImage(value); return *this;} /** *

The input image as base64-encoded bytes or an Amazon S3 object. If you use * the AWS CLI to call Amazon Rekognition operations, you can't pass image bytes. *

If you are using an AWS SDK to call Amazon Rekognition, you might not * need to base64-encode image bytes passed using the Bytes field. For * more information, see Images in the Amazon Rekognition developer guide.

*/ inline DetectTextRequest& WithImage(Image&& value) { SetImage(std::move(value)); return *this;} /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline const DetectTextFilters& GetFilters() const{ return m_filters; } /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline void SetFilters(const DetectTextFilters& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline void SetFilters(DetectTextFilters&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline DetectTextRequest& WithFilters(const DetectTextFilters& value) { SetFilters(value); return *this;} /** *

Optional parameters that let you set the criteria that the text must meet to * be included in your response.

*/ inline DetectTextRequest& WithFilters(DetectTextFilters&& value) { SetFilters(std::move(value)); return *this;} private: Image m_image; bool m_imageHasBeenSet; DetectTextFilters m_filters; bool m_filtersHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws