AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ClassifyDocumentRequest.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/core/utils/Array.h>
11#include <aws/comprehend/model/DocumentReaderConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Comprehend
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPREHEND_API ClassifyDocumentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ClassifyDocument"; }
33
34 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetText() const { return m_text; }
45 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
46 template<typename TextT = Aws::String>
47 void SetText(TextT&& value) { m_textHasBeenSet = true; m_text = std::forward<TextT>(value); }
48 template<typename TextT = Aws::String>
49 ClassifyDocumentRequest& WithText(TextT&& value) { SetText(std::forward<TextT>(value)); return *this;}
51
53
64 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
65 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
66 template<typename EndpointArnT = Aws::String>
67 void SetEndpointArn(EndpointArnT&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::forward<EndpointArnT>(value); }
68 template<typename EndpointArnT = Aws::String>
69 ClassifyDocumentRequest& WithEndpointArn(EndpointArnT&& value) { SetEndpointArn(std::forward<EndpointArnT>(value)); return *this;}
71
73
89 inline const Aws::Utils::ByteBuffer& GetBytes() const { return m_bytes; }
90 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
91 template<typename BytesT = Aws::Utils::ByteBuffer>
92 void SetBytes(BytesT&& value) { m_bytesHasBeenSet = true; m_bytes = std::forward<BytesT>(value); }
93 template<typename BytesT = Aws::Utils::ByteBuffer>
94 ClassifyDocumentRequest& WithBytes(BytesT&& value) { SetBytes(std::forward<BytesT>(value)); return *this;}
96
98
102 inline const DocumentReaderConfig& GetDocumentReaderConfig() const { return m_documentReaderConfig; }
103 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
104 template<typename DocumentReaderConfigT = DocumentReaderConfig>
105 void SetDocumentReaderConfig(DocumentReaderConfigT&& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = std::forward<DocumentReaderConfigT>(value); }
106 template<typename DocumentReaderConfigT = DocumentReaderConfig>
107 ClassifyDocumentRequest& WithDocumentReaderConfig(DocumentReaderConfigT&& value) { SetDocumentReaderConfig(std::forward<DocumentReaderConfigT>(value)); return *this;}
109 private:
110
111 Aws::String m_text;
112 bool m_textHasBeenSet = false;
113
114 Aws::String m_endpointArn;
115 bool m_endpointArnHasBeenSet = false;
116
117 Aws::Utils::ByteBuffer m_bytes{};
118 bool m_bytesHasBeenSet = false;
119
120 DocumentReaderConfig m_documentReaderConfig;
121 bool m_documentReaderConfigHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace Comprehend
126} // 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