AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDocumentAnalysisResult.h
1
6#pragma once
7#include <aws/textract/Textract_EXPORTS.h>
8#include <aws/textract/model/DocumentMetadata.h>
9#include <aws/textract/model/JobStatus.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/textract/model/Block.h>
13#include <aws/textract/model/Warning.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace Textract
29{
30namespace Model
31{
33 {
34 public:
35 AWS_TEXTRACT_API GetDocumentAnalysisResult();
38
39
41
46 inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; }
47 inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; }
48 inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); }
50 inline GetDocumentAnalysisResult& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;}
52
54
57 inline const JobStatus& GetJobStatus() const{ return m_jobStatus; }
58 inline void SetJobStatus(const JobStatus& value) { m_jobStatus = value; }
59 inline void SetJobStatus(JobStatus&& value) { m_jobStatus = std::move(value); }
60 inline GetDocumentAnalysisResult& WithJobStatus(const JobStatus& value) { SetJobStatus(value); return *this;}
61 inline GetDocumentAnalysisResult& WithJobStatus(JobStatus&& value) { SetJobStatus(std::move(value)); return *this;}
63
65
70 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
71 inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
72 inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
73 inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
74 inline GetDocumentAnalysisResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 inline GetDocumentAnalysisResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
76 inline GetDocumentAnalysisResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78
80
83 inline const Aws::Vector<Block>& GetBlocks() const{ return m_blocks; }
84 inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocks = value; }
85 inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocks = std::move(value); }
86 inline GetDocumentAnalysisResult& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
87 inline GetDocumentAnalysisResult& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
88 inline GetDocumentAnalysisResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; }
89 inline GetDocumentAnalysisResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; }
91
93
96 inline const Aws::Vector<Warning>& GetWarnings() const{ return m_warnings; }
97 inline void SetWarnings(const Aws::Vector<Warning>& value) { m_warnings = value; }
98 inline void SetWarnings(Aws::Vector<Warning>&& value) { m_warnings = std::move(value); }
99 inline GetDocumentAnalysisResult& WithWarnings(const Aws::Vector<Warning>& value) { SetWarnings(value); return *this;}
100 inline GetDocumentAnalysisResult& WithWarnings(Aws::Vector<Warning>&& value) { SetWarnings(std::move(value)); return *this;}
101 inline GetDocumentAnalysisResult& AddWarnings(const Warning& value) { m_warnings.push_back(value); return *this; }
102 inline GetDocumentAnalysisResult& AddWarnings(Warning&& value) { m_warnings.push_back(std::move(value)); return *this; }
104
106
110 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
111 inline void SetStatusMessage(const Aws::String& value) { m_statusMessage = value; }
112 inline void SetStatusMessage(Aws::String&& value) { m_statusMessage = std::move(value); }
113 inline void SetStatusMessage(const char* value) { m_statusMessage.assign(value); }
114 inline GetDocumentAnalysisResult& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
115 inline GetDocumentAnalysisResult& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
116 inline GetDocumentAnalysisResult& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
118
120
123 inline const Aws::String& GetAnalyzeDocumentModelVersion() const{ return m_analyzeDocumentModelVersion; }
124 inline void SetAnalyzeDocumentModelVersion(const Aws::String& value) { m_analyzeDocumentModelVersion = value; }
125 inline void SetAnalyzeDocumentModelVersion(Aws::String&& value) { m_analyzeDocumentModelVersion = std::move(value); }
126 inline void SetAnalyzeDocumentModelVersion(const char* value) { m_analyzeDocumentModelVersion.assign(value); }
131
133
134 inline const Aws::String& GetRequestId() const{ return m_requestId; }
135 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
136 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
137 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
138 inline GetDocumentAnalysisResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
139 inline GetDocumentAnalysisResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
140 inline GetDocumentAnalysisResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
142 private:
143
144 DocumentMetadata m_documentMetadata;
145
146 JobStatus m_jobStatus;
147
148 Aws::String m_nextToken;
149
150 Aws::Vector<Block> m_blocks;
151
152 Aws::Vector<Warning> m_warnings;
153
154 Aws::String m_statusMessage;
155
156 Aws::String m_analyzeDocumentModelVersion;
157
158 Aws::String m_requestId;
159 };
160
161} // namespace Model
162} // namespace Textract
163} // namespace Aws
GetDocumentAnalysisResult & WithStatusMessage(const Aws::String &value)
GetDocumentAnalysisResult & AddWarnings(const Warning &value)
GetDocumentAnalysisResult & WithJobStatus(const JobStatus &value)
GetDocumentAnalysisResult & WithWarnings(const Aws::Vector< Warning > &value)
GetDocumentAnalysisResult & WithBlocks(Aws::Vector< Block > &&value)
GetDocumentAnalysisResult & WithStatusMessage(const char *value)
AWS_TEXTRACT_API GetDocumentAnalysisResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentAnalysisResult & WithAnalyzeDocumentModelVersion(Aws::String &&value)
GetDocumentAnalysisResult & WithJobStatus(JobStatus &&value)
void SetBlocks(const Aws::Vector< Block > &value)
GetDocumentAnalysisResult & WithWarnings(Aws::Vector< Warning > &&value)
void SetWarnings(const Aws::Vector< Warning > &value)
GetDocumentAnalysisResult & WithAnalyzeDocumentModelVersion(const char *value)
void SetDocumentMetadata(const DocumentMetadata &value)
GetDocumentAnalysisResult & WithRequestId(const char *value)
GetDocumentAnalysisResult & WithAnalyzeDocumentModelVersion(const Aws::String &value)
GetDocumentAnalysisResult & WithDocumentMetadata(const DocumentMetadata &value)
const Aws::Vector< Warning > & GetWarnings() const
GetDocumentAnalysisResult & WithBlocks(const Aws::Vector< Block > &value)
GetDocumentAnalysisResult & WithNextToken(const char *value)
GetDocumentAnalysisResult & AddWarnings(Warning &&value)
GetDocumentAnalysisResult & WithNextToken(const Aws::String &value)
AWS_TEXTRACT_API GetDocumentAnalysisResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDocumentAnalysisResult & WithDocumentMetadata(DocumentMetadata &&value)
GetDocumentAnalysisResult & WithStatusMessage(Aws::String &&value)
GetDocumentAnalysisResult & WithRequestId(Aws::String &&value)
GetDocumentAnalysisResult & AddBlocks(const Block &value)
GetDocumentAnalysisResult & AddBlocks(Block &&value)
GetDocumentAnalysisResult & WithRequestId(const Aws::String &value)
GetDocumentAnalysisResult & WithNextToken(Aws::String &&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