AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExpenseField.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/ExpenseType.h>
9#include <aws/textract/model/ExpenseDetection.h>
10#include <aws/textract/model/ExpenseCurrency.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/textract/model/ExpenseGroupProperty.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Textract
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_TEXTRACT_API ExpenseField();
40 AWS_TEXTRACT_API ExpenseField(Aws::Utils::Json::JsonView jsonValue);
42 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const ExpenseType& GetType() const{ return m_type; }
51 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
52 inline void SetType(const ExpenseType& value) { m_typeHasBeenSet = true; m_type = value; }
53 inline void SetType(ExpenseType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
54 inline ExpenseField& WithType(const ExpenseType& value) { SetType(value); return *this;}
55 inline ExpenseField& WithType(ExpenseType&& value) { SetType(std::move(value)); return *this;}
57
59
62 inline const ExpenseDetection& GetLabelDetection() const{ return m_labelDetection; }
63 inline bool LabelDetectionHasBeenSet() const { return m_labelDetectionHasBeenSet; }
64 inline void SetLabelDetection(const ExpenseDetection& value) { m_labelDetectionHasBeenSet = true; m_labelDetection = value; }
65 inline void SetLabelDetection(ExpenseDetection&& value) { m_labelDetectionHasBeenSet = true; m_labelDetection = std::move(value); }
66 inline ExpenseField& WithLabelDetection(const ExpenseDetection& value) { SetLabelDetection(value); return *this;}
67 inline ExpenseField& WithLabelDetection(ExpenseDetection&& value) { SetLabelDetection(std::move(value)); return *this;}
69
71
75 inline const ExpenseDetection& GetValueDetection() const{ return m_valueDetection; }
76 inline bool ValueDetectionHasBeenSet() const { return m_valueDetectionHasBeenSet; }
77 inline void SetValueDetection(const ExpenseDetection& value) { m_valueDetectionHasBeenSet = true; m_valueDetection = value; }
78 inline void SetValueDetection(ExpenseDetection&& value) { m_valueDetectionHasBeenSet = true; m_valueDetection = std::move(value); }
79 inline ExpenseField& WithValueDetection(const ExpenseDetection& value) { SetValueDetection(value); return *this;}
80 inline ExpenseField& WithValueDetection(ExpenseDetection&& value) { SetValueDetection(std::move(value)); return *this;}
82
84
87 inline int GetPageNumber() const{ return m_pageNumber; }
88 inline bool PageNumberHasBeenSet() const { return m_pageNumberHasBeenSet; }
89 inline void SetPageNumber(int value) { m_pageNumberHasBeenSet = true; m_pageNumber = value; }
90 inline ExpenseField& WithPageNumber(int value) { SetPageNumber(value); return *this;}
92
94
98 inline const ExpenseCurrency& GetCurrency() const{ return m_currency; }
99 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
100 inline void SetCurrency(const ExpenseCurrency& value) { m_currencyHasBeenSet = true; m_currency = value; }
101 inline void SetCurrency(ExpenseCurrency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
102 inline ExpenseField& WithCurrency(const ExpenseCurrency& value) { SetCurrency(value); return *this;}
103 inline ExpenseField& WithCurrency(ExpenseCurrency&& value) { SetCurrency(std::move(value)); return *this;}
105
107
111 inline const Aws::Vector<ExpenseGroupProperty>& GetGroupProperties() const{ return m_groupProperties; }
112 inline bool GroupPropertiesHasBeenSet() const { return m_groupPropertiesHasBeenSet; }
113 inline void SetGroupProperties(const Aws::Vector<ExpenseGroupProperty>& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties = value; }
114 inline void SetGroupProperties(Aws::Vector<ExpenseGroupProperty>&& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties = std::move(value); }
117 inline ExpenseField& AddGroupProperties(const ExpenseGroupProperty& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties.push_back(value); return *this; }
118 inline ExpenseField& AddGroupProperties(ExpenseGroupProperty&& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties.push_back(std::move(value)); return *this; }
120 private:
121
122 ExpenseType m_type;
123 bool m_typeHasBeenSet = false;
124
125 ExpenseDetection m_labelDetection;
126 bool m_labelDetectionHasBeenSet = false;
127
128 ExpenseDetection m_valueDetection;
129 bool m_valueDetectionHasBeenSet = false;
130
131 int m_pageNumber;
132 bool m_pageNumberHasBeenSet = false;
133
134 ExpenseCurrency m_currency;
135 bool m_currencyHasBeenSet = false;
136
137 Aws::Vector<ExpenseGroupProperty> m_groupProperties;
138 bool m_groupPropertiesHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace Textract
143} // namespace Aws
ExpenseField & WithValueDetection(const ExpenseDetection &value)
const ExpenseDetection & GetValueDetection() const
ExpenseField & AddGroupProperties(ExpenseGroupProperty &&value)
void SetType(ExpenseType &&value)
void SetLabelDetection(ExpenseDetection &&value)
void SetLabelDetection(const ExpenseDetection &value)
ExpenseField & WithCurrency(ExpenseCurrency &&value)
const ExpenseDetection & GetLabelDetection() const
ExpenseField & WithValueDetection(ExpenseDetection &&value)
ExpenseField & WithLabelDetection(const ExpenseDetection &value)
ExpenseField & WithPageNumber(int value)
const ExpenseCurrency & GetCurrency() const
ExpenseField & WithLabelDetection(ExpenseDetection &&value)
AWS_TEXTRACT_API ExpenseField(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ExpenseGroupProperty > & GetGroupProperties() const
void SetGroupProperties(const Aws::Vector< ExpenseGroupProperty > &value)
AWS_TEXTRACT_API ExpenseField & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpenseField & WithType(const ExpenseType &value)
const ExpenseType & GetType() const
ExpenseField & WithGroupProperties(Aws::Vector< ExpenseGroupProperty > &&value)
void SetValueDetection(const ExpenseDetection &value)
ExpenseField & AddGroupProperties(const ExpenseGroupProperty &value)
void SetValueDetection(ExpenseDetection &&value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
ExpenseField & WithGroupProperties(const Aws::Vector< ExpenseGroupProperty > &value)
void SetCurrency(const ExpenseCurrency &value)
ExpenseField & WithCurrency(const ExpenseCurrency &value)
void SetGroupProperties(Aws::Vector< ExpenseGroupProperty > &&value)
void SetCurrency(ExpenseCurrency &&value)
ExpenseField & WithType(ExpenseType &&value)
void SetType(const ExpenseType &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue