AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
47 inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
48 inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
49 inline ClassifyDocumentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
50 inline ClassifyDocumentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
51 inline ClassifyDocumentRequest& WithText(const char* value) { SetText(value); return *this;}
53
55
66 inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
67 inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
68 inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
69 inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
70 inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
71 inline ClassifyDocumentRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
72 inline ClassifyDocumentRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
73 inline ClassifyDocumentRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
75
77
93 inline const Aws::Utils::ByteBuffer& GetBytes() const{ return m_bytes; }
94 inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; }
95 inline void SetBytes(const Aws::Utils::ByteBuffer& value) { m_bytesHasBeenSet = true; m_bytes = value; }
96 inline void SetBytes(Aws::Utils::ByteBuffer&& value) { m_bytesHasBeenSet = true; m_bytes = std::move(value); }
97 inline ClassifyDocumentRequest& WithBytes(const Aws::Utils::ByteBuffer& value) { SetBytes(value); return *this;}
98 inline ClassifyDocumentRequest& WithBytes(Aws::Utils::ByteBuffer&& value) { SetBytes(std::move(value)); return *this;}
100
102
106 inline const DocumentReaderConfig& GetDocumentReaderConfig() const{ return m_documentReaderConfig; }
107 inline bool DocumentReaderConfigHasBeenSet() const { return m_documentReaderConfigHasBeenSet; }
108 inline void SetDocumentReaderConfig(const DocumentReaderConfig& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = value; }
109 inline void SetDocumentReaderConfig(DocumentReaderConfig&& value) { m_documentReaderConfigHasBeenSet = true; m_documentReaderConfig = std::move(value); }
113 private:
114
115 Aws::String m_text;
116 bool m_textHasBeenSet = false;
117
118 Aws::String m_endpointArn;
119 bool m_endpointArnHasBeenSet = false;
120
122 bool m_bytesHasBeenSet = false;
123
124 DocumentReaderConfig m_documentReaderConfig;
125 bool m_documentReaderConfigHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace Comprehend
130} // namespace Aws
ClassifyDocumentRequest & WithEndpointArn(const Aws::String &value)
ClassifyDocumentRequest & WithBytes(Aws::Utils::ByteBuffer &&value)
ClassifyDocumentRequest & WithDocumentReaderConfig(const DocumentReaderConfig &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ClassifyDocumentRequest & WithDocumentReaderConfig(DocumentReaderConfig &&value)
ClassifyDocumentRequest & WithEndpointArn(const char *value)
const DocumentReaderConfig & GetDocumentReaderConfig() const
ClassifyDocumentRequest & WithText(Aws::String &&value)
ClassifyDocumentRequest & WithEndpointArn(Aws::String &&value)
ClassifyDocumentRequest & WithBytes(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetBytes() const
void SetDocumentReaderConfig(DocumentReaderConfig &&value)
ClassifyDocumentRequest & WithText(const Aws::String &value)
void SetDocumentReaderConfig(const DocumentReaderConfig &value)
ClassifyDocumentRequest & WithText(const char *value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetBytes(const Aws::Utils::ByteBuffer &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String