AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DetectEntitiesRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/DocumentReaderConfig.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/core/utils/Array.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Comprehend {
18namespace Model {
19
23 public:
24 AWS_COMPREHEND_API DetectEntitiesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DetectEntities"; }
31
32 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetText() const { return m_text; }
42 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
43 template <typename TextT = Aws::String>
44 void SetText(TextT&& value) {
45 m_textHasBeenSet = true;
46 m_text = std::forward<TextT>(value);
47 }
48 template <typename TextT = Aws::String>
50 SetText(std::forward<TextT>(value));
51 return *this;
52 }
54
56
63 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
64 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
65 inline void SetLanguageCode(LanguageCode value) {
66 m_languageCodeHasBeenSet = true;
67 m_languageCode = value;
68 }
70 SetLanguageCode(value);
71 return *this;
72 }
74
76
86 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
87 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
88 template <typename EndpointArnT = Aws::String>
89 void SetEndpointArn(EndpointArnT&& value) {
90 m_endpointArnHasBeenSet = true;
91 m_endpointArn = std::forward<EndpointArnT>(value);
92 }
93 template <typename EndpointArnT = Aws::String>
94 DetectEntitiesRequest& WithEndpointArn(EndpointArnT&& value) {
95 SetEndpointArn(std::forward<EndpointArnT>(value));
96 return *this;
97 }
99
101
119 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
120 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
121 template <typename BytesT = Aws::Utils::ByteBuffer>
122 void SetBytes(BytesT&& value) {
123 m_bytesHasBeenSet = true;
124 m_bytes = std::forward<BytesT>(value);
125 }
126 template <typename BytesT = Aws::Utils::ByteBuffer>
128 SetBytes(std::forward<BytesT>(value));
129 return *this;
130 }
132
134
138 inline const DocumentReaderConfig& GetDocumentReaderConfig() const { return m_documentReaderConfig; }
139 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
140 template <typename DocumentReaderConfigT = DocumentReaderConfig>
141 void SetDocumentReaderConfig(DocumentReaderConfigT&& value) {
142 m_documentReaderConfigHasBeenSet = true;
143 m_documentReaderConfig = std::forward<DocumentReaderConfigT>(value);
144 }
145 template <typename DocumentReaderConfigT = DocumentReaderConfig>
146 DetectEntitiesRequest& WithDocumentReaderConfig(DocumentReaderConfigT&& value) {
147 SetDocumentReaderConfig(std::forward<DocumentReaderConfigT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_text;
153
154 LanguageCode m_languageCode{LanguageCode::NOT_SET};
155
156 Aws::String m_endpointArn;
157
158 Aws::Utils::ByteBuffer m_bytes{};
159
160 DocumentReaderConfig m_documentReaderConfig;
161 bool m_textHasBeenSet = false;
162 bool m_languageCodeHasBeenSet = false;
163 bool m_endpointArnHasBeenSet = false;
164 bool m_bytesHasBeenSet = false;
165 bool m_documentReaderConfigHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace Comprehend
170} // namespace Aws
DetectEntitiesRequest & WithText(TextT &&value)
void SetDocumentReaderConfig(DocumentReaderConfigT &&value)
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API DetectEntitiesRequest()=default
DetectEntitiesRequest & WithEndpointArn(EndpointArnT &&value)
DetectEntitiesRequest & WithDocumentReaderConfig(DocumentReaderConfigT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
const DocumentReaderConfig & GetDocumentReaderConfig() const
const Aws::Utils::ByteBuffer & GetBytes() const
DetectEntitiesRequest & WithBytes(BytesT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectEntitiesRequest & WithLanguageCode(LanguageCode value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String