AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExpenseDocument.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/model/ExpenseField.h>
10#include <aws/textract/model/LineItemGroup.h>
11#include <aws/textract/model/Block.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Textract
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_TEXTRACT_API ExpenseDocument();
39 AWS_TEXTRACT_API ExpenseDocument(Aws::Utils::Json::JsonView jsonValue);
41 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline int GetExpenseIndex() const{ return m_expenseIndex; }
50 inline bool ExpenseIndexHasBeenSet() const { return m_expenseIndexHasBeenSet; }
51 inline void SetExpenseIndex(int value) { m_expenseIndexHasBeenSet = true; m_expenseIndex = value; }
52 inline ExpenseDocument& WithExpenseIndex(int value) { SetExpenseIndex(value); return *this;}
54
56
59 inline const Aws::Vector<ExpenseField>& GetSummaryFields() const{ return m_summaryFields; }
60 inline bool SummaryFieldsHasBeenSet() const { return m_summaryFieldsHasBeenSet; }
61 inline void SetSummaryFields(const Aws::Vector<ExpenseField>& value) { m_summaryFieldsHasBeenSet = true; m_summaryFields = value; }
62 inline void SetSummaryFields(Aws::Vector<ExpenseField>&& value) { m_summaryFieldsHasBeenSet = true; m_summaryFields = std::move(value); }
63 inline ExpenseDocument& WithSummaryFields(const Aws::Vector<ExpenseField>& value) { SetSummaryFields(value); return *this;}
64 inline ExpenseDocument& WithSummaryFields(Aws::Vector<ExpenseField>&& value) { SetSummaryFields(std::move(value)); return *this;}
65 inline ExpenseDocument& AddSummaryFields(const ExpenseField& value) { m_summaryFieldsHasBeenSet = true; m_summaryFields.push_back(value); return *this; }
66 inline ExpenseDocument& AddSummaryFields(ExpenseField&& value) { m_summaryFieldsHasBeenSet = true; m_summaryFields.push_back(std::move(value)); return *this; }
68
70
74 inline const Aws::Vector<LineItemGroup>& GetLineItemGroups() const{ return m_lineItemGroups; }
75 inline bool LineItemGroupsHasBeenSet() const { return m_lineItemGroupsHasBeenSet; }
76 inline void SetLineItemGroups(const Aws::Vector<LineItemGroup>& value) { m_lineItemGroupsHasBeenSet = true; m_lineItemGroups = value; }
77 inline void SetLineItemGroups(Aws::Vector<LineItemGroup>&& value) { m_lineItemGroupsHasBeenSet = true; m_lineItemGroups = std::move(value); }
79 inline ExpenseDocument& WithLineItemGroups(Aws::Vector<LineItemGroup>&& value) { SetLineItemGroups(std::move(value)); return *this;}
80 inline ExpenseDocument& AddLineItemGroups(const LineItemGroup& value) { m_lineItemGroupsHasBeenSet = true; m_lineItemGroups.push_back(value); return *this; }
81 inline ExpenseDocument& AddLineItemGroups(LineItemGroup&& value) { m_lineItemGroupsHasBeenSet = true; m_lineItemGroups.push_back(std::move(value)); return *this; }
83
85
89 inline const Aws::Vector<Block>& GetBlocks() const{ return m_blocks; }
90 inline bool BlocksHasBeenSet() const { return m_blocksHasBeenSet; }
91 inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocksHasBeenSet = true; m_blocks = value; }
92 inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocksHasBeenSet = true; m_blocks = std::move(value); }
93 inline ExpenseDocument& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
94 inline ExpenseDocument& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
95 inline ExpenseDocument& AddBlocks(const Block& value) { m_blocksHasBeenSet = true; m_blocks.push_back(value); return *this; }
96 inline ExpenseDocument& AddBlocks(Block&& value) { m_blocksHasBeenSet = true; m_blocks.push_back(std::move(value)); return *this; }
98 private:
99
100 int m_expenseIndex;
101 bool m_expenseIndexHasBeenSet = false;
102
103 Aws::Vector<ExpenseField> m_summaryFields;
104 bool m_summaryFieldsHasBeenSet = false;
105
106 Aws::Vector<LineItemGroup> m_lineItemGroups;
107 bool m_lineItemGroupsHasBeenSet = false;
108
109 Aws::Vector<Block> m_blocks;
110 bool m_blocksHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Textract
115} // namespace Aws
ExpenseDocument & WithBlocks(const Aws::Vector< Block > &value)
const Aws::Vector< Block > & GetBlocks() const
void SetLineItemGroups(Aws::Vector< LineItemGroup > &&value)
ExpenseDocument & AddBlocks(Block &&value)
void SetLineItemGroups(const Aws::Vector< LineItemGroup > &value)
ExpenseDocument & AddLineItemGroups(LineItemGroup &&value)
AWS_TEXTRACT_API ExpenseDocument(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ExpenseField > & GetSummaryFields() const
ExpenseDocument & WithLineItemGroups(const Aws::Vector< LineItemGroup > &value)
void SetBlocks(Aws::Vector< Block > &&value)
const Aws::Vector< LineItemGroup > & GetLineItemGroups() const
ExpenseDocument & WithSummaryFields(Aws::Vector< ExpenseField > &&value)
ExpenseDocument & WithLineItemGroups(Aws::Vector< LineItemGroup > &&value)
AWS_TEXTRACT_API ExpenseDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSummaryFields(Aws::Vector< ExpenseField > &&value)
ExpenseDocument & AddBlocks(const Block &value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
ExpenseDocument & WithExpenseIndex(int value)
ExpenseDocument & WithBlocks(Aws::Vector< Block > &&value)
ExpenseDocument & AddSummaryFields(const ExpenseField &value)
void SetSummaryFields(const Aws::Vector< ExpenseField > &value)
ExpenseDocument & WithSummaryFields(const Aws::Vector< ExpenseField > &value)
ExpenseDocument & AddLineItemGroups(const LineItemGroup &value)
ExpenseDocument & AddSummaryFields(ExpenseField &&value)
void SetBlocks(const Aws::Vector< Block > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue