AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LendingField.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/textract/model/LendingDetection.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Textract
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_TEXTRACT_API LendingField() = default;
38 AWS_TEXTRACT_API LendingField(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 template<typename TypeT = Aws::String>
50 void SetType(TypeT&& value) { m_typeHasBeenSet = true; m_type = std::forward<TypeT>(value); }
51 template<typename TypeT = Aws::String>
52 LendingField& WithType(TypeT&& value) { SetType(std::forward<TypeT>(value)); return *this;}
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) { m_keyDetectionHasBeenSet = true; m_keyDetection = std::forward<KeyDetectionT>(value); }
61 template<typename KeyDetectionT = LendingDetection>
62 LendingField& WithKeyDetection(KeyDetectionT&& value) { SetKeyDetection(std::forward<KeyDetectionT>(value)); return *this;}
64
66
69 inline const Aws::Vector<LendingDetection>& GetValueDetections() const { return m_valueDetections; }
70 inline bool ValueDetectionsHasBeenSet() const { return m_valueDetectionsHasBeenSet; }
71 template<typename ValueDetectionsT = Aws::Vector<LendingDetection>>
72 void SetValueDetections(ValueDetectionsT&& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections = std::forward<ValueDetectionsT>(value); }
73 template<typename ValueDetectionsT = Aws::Vector<LendingDetection>>
74 LendingField& WithValueDetections(ValueDetectionsT&& value) { SetValueDetections(std::forward<ValueDetectionsT>(value)); return *this;}
75 template<typename ValueDetectionsT = LendingDetection>
76 LendingField& AddValueDetections(ValueDetectionsT&& value) { m_valueDetectionsHasBeenSet = true; m_valueDetections.emplace_back(std::forward<ValueDetectionsT>(value)); return *this; }
78 private:
79
80 Aws::String m_type;
81 bool m_typeHasBeenSet = false;
82
83 LendingDetection m_keyDetection;
84 bool m_keyDetectionHasBeenSet = false;
85
86 Aws::Vector<LendingDetection> m_valueDetections;
87 bool m_valueDetectionsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace Textract
92} // 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