AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IdentityDocument.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/textract/Textract_EXPORTS.h>
9#include <aws/textract/model/Block.h>
10#include <aws/textract/model/IdentityDocumentField.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 IdentityDocument() = default;
33 AWS_TEXTRACT_API IdentityDocument(Aws::Utils::Json::JsonView jsonValue);
35 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline int GetDocumentIndex() const { return m_documentIndex; }
43 inline bool DocumentIndexHasBeenSet() const { return m_documentIndexHasBeenSet; }
44 inline void SetDocumentIndex(int value) {
45 m_documentIndexHasBeenSet = true;
46 m_documentIndex = value;
47 }
49 SetDocumentIndex(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<IdentityDocumentField>& GetIdentityDocumentFields() const { return m_identityDocumentFields; }
60 inline bool IdentityDocumentFieldsHasBeenSet() const { return m_identityDocumentFieldsHasBeenSet; }
61 template <typename IdentityDocumentFieldsT = Aws::Vector<IdentityDocumentField>>
62 void SetIdentityDocumentFields(IdentityDocumentFieldsT&& value) {
63 m_identityDocumentFieldsHasBeenSet = true;
64 m_identityDocumentFields = std::forward<IdentityDocumentFieldsT>(value);
65 }
66 template <typename IdentityDocumentFieldsT = Aws::Vector<IdentityDocumentField>>
67 IdentityDocument& WithIdentityDocumentFields(IdentityDocumentFieldsT&& value) {
68 SetIdentityDocumentFields(std::forward<IdentityDocumentFieldsT>(value));
69 return *this;
70 }
71 template <typename IdentityDocumentFieldsT = IdentityDocumentField>
72 IdentityDocument& AddIdentityDocumentFields(IdentityDocumentFieldsT&& value) {
73 m_identityDocumentFieldsHasBeenSet = true;
74 m_identityDocumentFields.emplace_back(std::forward<IdentityDocumentFieldsT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
84 inline bool BlocksHasBeenSet() const { return m_blocksHasBeenSet; }
85 template <typename BlocksT = Aws::Vector<Block>>
86 void SetBlocks(BlocksT&& value) {
87 m_blocksHasBeenSet = true;
88 m_blocks = std::forward<BlocksT>(value);
89 }
90 template <typename BlocksT = Aws::Vector<Block>>
91 IdentityDocument& WithBlocks(BlocksT&& value) {
92 SetBlocks(std::forward<BlocksT>(value));
93 return *this;
94 }
95 template <typename BlocksT = Block>
96 IdentityDocument& AddBlocks(BlocksT&& value) {
97 m_blocksHasBeenSet = true;
98 m_blocks.emplace_back(std::forward<BlocksT>(value));
99 return *this;
100 }
102 private:
103 int m_documentIndex{0};
104
105 Aws::Vector<IdentityDocumentField> m_identityDocumentFields;
106
107 Aws::Vector<Block> m_blocks;
108 bool m_documentIndexHasBeenSet = false;
109 bool m_identityDocumentFieldsHasBeenSet = false;
110 bool m_blocksHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace Textract
115} // namespace Aws
IdentityDocument & AddBlocks(BlocksT &&value)
AWS_TEXTRACT_API IdentityDocument & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TEXTRACT_API IdentityDocument(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< IdentityDocumentField > & GetIdentityDocumentFields() const
IdentityDocument & WithBlocks(BlocksT &&value)
IdentityDocument & WithIdentityDocumentFields(IdentityDocumentFieldsT &&value)
const Aws::Vector< Block > & GetBlocks() const
IdentityDocument & AddIdentityDocumentFields(IdentityDocumentFieldsT &&value)
AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TEXTRACT_API IdentityDocument()=default
IdentityDocument & WithDocumentIndex(int value)
void SetIdentityDocumentFields(IdentityDocumentFieldsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue