AWS SDK for C++  1.9.131
AWS SDK for C++
DetectPiiEntitiesRequest.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 "DetectPiiEntities"; }
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 DetectPiiEntitiesRequest& WithText(const Aws::String& value) { SetText(value); return *this;}
73 
78  inline DetectPiiEntitiesRequest& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;}
79 
84  inline DetectPiiEntitiesRequest& WithText(const char* value) { SetText(value); return *this;}
85 
86 
90  inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
91 
95  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
96 
100  inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
101 
105  inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
106 
110  inline DetectPiiEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
111 
115  inline DetectPiiEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::String m_text;
120  bool m_textHasBeenSet;
121 
122  LanguageCode m_languageCode;
123  bool m_languageCodeHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace Comprehend
128 } // namespace Aws
Aws::Comprehend::Model::DetectPiiEntitiesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DetectPiiEntitiesRequest.h:31
Aws::Comprehend::Model::DetectPiiEntitiesRequest::GetText
const Aws::String & GetText() const
Definition: DetectPiiEntitiesRequest.h:42
Aws::Comprehend::Model::DetectPiiEntitiesRequest::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: DetectPiiEntitiesRequest.h:95
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::DetectPiiEntitiesRequest::SetLanguageCode
void SetLanguageCode(const LanguageCode &value)
Definition: DetectPiiEntitiesRequest.h:100
Aws::Comprehend::Model::DetectPiiEntitiesRequest::TextHasBeenSet
bool TextHasBeenSet() const
Definition: DetectPiiEntitiesRequest.h:48
Aws::Comprehend::Model::DetectPiiEntitiesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Comprehend::Model::DetectPiiEntitiesRequest::SetText
void SetText(Aws::String &&value)
Definition: DetectPiiEntitiesRequest.h:60
Aws::Comprehend::Model::DetectPiiEntitiesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Comprehend::Model::DetectPiiEntitiesRequest::WithText
DetectPiiEntitiesRequest & WithText(const Aws::String &value)
Definition: DetectPiiEntitiesRequest.h:72
Aws::Comprehend::Model::DetectPiiEntitiesRequest
Definition: DetectPiiEntitiesRequest.h:23
Aws::Comprehend::Model::DetectPiiEntitiesRequest::WithText
DetectPiiEntitiesRequest & WithText(const char *value)
Definition: DetectPiiEntitiesRequest.h:84
Aws::Comprehend::Model::LanguageCode
LanguageCode
Definition: LanguageCode.h:17
AWSString.h
LanguageCode.h
ComprehendRequest.h
Aws::Comprehend::Model::DetectPiiEntitiesRequest::GetLanguageCode
const LanguageCode & GetLanguageCode() const
Definition: DetectPiiEntitiesRequest.h:90
Aws::Comprehend::Model::DetectPiiEntitiesRequest::WithLanguageCode
DetectPiiEntitiesRequest & WithLanguageCode(LanguageCode &&value)
Definition: DetectPiiEntitiesRequest.h:115
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::DetectPiiEntitiesRequest::WithText
DetectPiiEntitiesRequest & WithText(Aws::String &&value)
Definition: DetectPiiEntitiesRequest.h:78
Aws::Comprehend::Model::DetectPiiEntitiesRequest::SetLanguageCode
void SetLanguageCode(LanguageCode &&value)
Definition: DetectPiiEntitiesRequest.h:105
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::DetectPiiEntitiesRequest::DetectPiiEntitiesRequest
DetectPiiEntitiesRequest()
Aws::Comprehend::Model::DetectPiiEntitiesRequest::SetText
void SetText(const char *value)
Definition: DetectPiiEntitiesRequest.h:66
Aws::Comprehend::Model::DetectPiiEntitiesRequest::SetText
void SetText(const Aws::String &value)
Definition: DetectPiiEntitiesRequest.h:54
Aws::Comprehend::Model::DetectPiiEntitiesRequest::WithLanguageCode
DetectPiiEntitiesRequest & WithLanguageCode(const LanguageCode &value)
Definition: DetectPiiEntitiesRequest.h:110