AWS SDK for C++  1.9.66
AWS SDK for C++
DetectEntitiesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Comprehend
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DetectEntities"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetText() const{ return m_text; }
43 
48  inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
49 
54  inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; }
55 
60  inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); }
61 
66  inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); }
67 
72  inline DetectEntitiesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
73 
78  inline DetectEntitiesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
79 
84  inline DetectEntitiesRequest& WithText(const char* value) { SetText(value); return *this;}
85 
86 
94  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
95 
103  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
104 
112  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
113 
121  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
122 
130  inline DetectEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
131 
139  inline DetectEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
140 
141 
150  inline const Aws::String& GetEndpointArn() const{ return m_endpointArn; }
151 
160  inline bool EndpointArnHasBeenSet() const { return m_endpointArnHasBeenSet; }
161 
170  inline void SetEndpointArn(const Aws::String& value) { m_endpointArnHasBeenSet = true; m_endpointArn = value; }
171 
180  inline void SetEndpointArn(Aws::String&& value) { m_endpointArnHasBeenSet = true; m_endpointArn = std::move(value); }
181 
190  inline void SetEndpointArn(const char* value) { m_endpointArnHasBeenSet = true; m_endpointArn.assign(value); }
191 
200  inline DetectEntitiesRequest& WithEndpointArn(const Aws::String& value) { SetEndpointArn(value); return *this;}
201 
210  inline DetectEntitiesRequest& WithEndpointArn(Aws::String&& value) { SetEndpointArn(std::move(value)); return *this;}
211 
220  inline DetectEntitiesRequest& WithEndpointArn(const char* value) { SetEndpointArn(value); return *this;}
221 
222  private:
223 
224  Aws::String m_text;
225  bool m_textHasBeenSet;
226 
227  LanguageCode m_languageCode;
228  bool m_languageCodeHasBeenSet;
229 
230  Aws::String m_endpointArn;
231  bool m_endpointArnHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace Comprehend
236 } // namespace Aws
Aws::Comprehend::Model::DetectEntitiesRequest::GetEndpointArn
const Aws::String & GetEndpointArn() const
Definition: DetectEntitiesRequest.h:150
Aws::Comprehend::Model::DetectEntitiesRequest::SetEndpointArn
void SetEndpointArn(const char *value)
Definition: DetectEntitiesRequest.h:190
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::DetectEntitiesRequest::WithText
DetectEntitiesRequest & WithText(const char *value)
Definition: DetectEntitiesRequest.h:84
Aws::Comprehend::Model::DetectEntitiesRequest::WithLanguageCode
DetectEntitiesRequest & WithLanguageCode(LanguageCode &&value)
Definition: DetectEntitiesRequest.h:139
Aws::Comprehend::Model::DetectEntitiesRequest::WithEndpointArn
DetectEntitiesRequest & WithEndpointArn(Aws::String &&value)
Definition: DetectEntitiesRequest.h:210
Aws::Comprehend::Model::DetectEntitiesRequest::SetLanguageCode
void SetLanguageCode(const LanguageCode &value)
Definition: DetectEntitiesRequest.h:112
Aws::Comprehend::Model::DetectEntitiesRequest
Definition: DetectEntitiesRequest.h:23
Aws::Comprehend::Model::DetectEntitiesRequest::WithEndpointArn
DetectEntitiesRequest & WithEndpointArn(const Aws::String &value)
Definition: DetectEntitiesRequest.h:200
Aws::Comprehend::Model::DetectEntitiesRequest::WithLanguageCode
DetectEntitiesRequest & WithLanguageCode(const LanguageCode &value)
Definition: DetectEntitiesRequest.h:130
Aws::Comprehend::Model::DetectEntitiesRequest::WithText
DetectEntitiesRequest & WithText(Aws::String &&value)
Definition: DetectEntitiesRequest.h:78
Aws::Comprehend::Model::DetectEntitiesRequest::SetText
void SetText(Aws::String &&value)
Definition: DetectEntitiesRequest.h:60
Aws::Comprehend::Model::DetectEntitiesRequest::EndpointArnHasBeenSet
bool EndpointArnHasBeenSet() const
Definition: DetectEntitiesRequest.h:160
Aws::Comprehend::Model::DetectEntitiesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectEntitiesRequest.h:31
Aws::Comprehend::Model::DetectEntitiesRequest::SetText
void SetText(const Aws::String &value)
Definition: DetectEntitiesRequest.h:54
Aws::Comprehend::Model::DetectEntitiesRequest::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: DetectEntitiesRequest.h:103
Aws::Comprehend::Model::LanguageCode
LanguageCode
Definition: LanguageCode.h:17
Aws::Comprehend::Model::DetectEntitiesRequest::GetLanguageCode
const LanguageCode & GetLanguageCode() const
Definition: DetectEntitiesRequest.h:94
AWSString.h
Aws::Comprehend::Model::DetectEntitiesRequest::WithText
DetectEntitiesRequest & WithText(const Aws::String &value)
Definition: DetectEntitiesRequest.h:72
LanguageCode.h
Aws::Comprehend::Model::DetectEntitiesRequest::SetText
void SetText(const char *value)
Definition: DetectEntitiesRequest.h:66
ComprehendRequest.h
Aws::Comprehend::Model::DetectEntitiesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Comprehend::Model::DetectEntitiesRequest::DetectEntitiesRequest
DetectEntitiesRequest()
Aws::Comprehend::Model::DetectEntitiesRequest::SetEndpointArn
void SetEndpointArn(const Aws::String &value)
Definition: DetectEntitiesRequest.h:170
Aws::Comprehend::Model::DetectEntitiesRequest::WithEndpointArn
DetectEntitiesRequest & WithEndpointArn(const char *value)
Definition: DetectEntitiesRequest.h:220
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::DetectEntitiesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Comprehend::Model::DetectEntitiesRequest::GetText
const Aws::String & GetText() const
Definition: DetectEntitiesRequest.h:42
Aws::Comprehend::Model::DetectEntitiesRequest::TextHasBeenSet
bool TextHasBeenSet() const
Definition: DetectEntitiesRequest.h:48
Aws::Comprehend::Model::DetectEntitiesRequest::SetLanguageCode
void SetLanguageCode(LanguageCode &&value)
Definition: DetectEntitiesRequest.h:121
Aws::Comprehend::Model::DetectEntitiesRequest::SetEndpointArn
void SetEndpointArn(Aws::String &&value)
Definition: DetectEntitiesRequest.h:180