AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
48 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
49 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
50 inline DetectEntitiesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
51 inline DetectEntitiesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
52 inline DetectEntitiesRequest& WithText(const char* value) { SetText(value); return *this;}
54
56
63 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
64 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
65 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
66 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
67 inline DetectEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
68 inline DetectEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
70
72
82 inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
83 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
84 inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
85 inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
86 inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
87 inline DetectEntitiesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
88 inline DetectEntitiesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
89 inline DetectEntitiesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
91
93
111 inline const Aws::Utils::ByteBuffer& GetBytes() const{ return m_bytes; }
112 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
113 inline void SetBytes(const Aws::Utils::ByteBuffer& value) { m_bytesHasBeenSet = true; m_bytes = value; }
114 inline void SetBytes(Aws::Utils::ByteBuffer&& value) { m_bytesHasBeenSet = true; m_bytes = std::move(value); }
115 inline DetectEntitiesRequest& WithBytes(const Aws::Utils::ByteBuffer& value) { SetBytes(value); return *this;}
116 inline DetectEntitiesRequest& WithBytes(Aws::Utils::ByteBuffer&& value) { SetBytes(std::move(value)); return *this;}
118
120
124 inline const DocumentReaderConfig& GetDocumentReaderConfig() const{ return m_documentReaderConfig; }
125 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
126 inline void SetDocumentReaderConfig(const DocumentReaderConfig& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = value; }
127 inline void SetDocumentReaderConfig(DocumentReaderConfig&& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = std::move(value); }
131 private:
132
133 Aws::String m_text;
134 bool m_textHasBeenSet = false;
135
136 LanguageCode m_languageCode;
137 bool m_languageCodeHasBeenSet = false;
138
139 Aws::String m_endpointArn;
140 bool m_endpointArnHasBeenSet = false;
141
143 bool m_bytesHasBeenSet = false;
144
145 DocumentReaderConfig m_documentReaderConfig;
146 bool m_documentReaderConfigHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace Comprehend
151} // namespace Aws
DetectEntitiesRequest & WithText(const char *value)
DetectEntitiesRequest & WithEndpointArn(const char *value)
DetectEntitiesRequest & WithText(Aws::String &&value)
DetectEntitiesRequest & WithDocumentReaderConfig(DocumentReaderConfig &&value)
DetectEntitiesRequest & WithLanguageCode(const LanguageCode &value)
virtual const char * GetServiceRequestName() const override
DetectEntitiesRequest & WithBytes(Aws::Utils::ByteBuffer &&value)
DetectEntitiesRequest & WithBytes(const Aws::Utils::ByteBuffer &value)
DetectEntitiesRequest & WithDocumentReaderConfig(const DocumentReaderConfig &value)
void SetDocumentReaderConfig(DocumentReaderConfig &&value)
void SetBytes(const Aws::Utils::ByteBuffer &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetDocumentReaderConfig(const DocumentReaderConfig &value)
DetectEntitiesRequest & WithText(const Aws::String &value)
const DocumentReaderConfig & GetDocumentReaderConfig() const
DetectEntitiesRequest & WithLanguageCode(LanguageCode &&value)
const Aws::Utils::ByteBuffer & GetBytes() const
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DetectEntitiesRequest & WithEndpointArn(const Aws::String &value)
DetectEntitiesRequest & WithEndpointArn(Aws::String &&value)
void SetBytes(Aws::Utils::ByteBuffer &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String