AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DetectEntitiesRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/LanguageCode.h>
11#include <aws/core/utils/Array.h>
12#include <aws/comprehend/model/DocumentReaderConfig.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Comprehend
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COMPREHEND_API DetectEntitiesRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "DetectEntities"; }
34
35 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetText() const { return m_text; }
46 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
47 template<typename TextT = Aws::String>
48 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
49 template<typename TextT = Aws::String>
50 DetectEntitiesRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
52
54
61 inline LanguageCode GetLanguageCode() const { return m_languageCode; }
62 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
63 inline void SetLanguageCode(LanguageCode value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
66
68
78 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
79 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
80 template<typename EndpointArnT = Aws::String>
81 void SetEndpointArn(EndpointArnT&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::forward<EndpointArnT>(value); }
82 template<typename EndpointArnT = Aws::String>
83 DetectEntitiesRequest& WithEndpointArn(EndpointArnT&& value) { SetEndpointArn(std::forward<EndpointArnT>(value)); return *this;}
85
87
105 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
106 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
107 template<typename BytesT = Aws::Utils::ByteBuffer>
108 void SetBytes(BytesT&& value) { m_bytesHasBeenSet = true; m_bytes = std::forward<BytesT>(value); }
109 template<typename BytesT = Aws::Utils::ByteBuffer>
110 DetectEntitiesRequest& WithBytes(BytesT&& value) { SetBytes(std::forward<BytesT>(value)); return *this;}
112
114
118 inline const DocumentReaderConfig& GetDocumentReaderConfig() const { return m_documentReaderConfig; }
119 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
120 template<typename DocumentReaderConfigT = DocumentReaderConfig>
121 void SetDocumentReaderConfig(DocumentReaderConfigT&& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = std::forward<DocumentReaderConfigT>(value); }
122 template<typename DocumentReaderConfigT = DocumentReaderConfig>
123 DetectEntitiesRequest& WithDocumentReaderConfig(DocumentReaderConfigT&& value) { SetDocumentReaderConfig(std::forward<DocumentReaderConfigT>(value)); return *this;}
125 private:
126
127 Aws::String m_text;
128 bool m_textHasBeenSet = false;
129
130 LanguageCode m_languageCode{LanguageCode::NOT_SET};
131 bool m_languageCodeHasBeenSet = false;
132
133 Aws::String m_endpointArn;
134 bool m_endpointArnHasBeenSet = false;
135
136 Aws::Utils::ByteBuffer m_bytes{};
137 bool m_bytesHasBeenSet = false;
138
139 DocumentReaderConfig m_documentReaderConfig;
140 bool m_documentReaderConfigHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace Comprehend
145} // 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