AWS SDK for C++  1.9.131
AWS SDK for C++
ClassifyDocumentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Comprehend
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "ClassifyDocument"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetText() const{ return m_text; }
41 
45  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
46 
50  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
51 
55  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
56 
60  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
61 
65  inline ClassifyDocumentRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
66 
70  inline ClassifyDocumentRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
71 
75  inline ClassifyDocumentRequest& WithText(const char* value) { SetText(value); return *this;}
76 
77 
81  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
82 
86  inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
87 
91  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
92 
96  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
97 
101  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
102 
106  inline ClassifyDocumentRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
107 
111  inline ClassifyDocumentRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
112 
116  inline ClassifyDocumentRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
117 
118  private:
119 
120  Aws::String m_text;
121  bool m_textHasBeenSet;
122 
123  Aws::String m_endpointArn;
124  bool m_endpointArnHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace Comprehend
129 } // namespace Aws
Aws::Comprehend::ComprehendRequest
Definition: ComprehendRequest.h:17
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Comprehend::Model::ClassifyDocumentRequest::SetEndpointArn
void SetEndpointArn(Aws::String &&value)
Definition: ClassifyDocumentRequest.h:96
Aws::Comprehend::Model::ClassifyDocumentRequest::SetText
void SetText(Aws::String &&value)
Definition: ClassifyDocumentRequest.h:55
Aws::Comprehend::Model::ClassifyDocumentRequest::WithEndpointArn
ClassifyDocumentRequest & WithEndpointArn(const char *value)
Definition: ClassifyDocumentRequest.h:116
Aws::Comprehend::Model::ClassifyDocumentRequest::WithText
ClassifyDocumentRequest & WithText(const Aws::String &value)
Definition: ClassifyDocumentRequest.h:65
Aws::Comprehend::Model::ClassifyDocumentRequest::EndpointArnHasBeenSet
bool EndpointArnHasBeenSet() const
Definition: ClassifyDocumentRequest.h:86
Aws::Comprehend::Model::ClassifyDocumentRequest::SetText
void SetText(const Aws::String &value)
Definition: ClassifyDocumentRequest.h:50
AWSString.h
Aws::Comprehend::Model::ClassifyDocumentRequest::SetText
void SetText(const char *value)
Definition: ClassifyDocumentRequest.h:60
Aws::Comprehend::Model::ClassifyDocumentRequest::WithEndpointArn
ClassifyDocumentRequest & WithEndpointArn(const Aws::String &value)
Definition: ClassifyDocumentRequest.h:106
Aws::Comprehend::Model::ClassifyDocumentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ClassifyDocumentRequest.h:30
Aws::Comprehend::Model::ClassifyDocumentRequest::GetEndpointArn
const Aws::String & GetEndpointArn() const
Definition: ClassifyDocumentRequest.h:81
ComprehendRequest.h
Aws::Comprehend::Model::ClassifyDocumentRequest::WithText
ClassifyDocumentRequest & WithText(const char *value)
Definition: ClassifyDocumentRequest.h:75
Aws::Comprehend::Model::ClassifyDocumentRequest::SetEndpointArn
void SetEndpointArn(const Aws::String &value)
Definition: ClassifyDocumentRequest.h:91
Aws::Comprehend::Model::ClassifyDocumentRequest
Definition: ClassifyDocumentRequest.h:22
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::ClassifyDocumentRequest::SetEndpointArn
void SetEndpointArn(const char *value)
Definition: ClassifyDocumentRequest.h:101
Aws::Comprehend::Model::ClassifyDocumentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Comprehend::Model::ClassifyDocumentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::ClassifyDocumentRequest::TextHasBeenSet
bool TextHasBeenSet() const
Definition: ClassifyDocumentRequest.h:45
Aws::Comprehend::Model::ClassifyDocumentRequest::WithText
ClassifyDocumentRequest & WithText(Aws::String &&value)
Definition: ClassifyDocumentRequest.h:70
Aws::Comprehend::Model::ClassifyDocumentRequest::GetText
const Aws::String & GetText() const
Definition: ClassifyDocumentRequest.h:40
Aws::Comprehend::Model::ClassifyDocumentRequest::WithEndpointArn
ClassifyDocumentRequest & WithEndpointArn(Aws::String &&value)
Definition: ClassifyDocumentRequest.h:111
Aws::Comprehend::Model::ClassifyDocumentRequest::ClassifyDocumentRequest
ClassifyDocumentRequest()