AWS SDK for C++  1.8.126
AWS SDK for C++
ClassifyDocumentResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Comprehend
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
43  inline const Aws::Vector<DocumentClass>& GetClasses() const{ return m_classes; }
44 
51  inline void SetClasses(const Aws::Vector<DocumentClass>& value) { m_classes = value; }
52 
59  inline void SetClasses(Aws::Vector<DocumentClass>&& value) { m_classes = std::move(value); }
60 
67  inline ClassifyDocumentResult& WithClasses(const Aws::Vector<DocumentClass>& value) { SetClasses(value); return *this;}
68 
75  inline ClassifyDocumentResult& WithClasses(Aws::Vector<DocumentClass>&& value) { SetClasses(std::move(value)); return *this;}
76 
83  inline ClassifyDocumentResult& AddClasses(const DocumentClass& value) { m_classes.push_back(value); return *this; }
84 
91  inline ClassifyDocumentResult& AddClasses(DocumentClass&& value) { m_classes.push_back(std::move(value)); return *this; }
92 
93 
101  inline const Aws::Vector<DocumentLabel>& GetLabels() const{ return m_labels; }
102 
110  inline void SetLabels(const Aws::Vector<DocumentLabel>& value) { m_labels = value; }
111 
119  inline void SetLabels(Aws::Vector<DocumentLabel>&& value) { m_labels = std::move(value); }
120 
128  inline ClassifyDocumentResult& WithLabels(const Aws::Vector<DocumentLabel>& value) { SetLabels(value); return *this;}
129 
137  inline ClassifyDocumentResult& WithLabels(Aws::Vector<DocumentLabel>&& value) { SetLabels(std::move(value)); return *this;}
138 
146  inline ClassifyDocumentResult& AddLabels(const DocumentLabel& value) { m_labels.push_back(value); return *this; }
147 
155  inline ClassifyDocumentResult& AddLabels(DocumentLabel&& value) { m_labels.push_back(std::move(value)); return *this; }
156 
157  private:
158 
159  Aws::Vector<DocumentClass> m_classes;
160 
162  };
163 
164 } // namespace Model
165 } // namespace Comprehend
166 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Comprehend::Model::DocumentClass
Definition: DocumentClass.h:33
Aws::Comprehend::Model::ClassifyDocumentResult
Definition: ClassifyDocumentResult.h:30
Aws::Comprehend::Model::ClassifyDocumentResult::WithClasses
ClassifyDocumentResult & WithClasses(const Aws::Vector< DocumentClass > &value)
Definition: ClassifyDocumentResult.h:67
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Comprehend::Model::ClassifyDocumentResult::SetClasses
void SetClasses(Aws::Vector< DocumentClass > &&value)
Definition: ClassifyDocumentResult.h:59
Aws::Comprehend::Model::ClassifyDocumentResult::SetLabels
void SetLabels(Aws::Vector< DocumentLabel > &&value)
Definition: ClassifyDocumentResult.h:119
Aws::Comprehend::Model::DocumentLabel
Definition: DocumentLabel.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Comprehend::Model::ClassifyDocumentResult::ClassifyDocumentResult
ClassifyDocumentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Comprehend::Model::ClassifyDocumentResult::SetClasses
void SetClasses(const Aws::Vector< DocumentClass > &value)
Definition: ClassifyDocumentResult.h:51
Aws::Comprehend::Model::ClassifyDocumentResult::AddClasses
ClassifyDocumentResult & AddClasses(const DocumentClass &value)
Definition: ClassifyDocumentResult.h:83
Aws::Comprehend::Model::ClassifyDocumentResult::WithLabels
ClassifyDocumentResult & WithLabels(Aws::Vector< DocumentLabel > &&value)
Definition: ClassifyDocumentResult.h:137
DocumentLabel.h
Aws::Comprehend::Model::ClassifyDocumentResult::WithClasses
ClassifyDocumentResult & WithClasses(Aws::Vector< DocumentClass > &&value)
Definition: ClassifyDocumentResult.h:75
Aws::Comprehend::Model::ClassifyDocumentResult::operator=
ClassifyDocumentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Comprehend::Model::ClassifyDocumentResult::AddLabels
ClassifyDocumentResult & AddLabels(const DocumentLabel &value)
Definition: ClassifyDocumentResult.h:146
Aws::Comprehend::Model::ClassifyDocumentResult::ClassifyDocumentResult
ClassifyDocumentResult()
Aws::Comprehend::Model::ClassifyDocumentResult::GetLabels
const Aws::Vector< DocumentLabel > & GetLabels() const
Definition: ClassifyDocumentResult.h:101
Aws::Comprehend::Model::ClassifyDocumentResult::SetLabels
void SetLabels(const Aws::Vector< DocumentLabel > &value)
Definition: ClassifyDocumentResult.h:110
DocumentClass.h
Comprehend_EXPORTS.h
Aws::Comprehend::Model::ClassifyDocumentResult::GetClasses
const Aws::Vector< DocumentClass > & GetClasses() const
Definition: ClassifyDocumentResult.h:43
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::ClassifyDocumentResult::WithLabels
ClassifyDocumentResult & WithLabels(const Aws::Vector< DocumentLabel > &value)
Definition: ClassifyDocumentResult.h:128
Aws::Comprehend::Model::ClassifyDocumentResult::AddLabels
ClassifyDocumentResult & AddLabels(DocumentLabel &&value)
Definition: ClassifyDocumentResult.h:155
Aws::Comprehend::Model::ClassifyDocumentResult::AddClasses
ClassifyDocumentResult & AddClasses(DocumentClass &&value)
Definition: ClassifyDocumentResult.h:91