AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TypeT = ExpenseType>
53 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
54 template<typename TypeT = ExpenseType>
55 ExpenseField& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
57
59
62 inline const ExpenseDetection& GetLabelDetection() const { return m_labelDetection; }
63 inline bool LabelDetectionHasBeenSet() const { return m_labelDetectionHasBeenSet; }
64 template<typename LabelDetectionT = ExpenseDetection>
65 void SetLabelDetection(LabelDetectionT&& value) { m_labelDetectionHasBeenSet = true; m_labelDetection = std::forward<LabelDetectionT>(value); }
66 template<typename LabelDetectionT = ExpenseDetection>
67 ExpenseField& WithLabelDetection(LabelDetectionT&& value) { SetLabelDetection(std::forward<LabelDetectionT>(value)); return *this;}
69
71
75 inline const ExpenseDetection& GetValueDetection() const { return m_valueDetection; }
76 inline bool ValueDetectionHasBeenSet() const { return m_valueDetectionHasBeenSet; }
77 template<typename ValueDetectionT = ExpenseDetection>
78 void SetValueDetection(ValueDetectionT&& value) { m_valueDetectionHasBeenSet = true; m_valueDetection = std::forward<ValueDetectionT>(value); }
79 template<typename ValueDetectionT = ExpenseDetection>
80 ExpenseField& WithValueDetection(ValueDetectionT&& value) { SetValueDetection(std::forward<ValueDetectionT>(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 template<typename CurrencyT = ExpenseCurrency>
101 void SetCurrency(CurrencyT&& value) { m_currencyHasBeenSet = true; m_currency = std::forward<CurrencyT>(value); }
102 template<typename CurrencyT = ExpenseCurrency>
103 ExpenseField& WithCurrency(CurrencyT&& value) { SetCurrency(std::forward<CurrencyT>(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 template<typename GroupPropertiesT = Aws::Vector<ExpenseGroupProperty>>
114 void SetGroupProperties(GroupPropertiesT&& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties = std::forward<GroupPropertiesT>(value); }
115 template<typename GroupPropertiesT = Aws::Vector<ExpenseGroupProperty>>
116 ExpenseField& WithGroupProperties(GroupPropertiesT&& value) { SetGroupProperties(std::forward<GroupPropertiesT>(value)); return *this;}
117 template<typename GroupPropertiesT = ExpenseGroupProperty>
118 ExpenseField& AddGroupProperties(GroupPropertiesT&& value) { m_groupPropertiesHasBeenSet = true; m_groupProperties.emplace_back(std::forward<GroupPropertiesT>(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{0};
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 & WithCurrency(CurrencyT &&value)
ExpenseField & WithLabelDetection(LabelDetectionT &&value)
const ExpenseDetection & GetValueDetection() const
ExpenseField & AddGroupProperties(GroupPropertiesT &&value)
void SetLabelDetection(LabelDetectionT &&value)
void SetValueDetection(ValueDetectionT &&value)
const ExpenseDetection & GetLabelDetection() const
void SetGroupProperties(GroupPropertiesT &&value)
void SetCurrency(CurrencyT &&value)
ExpenseField & WithPageNumber(int value)
const ExpenseCurrency & GetCurrency() const
AWS_TEXTRACT_API ExpenseField(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ExpenseGroupProperty > & GetGroupProperties() const
AWS_TEXTRACT_API ExpenseField & operator=(Aws::Utils::Json::JsonView jsonValue)
ExpenseField & WithType(TypeT &&value)
const ExpenseType & GetType() const
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
ExpenseField & WithValueDetection(ValueDetectionT &&value)
ExpenseField & WithGroupProperties(GroupPropertiesT &&value)
AWS_TEXTRACT_API ExpenseField()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue