AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClassifyDocumentResult.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/comprehend/model/DocumentMetadata.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/comprehend/model/DocumentClass.h>
12#include <aws/comprehend/model/DocumentLabel.h>
13#include <aws/comprehend/model/DocumentTypeListItem.h>
14#include <aws/comprehend/model/ErrorsListItem.h>
15#include <aws/comprehend/model/WarningsListItem.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace Comprehend
31{
32namespace Model
33{
35 {
36 public:
37 AWS_COMPREHEND_API ClassifyDocumentResult();
40
41
43
52 inline const Aws::Vector<DocumentClass>& GetClasses() const{ return m_classes; }
53 inline void SetClasses(const Aws::Vector<DocumentClass>& value) { m_classes = value; }
54 inline void SetClasses(Aws::Vector<DocumentClass>&& value) { m_classes = std::move(value); }
55 inline ClassifyDocumentResult& WithClasses(const Aws::Vector<DocumentClass>& value) { SetClasses(value); return *this;}
56 inline ClassifyDocumentResult& WithClasses(Aws::Vector<DocumentClass>&& value) { SetClasses(std::move(value)); return *this;}
57 inline ClassifyDocumentResult& AddClasses(const DocumentClass& value) { m_classes.push_back(value); return *this; }
58 inline ClassifyDocumentResult& AddClasses(DocumentClass&& value) { m_classes.push_back(std::move(value)); return *this; }
60
62
69 inline const Aws::Vector<DocumentLabel>& GetLabels() const{ return m_labels; }
70 inline void SetLabels(const Aws::Vector<DocumentLabel>& value) { m_labels = value; }
71 inline void SetLabels(Aws::Vector<DocumentLabel>&& value) { m_labels = std::move(value); }
72 inline ClassifyDocumentResult& WithLabels(const Aws::Vector<DocumentLabel>& value) { SetLabels(value); return *this;}
73 inline ClassifyDocumentResult& WithLabels(Aws::Vector<DocumentLabel>&& value) { SetLabels(std::move(value)); return *this;}
74 inline ClassifyDocumentResult& AddLabels(const DocumentLabel& value) { m_labels.push_back(value); return *this; }
75 inline ClassifyDocumentResult& AddLabels(DocumentLabel&& value) { m_labels.push_back(std::move(value)); return *this; }
77
79
83 inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; }
84 inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; }
85 inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); }
87 inline ClassifyDocumentResult& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;}
89
91
96 inline const Aws::Vector<DocumentTypeListItem>& GetDocumentType() const{ return m_documentType; }
97 inline void SetDocumentType(const Aws::Vector<DocumentTypeListItem>& value) { m_documentType = value; }
98 inline void SetDocumentType(Aws::Vector<DocumentTypeListItem>&& value) { m_documentType = std::move(value); }
101 inline ClassifyDocumentResult& AddDocumentType(const DocumentTypeListItem& value) { m_documentType.push_back(value); return *this; }
102 inline ClassifyDocumentResult& AddDocumentType(DocumentTypeListItem&& value) { m_documentType.push_back(std::move(value)); return *this; }
104
106
110 inline const Aws::Vector<ErrorsListItem>& GetErrors() const{ return m_errors; }
111 inline void SetErrors(const Aws::Vector<ErrorsListItem>& value) { m_errors = value; }
112 inline void SetErrors(Aws::Vector<ErrorsListItem>&& value) { m_errors = std::move(value); }
113 inline ClassifyDocumentResult& WithErrors(const Aws::Vector<ErrorsListItem>& value) { SetErrors(value); return *this;}
114 inline ClassifyDocumentResult& WithErrors(Aws::Vector<ErrorsListItem>&& value) { SetErrors(std::move(value)); return *this;}
115 inline ClassifyDocumentResult& AddErrors(const ErrorsListItem& value) { m_errors.push_back(value); return *this; }
116 inline ClassifyDocumentResult& AddErrors(ErrorsListItem&& value) { m_errors.push_back(std::move(value)); return *this; }
118
120
127 inline const Aws::Vector<WarningsListItem>& GetWarnings() const{ return m_warnings; }
128 inline void SetWarnings(const Aws::Vector<WarningsListItem>& value) { m_warnings = value; }
129 inline void SetWarnings(Aws::Vector<WarningsListItem>&& value) { m_warnings = std::move(value); }
131 inline ClassifyDocumentResult& WithWarnings(Aws::Vector<WarningsListItem>&& value) { SetWarnings(std::move(value)); return *this;}
132 inline ClassifyDocumentResult& AddWarnings(const WarningsListItem& value) { m_warnings.push_back(value); return *this; }
133 inline ClassifyDocumentResult& AddWarnings(WarningsListItem&& value) { m_warnings.push_back(std::move(value)); return *this; }
135
137
138 inline const Aws::String& GetRequestId() const{ return m_requestId; }
139 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
140 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
141 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
142 inline ClassifyDocumentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
143 inline ClassifyDocumentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
144 inline ClassifyDocumentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
146 private:
147
149
151
152 DocumentMetadata m_documentMetadata;
153
155
157
159
160 Aws::String m_requestId;
161 };
162
163} // namespace Model
164} // namespace Comprehend
165} // namespace Aws
void SetClasses(const Aws::Vector< DocumentClass > &value)
void SetDocumentType(Aws::Vector< DocumentTypeListItem > &&value)
ClassifyDocumentResult & WithDocumentMetadata(const DocumentMetadata &value)
void SetDocumentMetadata(const DocumentMetadata &value)
void SetWarnings(const Aws::Vector< WarningsListItem > &value)
const DocumentMetadata & GetDocumentMetadata() const
void SetLabels(const Aws::Vector< DocumentLabel > &value)
ClassifyDocumentResult & WithRequestId(const Aws::String &value)
ClassifyDocumentResult & AddDocumentType(DocumentTypeListItem &&value)
void SetDocumentType(const Aws::Vector< DocumentTypeListItem > &value)
ClassifyDocumentResult & WithDocumentType(const Aws::Vector< DocumentTypeListItem > &value)
ClassifyDocumentResult & AddDocumentType(const DocumentTypeListItem &value)
ClassifyDocumentResult & WithErrors(Aws::Vector< ErrorsListItem > &&value)
ClassifyDocumentResult & AddLabels(DocumentLabel &&value)
ClassifyDocumentResult & AddWarnings(const WarningsListItem &value)
ClassifyDocumentResult & WithErrors(const Aws::Vector< ErrorsListItem > &value)
ClassifyDocumentResult & WithRequestId(Aws::String &&value)
void SetErrors(const Aws::Vector< ErrorsListItem > &value)
ClassifyDocumentResult & WithDocumentMetadata(DocumentMetadata &&value)
ClassifyDocumentResult & WithLabels(const Aws::Vector< DocumentLabel > &value)
ClassifyDocumentResult & AddErrors(ErrorsListItem &&value)
AWS_COMPREHEND_API ClassifyDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ClassifyDocumentResult & WithClasses(const Aws::Vector< DocumentClass > &value)
ClassifyDocumentResult & AddClasses(DocumentClass &&value)
ClassifyDocumentResult & WithLabels(Aws::Vector< DocumentLabel > &&value)
void SetClasses(Aws::Vector< DocumentClass > &&value)
ClassifyDocumentResult & WithWarnings(Aws::Vector< WarningsListItem > &&value)
ClassifyDocumentResult & AddLabels(const DocumentLabel &value)
const Aws::Vector< DocumentLabel > & GetLabels() const
ClassifyDocumentResult & AddClasses(const DocumentClass &value)
const Aws::Vector< DocumentTypeListItem > & GetDocumentType() const
void SetLabels(Aws::Vector< DocumentLabel > &&value)
ClassifyDocumentResult & AddErrors(const ErrorsListItem &value)
const Aws::Vector< WarningsListItem > & GetWarnings() const
ClassifyDocumentResult & WithWarnings(const Aws::Vector< WarningsListItem > &value)
AWS_COMPREHEND_API ClassifyDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< DocumentClass > & GetClasses() const
void SetWarnings(Aws::Vector< WarningsListItem > &&value)
void SetErrors(Aws::Vector< ErrorsListItem > &&value)
ClassifyDocumentResult & WithDocumentType(Aws::Vector< DocumentTypeListItem > &&value)
ClassifyDocumentResult & AddWarnings(WarningsListItem &&value)
ClassifyDocumentResult & WithClasses(Aws::Vector< DocumentClass > &&value)
ClassifyDocumentResult & WithRequestId(const char *value)
const Aws::Vector< ErrorsListItem > & GetErrors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue