/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Textract { namespace Model { /** *

The Amazon S3 bucket that contains the document to be processed. It's used by * asynchronous operations.

The input document can be an image file in JPEG * or PNG format. It can also be a file in PDF format.

See Also:

* AWS * API Reference

*/ class DocumentLocation { public: AWS_TEXTRACT_API DocumentLocation(); AWS_TEXTRACT_API DocumentLocation(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API DocumentLocation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon S3 bucket that contains the input document.

*/ inline const S3Object& GetS3Object() const{ return m_s3Object; } /** *

The Amazon S3 bucket that contains the input document.

*/ inline bool S3ObjectHasBeenSet() const { return m_s3ObjectHasBeenSet; } /** *

The Amazon S3 bucket that contains the input document.

*/ inline void SetS3Object(const S3Object& value) { m_s3ObjectHasBeenSet = true; m_s3Object = value; } /** *

The Amazon S3 bucket that contains the input document.

*/ inline void SetS3Object(S3Object&& value) { m_s3ObjectHasBeenSet = true; m_s3Object = std::move(value); } /** *

The Amazon S3 bucket that contains the input document.

*/ inline DocumentLocation& WithS3Object(const S3Object& value) { SetS3Object(value); return *this;} /** *

The Amazon S3 bucket that contains the input document.

*/ inline DocumentLocation& WithS3Object(S3Object&& value) { SetS3Object(std::move(value)); return *this;} private: S3Object m_s3Object; bool m_s3ObjectHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws