AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DetectEntitiesResult.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/Entity.h>
12#include <aws/comprehend/model/DocumentTypeListItem.h>
13#include <aws/comprehend/model/Block.h>
14#include <aws/comprehend/model/ErrorsListItem.h>
15#include <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace Comprehend
30{
31namespace Model
32{
34 {
35 public:
36 AWS_COMPREHEND_API DetectEntitiesResult();
39
40
42
53 inline const Aws::Vector<Entity>& GetEntities() const{ return m_entities; }
54 inline void SetEntities(const Aws::Vector<Entity>& value) { m_entities = value; }
55 inline void SetEntities(Aws::Vector<Entity>&& value) { m_entities = std::move(value); }
56 inline DetectEntitiesResult& WithEntities(const Aws::Vector<Entity>& value) { SetEntities(value); return *this;}
57 inline DetectEntitiesResult& WithEntities(Aws::Vector<Entity>&& value) { SetEntities(std::move(value)); return *this;}
58 inline DetectEntitiesResult& AddEntities(const Entity& value) { m_entities.push_back(value); return *this; }
59 inline DetectEntitiesResult& AddEntities(Entity&& value) { m_entities.push_back(std::move(value)); return *this; }
61
63
68 inline const DocumentMetadata& GetDocumentMetadata() const{ return m_documentMetadata; }
69 inline void SetDocumentMetadata(const DocumentMetadata& value) { m_documentMetadata = value; }
70 inline void SetDocumentMetadata(DocumentMetadata&& value) { m_documentMetadata = std::move(value); }
72 inline DetectEntitiesResult& WithDocumentMetadata(DocumentMetadata&& value) { SetDocumentMetadata(std::move(value)); return *this;}
74
76
80 inline const Aws::Vector<DocumentTypeListItem>& GetDocumentType() const{ return m_documentType; }
81 inline void SetDocumentType(const Aws::Vector<DocumentTypeListItem>& value) { m_documentType = value; }
82 inline void SetDocumentType(Aws::Vector<DocumentTypeListItem>&& value) { m_documentType = std::move(value); }
85 inline DetectEntitiesResult& AddDocumentType(const DocumentTypeListItem& value) { m_documentType.push_back(value); return *this; }
86 inline DetectEntitiesResult& AddDocumentType(DocumentTypeListItem&& value) { m_documentType.push_back(std::move(value)); return *this; }
88
90
98 inline const Aws::Vector<Block>& GetBlocks() const{ return m_blocks; }
99 inline void SetBlocks(const Aws::Vector<Block>& value) { m_blocks = value; }
100 inline void SetBlocks(Aws::Vector<Block>&& value) { m_blocks = std::move(value); }
101 inline DetectEntitiesResult& WithBlocks(const Aws::Vector<Block>& value) { SetBlocks(value); return *this;}
102 inline DetectEntitiesResult& WithBlocks(Aws::Vector<Block>&& value) { SetBlocks(std::move(value)); return *this;}
103 inline DetectEntitiesResult& AddBlocks(const Block& value) { m_blocks.push_back(value); return *this; }
104 inline DetectEntitiesResult& AddBlocks(Block&& value) { m_blocks.push_back(std::move(value)); return *this; }
106
108
112 inline const Aws::Vector<ErrorsListItem>& GetErrors() const{ return m_errors; }
113 inline void SetErrors(const Aws::Vector<ErrorsListItem>& value) { m_errors = value; }
114 inline void SetErrors(Aws::Vector<ErrorsListItem>&& value) { m_errors = std::move(value); }
115 inline DetectEntitiesResult& WithErrors(const Aws::Vector<ErrorsListItem>& value) { SetErrors(value); return *this;}
116 inline DetectEntitiesResult& WithErrors(Aws::Vector<ErrorsListItem>&& value) { SetErrors(std::move(value)); return *this;}
117 inline DetectEntitiesResult& AddErrors(const ErrorsListItem& value) { m_errors.push_back(value); return *this; }
118 inline DetectEntitiesResult& AddErrors(ErrorsListItem&& value) { m_errors.push_back(std::move(value)); return *this; }
120
122
123 inline const Aws::String& GetRequestId() const{ return m_requestId; }
124 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
125 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
126 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
127 inline DetectEntitiesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
128 inline DetectEntitiesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
129 inline DetectEntitiesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
131 private:
132
133 Aws::Vector<Entity> m_entities;
134
135 DocumentMetadata m_documentMetadata;
136
138
139 Aws::Vector<Block> m_blocks;
140
142
143 Aws::String m_requestId;
144 };
145
146} // namespace Model
147} // namespace Comprehend
148} // namespace Aws
void SetBlocks(const Aws::Vector< Block > &value)
const Aws::Vector< ErrorsListItem > & GetErrors() const
DetectEntitiesResult & WithErrors(const Aws::Vector< ErrorsListItem > &value)
DetectEntitiesResult & WithDocumentMetadata(const DocumentMetadata &value)
DetectEntitiesResult & AddEntities(Entity &&value)
AWS_COMPREHEND_API DetectEntitiesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DetectEntitiesResult & WithBlocks(Aws::Vector< Block > &&value)
DetectEntitiesResult & AddEntities(const Entity &value)
DetectEntitiesResult & WithEntities(const Aws::Vector< Entity > &value)
const Aws::Vector< DocumentTypeListItem > & GetDocumentType() const
DetectEntitiesResult & WithDocumentMetadata(DocumentMetadata &&value)
DetectEntitiesResult & AddErrors(ErrorsListItem &&value)
DetectEntitiesResult & AddDocumentType(const DocumentTypeListItem &value)
void SetErrors(const Aws::Vector< ErrorsListItem > &value)
AWS_COMPREHEND_API DetectEntitiesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< Entity > & GetEntities() const
void SetDocumentMetadata(const DocumentMetadata &value)
DetectEntitiesResult & AddErrors(const ErrorsListItem &value)
const Aws::Vector< Block > & GetBlocks() const
DetectEntitiesResult & WithRequestId(const Aws::String &value)
DetectEntitiesResult & WithEntities(Aws::Vector< Entity > &&value)
DetectEntitiesResult & AddBlocks(const Block &value)
void SetDocumentMetadata(DocumentMetadata &&value)
DetectEntitiesResult & WithRequestId(Aws::String &&value)
void SetEntities(const Aws::Vector< Entity > &value)
void SetDocumentType(const Aws::Vector< DocumentTypeListItem > &value)
DetectEntitiesResult & WithDocumentType(Aws::Vector< DocumentTypeListItem > &&value)
void SetEntities(Aws::Vector< Entity > &&value)
DetectEntitiesResult & AddBlocks(Block &&value)
DetectEntitiesResult & WithRequestId(const char *value)
DetectEntitiesResult & WithErrors(Aws::Vector< ErrorsListItem > &&value)
void SetBlocks(Aws::Vector< Block > &&value)
void SetErrors(Aws::Vector< ErrorsListItem > &&value)
DetectEntitiesResult & WithBlocks(const Aws::Vector< Block > &value)
void SetDocumentType(Aws::Vector< DocumentTypeListItem > &&value)
DetectEntitiesResult & AddDocumentType(DocumentTypeListItem &&value)
const DocumentMetadata & GetDocumentMetadata() const
DetectEntitiesResult & WithDocumentType(const Aws::Vector< DocumentTypeListItem > &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