AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
LendingField.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/Textract_EXPORTS.h>
10#include <aws/textract/model/LendingDetection.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Textract {
22namespace Model {
23
31 public:
32 AWS_TEXTRACT_API LendingField() = default;
33 AWS_TEXTRACT_API LendingField(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 template <typename TypeT = Aws::String>
44 void SetType(TypeT&& value) {
45 m_typeHasBeenSet = true;
46 m_type = std::forward<TypeT>(value);
47 }
48 template <typename TypeT = Aws::String>
49 LendingField& WithType(TypeT&& value) {
50 SetType(std::forward<TypeT>(value));
51 return *this;
52 }
54
56
57 inline const LendingDetection& GetKeyDetection() const { return m_keyDetection; }
58 inline bool KeyDetectionHasBeenSet() const { return m_keyDetectionHasBeenSet; }
59 template <typename KeyDetectionT = LendingDetection>
60 void SetKeyDetection(KeyDetectionT&& value) {
61 m_keyDetectionHasBeenSet = true;
62 m_keyDetection = std::forward<KeyDetectionT>(value);
63 }
64 template <typename KeyDetectionT = LendingDetection>
65 LendingField& WithKeyDetection(KeyDetectionT&& value) {
66 SetKeyDetection(std::forward<KeyDetectionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<LendingDetection>& GetValueDetections() const { return m_valueDetections; }
76 inline bool ValueDetectionsHasBeenSet() const { return m_valueDetectionsHasBeenSet; }
77 template <typename ValueDetectionsT = Aws::Vector<LendingDetection>>
78 void SetValueDetections(ValueDetectionsT&& value) {
79 m_valueDetectionsHasBeenSet = true;
80 m_valueDetections = std::forward<ValueDetectionsT>(value);
81 }
82 template <typename ValueDetectionsT = Aws::Vector<LendingDetection>>
83 LendingField& WithValueDetections(ValueDetectionsT&& value) {
84 SetValueDetections(std::forward<ValueDetectionsT>(value));
85 return *this;
86 }
87 template <typename ValueDetectionsT = LendingDetection>
88 LendingField& AddValueDetections(ValueDetectionsT&& value) {
89 m_valueDetectionsHasBeenSet = true;
90 m_valueDetections.emplace_back(std::forward<ValueDetectionsT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_type;
96
97 LendingDetection m_keyDetection;
98
99 Aws::Vector<LendingDetection> m_valueDetections;
100 bool m_typeHasBeenSet = false;
101 bool m_keyDetectionHasBeenSet = false;
102 bool m_valueDetectionsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Textract
107} // namespace Aws
AWS_TEXTRACT_API LendingField()=default
void SetKeyDetection(KeyDetectionT &&value)
const LendingDetection & GetKeyDetection() const
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< LendingDetection > & GetValueDetections() const
LendingField & WithType(TypeT &&value)
LendingField & AddValueDetections(ValueDetectionsT &&value)
LendingField & WithKeyDetection(KeyDetectionT &&value)
const Aws::String & GetType() const
LendingField & WithValueDetections(ValueDetectionsT &&value)
AWS_TEXTRACT_API LendingField & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API LendingField(Aws::Utils::Json::JsonView jsonValue)
void SetValueDetections(ValueDetectionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue