AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IdentityDocument.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/textract/model/IdentityDocumentField.h>
10#include <aws/textract/model/Block.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 IdentityDocument() = default;
38 AWS_TEXTRACT_API IdentityDocument(Aws::Utils::Json::JsonView jsonValue);
40 AWS_TEXTRACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline int GetDocumentIndex() const { return m_documentIndex; }
49 inline bool DocumentIndexHasBeenSet() const { return m_documentIndexHasBeenSet; }
50 inline void SetDocumentIndex(int value) { m_documentIndexHasBeenSet = true; m_documentIndex = value; }
51 inline IdentityDocument& WithDocumentIndex(int value) { SetDocumentIndex(value); return *this;}
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) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields = std::forward<IdentityDocumentFieldsT>(value); }
63 template<typename IdentityDocumentFieldsT = Aws::Vector<IdentityDocumentField>>
64 IdentityDocument& WithIdentityDocumentFields(IdentityDocumentFieldsT&& value) { SetIdentityDocumentFields(std::forward<IdentityDocumentFieldsT>(value)); return *this;}
65 template<typename IdentityDocumentFieldsT = IdentityDocumentField>
66 IdentityDocument& AddIdentityDocumentFields(IdentityDocumentFieldsT&& value) { m_identityDocumentFieldsHasBeenSet = true; m_identityDocumentFields.emplace_back(std::forward<IdentityDocumentFieldsT>(value)); return *this; }
68
70
73 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
74 inline bool BlocksHasBeenSet() const { return m_blocksHasBeenSet; }
75 template<typename BlocksT = Aws::Vector<Block>>
76 void SetBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks = std::forward<BlocksT>(value); }
77 template<typename BlocksT = Aws::Vector<Block>>
78 IdentityDocument& WithBlocks(BlocksT&& value) { SetBlocks(std::forward<BlocksT>(value)); return *this;}
79 template<typename BlocksT = Block>
80 IdentityDocument& AddBlocks(BlocksT&& value) { m_blocksHasBeenSet = true; m_blocks.emplace_back(std::forward<BlocksT>(value)); return *this; }
82 private:
83
84 int m_documentIndex{0};
85 bool m_documentIndexHasBeenSet = false;
86
87 Aws::Vector<IdentityDocumentField> m_identityDocumentFields;
88 bool m_identityDocumentFieldsHasBeenSet = false;
89
90 Aws::Vector<Block> m_blocks;
91 bool m_blocksHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Textract
96} // 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