AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ClassifyDocumentRequest.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/core/utils/Array.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Comprehend {
17namespace Model {
18
22 public:
23 AWS_COMPREHEND_API ClassifyDocumentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ClassifyDocument"; }
30
31 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::String>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::String>
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
53
55
66 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
67 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
68 template <typename EndpointArnT = Aws::String>
69 void SetEndpointArn(EndpointArnT&& value) {
70 m_endpointArnHasBeenSet = true;
71 m_endpointArn = std::forward<EndpointArnT>(value);
72 }
73 template <typename EndpointArnT = Aws::String>
75 SetEndpointArn(std::forward<EndpointArnT>(value));
76 return *this;
77 }
79
81
97 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
98 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
99 template <typename BytesT = Aws::Utils::ByteBuffer>
100 void SetBytes(BytesT&& value) {
101 m_bytesHasBeenSet = true;
102 m_bytes = std::forward<BytesT>(value);
103 }
104 template <typename BytesT = Aws::Utils::ByteBuffer>
106 SetBytes(std::forward<BytesT>(value));
107 return *this;
108 }
110
112
116 inline const DocumentReaderConfig& GetDocumentReaderConfig() const { return m_documentReaderConfig; }
117 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
118 template <typename DocumentReaderConfigT = DocumentReaderConfig>
119 void SetDocumentReaderConfig(DocumentReaderConfigT&& value) {
120 m_documentReaderConfigHasBeenSet = true;
121 m_documentReaderConfig = std::forward<DocumentReaderConfigT>(value);
122 }
123 template <typename DocumentReaderConfigT = DocumentReaderConfig>
124 ClassifyDocumentRequest& WithDocumentReaderConfig(DocumentReaderConfigT&& value) {
125 SetDocumentReaderConfig(std::forward<DocumentReaderConfigT>(value));
126 return *this;
127 }
129 private:
130 Aws::String m_text;
131
132 Aws::String m_endpointArn;
133
134 Aws::Utils::ByteBuffer m_bytes{};
135
136 DocumentReaderConfig m_documentReaderConfig;
137 bool m_textHasBeenSet = false;
138 bool m_endpointArnHasBeenSet = false;
139 bool m_bytesHasBeenSet = false;
140 bool m_documentReaderConfigHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace Comprehend
145} // namespace Aws
AWS_COMPREHEND_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ClassifyDocumentRequest & WithEndpointArn(EndpointArnT &&value)
ClassifyDocumentRequest & WithBytes(BytesT &&value)
const DocumentReaderConfig & GetDocumentReaderConfig() const
ClassifyDocumentRequest & WithText(TextT &&value)
const Aws::Utils::ByteBuffer & GetBytes() const
AWS_COMPREHEND_API ClassifyDocumentRequest()=default
ClassifyDocumentRequest & WithDocumentReaderConfig(DocumentReaderConfigT &&value)
void SetDocumentReaderConfig(DocumentReaderConfigT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String