AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AnalyzeDocumentResult.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/Block.h>
11#include <aws/textract/model/DocumentMetadata.h>
12#include <aws/textract/model/HumanLoopActivationOutput.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace Textract {
26namespace Model {
28 public:
29 AWS_TEXTRACT_API AnalyzeDocumentResult() = default;
32
34
37 inline const DocumentMetadata& GetDocumentMetadata() const { return m_documentMetadata; }
38 template <typename DocumentMetadataT = DocumentMetadata>
39 void SetDocumentMetadata(DocumentMetadataT&& value) {
40 m_documentMetadataHasBeenSet = true;
41 m_documentMetadata = std::forward<DocumentMetadataT>(value);
42 }
43 template <typename DocumentMetadataT = DocumentMetadata>
44 AnalyzeDocumentResult& WithDocumentMetadata(DocumentMetadataT&& value) {
45 SetDocumentMetadata(std::forward<DocumentMetadataT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::Vector<Block>& GetBlocks() const { return m_blocks; }
55 template <typename BlocksT = Aws::Vector<Block>>
56 void SetBlocks(BlocksT&& value) {
57 m_blocksHasBeenSet = true;
58 m_blocks = std::forward<BlocksT>(value);
59 }
60 template <typename BlocksT = Aws::Vector<Block>>
62 SetBlocks(std::forward<BlocksT>(value));
63 return *this;
64 }
65 template <typename BlocksT = Block>
66 AnalyzeDocumentResult& AddBlocks(BlocksT&& value) {
67 m_blocksHasBeenSet = true;
68 m_blocks.emplace_back(std::forward<BlocksT>(value));
69 return *this;
70 }
72
74
77 inline const HumanLoopActivationOutput& GetHumanLoopActivationOutput() const { return m_humanLoopActivationOutput; }
78 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
79 void SetHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
80 m_humanLoopActivationOutputHasBeenSet = true;
81 m_humanLoopActivationOutput = std::forward<HumanLoopActivationOutputT>(value);
82 }
83 template <typename HumanLoopActivationOutputT = HumanLoopActivationOutput>
84 AnalyzeDocumentResult& WithHumanLoopActivationOutput(HumanLoopActivationOutputT&& value) {
85 SetHumanLoopActivationOutput(std::forward<HumanLoopActivationOutputT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAnalyzeDocumentModelVersion() const { return m_analyzeDocumentModelVersion; }
95 template <typename AnalyzeDocumentModelVersionT = Aws::String>
96 void SetAnalyzeDocumentModelVersion(AnalyzeDocumentModelVersionT&& value) {
97 m_analyzeDocumentModelVersionHasBeenSet = true;
98 m_analyzeDocumentModelVersion = std::forward<AnalyzeDocumentModelVersionT>(value);
99 }
100 template <typename AnalyzeDocumentModelVersionT = Aws::String>
101 AnalyzeDocumentResult& WithAnalyzeDocumentModelVersion(AnalyzeDocumentModelVersionT&& value) {
102 SetAnalyzeDocumentModelVersion(std::forward<AnalyzeDocumentModelVersionT>(value));
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 private:
122 DocumentMetadata m_documentMetadata;
123
124 Aws::Vector<Block> m_blocks;
125
126 HumanLoopActivationOutput m_humanLoopActivationOutput;
127
128 Aws::String m_analyzeDocumentModelVersion;
129
130 Aws::String m_requestId;
131 bool m_documentMetadataHasBeenSet = false;
132 bool m_blocksHasBeenSet = false;
133 bool m_humanLoopActivationOutputHasBeenSet = false;
134 bool m_analyzeDocumentModelVersionHasBeenSet = false;
135 bool m_requestIdHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace Textract
140} // namespace Aws
void SetDocumentMetadata(DocumentMetadataT &&value)
AnalyzeDocumentResult & WithDocumentMetadata(DocumentMetadataT &&value)
const Aws::Vector< Block > & GetBlocks() const
void SetHumanLoopActivationOutput(HumanLoopActivationOutputT &&value)
void SetAnalyzeDocumentModelVersion(AnalyzeDocumentModelVersionT &&value)
AWS_TEXTRACT_API AnalyzeDocumentResult()=default
AnalyzeDocumentResult & AddBlocks(BlocksT &&value)
const HumanLoopActivationOutput & GetHumanLoopActivationOutput() const
const Aws::String & GetAnalyzeDocumentModelVersion() const
AnalyzeDocumentResult & WithBlocks(BlocksT &&value)
AnalyzeDocumentResult & WithHumanLoopActivationOutput(HumanLoopActivationOutputT &&value)
AWS_TEXTRACT_API AnalyzeDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AnalyzeDocumentResult & WithAnalyzeDocumentModelVersion(AnalyzeDocumentModelVersionT &&value)
AnalyzeDocumentResult & WithRequestId(RequestIdT &&value)
const DocumentMetadata & GetDocumentMetadata() const
AWS_TEXTRACT_API AnalyzeDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue