/** * 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 { /** *

Contains information about the pages of a document, defined by logical * boundary.

See Also:

AWS * API Reference

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

The index for a given document in a DocumentGroup of a specific Type.

*/ inline int GetIndex() const{ return m_index; } /** *

The index for a given document in a DocumentGroup of a specific Type.

*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *

The index for a given document in a DocumentGroup of a specific Type.

*/ inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; } /** *

The index for a given document in a DocumentGroup of a specific Type.

*/ inline SplitDocument& WithIndex(int value) { SetIndex(value); return *this;} /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline const Aws::Vector& GetPages() const{ return m_pages; } /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline bool PagesHasBeenSet() const { return m_pagesHasBeenSet; } /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline void SetPages(const Aws::Vector& value) { m_pagesHasBeenSet = true; m_pages = value; } /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline void SetPages(Aws::Vector&& value) { m_pagesHasBeenSet = true; m_pages = std::move(value); } /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline SplitDocument& WithPages(const Aws::Vector& value) { SetPages(value); return *this;} /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline SplitDocument& WithPages(Aws::Vector&& value) { SetPages(std::move(value)); return *this;} /** *

An array of page numbers for a for a given document, ordered by logical * boundary.

*/ inline SplitDocument& AddPages(int value) { m_pagesHasBeenSet = true; m_pages.push_back(value); return *this; } private: int m_index; bool m_indexHasBeenSet = false; Aws::Vector m_pages; bool m_pagesHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws