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

A grouping of tables which contain LineItems, with each table identified by * the table's LineItemGroupIndex.

See Also:

AWS * API Reference

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

The number used to identify a specific table in a document. The first table * encountered will have a LineItemGroupIndex of 1, the second 2, etc.

*/ inline int GetLineItemGroupIndex() const{ return m_lineItemGroupIndex; } /** *

The number used to identify a specific table in a document. The first table * encountered will have a LineItemGroupIndex of 1, the second 2, etc.

*/ inline bool LineItemGroupIndexHasBeenSet() const { return m_lineItemGroupIndexHasBeenSet; } /** *

The number used to identify a specific table in a document. The first table * encountered will have a LineItemGroupIndex of 1, the second 2, etc.

*/ inline void SetLineItemGroupIndex(int value) { m_lineItemGroupIndexHasBeenSet = true; m_lineItemGroupIndex = value; } /** *

The number used to identify a specific table in a document. The first table * encountered will have a LineItemGroupIndex of 1, the second 2, etc.

*/ inline LineItemGroup& WithLineItemGroupIndex(int value) { SetLineItemGroupIndex(value); return *this;} /** *

The breakdown of information on a particular line of a table.

*/ inline const Aws::Vector& GetLineItems() const{ return m_lineItems; } /** *

The breakdown of information on a particular line of a table.

*/ inline bool LineItemsHasBeenSet() const { return m_lineItemsHasBeenSet; } /** *

The breakdown of information on a particular line of a table.

*/ inline void SetLineItems(const Aws::Vector& value) { m_lineItemsHasBeenSet = true; m_lineItems = value; } /** *

The breakdown of information on a particular line of a table.

*/ inline void SetLineItems(Aws::Vector&& value) { m_lineItemsHasBeenSet = true; m_lineItems = std::move(value); } /** *

The breakdown of information on a particular line of a table.

*/ inline LineItemGroup& WithLineItems(const Aws::Vector& value) { SetLineItems(value); return *this;} /** *

The breakdown of information on a particular line of a table.

*/ inline LineItemGroup& WithLineItems(Aws::Vector&& value) { SetLineItems(std::move(value)); return *this;} /** *

The breakdown of information on a particular line of a table.

*/ inline LineItemGroup& AddLineItems(const LineItemFields& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(value); return *this; } /** *

The breakdown of information on a particular line of a table.

*/ inline LineItemGroup& AddLineItems(LineItemFields&& value) { m_lineItemsHasBeenSet = true; m_lineItems.push_back(std::move(value)); return *this; } private: int m_lineItemGroupIndex; bool m_lineItemGroupIndexHasBeenSet = false; Aws::Vector m_lineItems; bool m_lineItemsHasBeenSet = false; }; } // namespace Model } // namespace Textract } // namespace Aws