AWS SDK for C++  1.8.129
AWS SDK for C++
BatchDetectSyntaxRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Comprehend
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "BatchDetectSyntax"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::Vector<Aws::String>& GetTextList() const{ return m_textList; }
45 
51  inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
52 
58  inline void SetTextList(const Aws::Vector<Aws::String>& value) { m_textListHasBeenSet = true; m_textList = value; }
59 
65  inline void SetTextList(Aws::Vector<Aws::String>&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); }
66 
72  inline BatchDetectSyntaxRequest& WithTextList(const Aws::Vector<Aws::String>& value) { SetTextList(value); return *this;}
73 
79  inline BatchDetectSyntaxRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
80 
86  inline BatchDetectSyntaxRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
87 
93  inline BatchDetectSyntaxRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
94 
100  inline BatchDetectSyntaxRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
101 
102 
109  inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; }
110 
117  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
118 
125  inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
126 
133  inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
134 
141  inline BatchDetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;}
142 
149  inline BatchDetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
150 
151  private:
152 
153  Aws::Vector<Aws::String> m_textList;
154  bool m_textListHasBeenSet;
155 
156  SyntaxLanguageCode m_languageCode;
157  bool m_languageCodeHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace Comprehend
162 } // namespace Aws
Aws::Comprehend::Model::BatchDetectSyntaxRequest::SetLanguageCode
void SetLanguageCode(SyntaxLanguageCode &&value)
Definition: BatchDetectSyntaxRequest.h:133
Aws::Comprehend::ComprehendRequest
Definition: ComprehendRequest.h:17
Aws::Comprehend::Model::BatchDetectSyntaxRequest::SetTextList
void SetTextList(Aws::Vector< Aws::String > &&value)
Definition: BatchDetectSyntaxRequest.h:65
Aws::Comprehend::Model::BatchDetectSyntaxRequest::WithTextList
BatchDetectSyntaxRequest & WithTextList(const Aws::Vector< Aws::String > &value)
Definition: BatchDetectSyntaxRequest.h:72
Aws::Comprehend::Model::BatchDetectSyntaxRequest::GetLanguageCode
const SyntaxLanguageCode & GetLanguageCode() const
Definition: BatchDetectSyntaxRequest.h:109
SyntaxLanguageCode.h
Aws::Comprehend::Model::BatchDetectSyntaxRequest::AddTextList
BatchDetectSyntaxRequest & AddTextList(Aws::String &&value)
Definition: BatchDetectSyntaxRequest.h:93
Aws::Comprehend::Model::BatchDetectSyntaxRequest::SerializePayload
Aws::String SerializePayload() const override
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::BatchDetectSyntaxRequest::TextListHasBeenSet
bool TextListHasBeenSet() const
Definition: BatchDetectSyntaxRequest.h:51
Aws::Comprehend::Model::BatchDetectSyntaxRequest::AddTextList
BatchDetectSyntaxRequest & AddTextList(const Aws::String &value)
Definition: BatchDetectSyntaxRequest.h:86
Aws::Comprehend::Model::BatchDetectSyntaxRequest::BatchDetectSyntaxRequest
BatchDetectSyntaxRequest()
Aws::Comprehend::Model::BatchDetectSyntaxRequest::SetTextList
void SetTextList(const Aws::Vector< Aws::String > &value)
Definition: BatchDetectSyntaxRequest.h:58
Aws::Comprehend::Model::BatchDetectSyntaxRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::Comprehend::Model::BatchDetectSyntaxRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchDetectSyntaxRequest.h:32
Aws::Comprehend::Model::BatchDetectSyntaxRequest::WithLanguageCode
BatchDetectSyntaxRequest & WithLanguageCode(const SyntaxLanguageCode &value)
Definition: BatchDetectSyntaxRequest.h:141
Aws::Comprehend::Model::BatchDetectSyntaxRequest::SetLanguageCode
void SetLanguageCode(const SyntaxLanguageCode &value)
Definition: BatchDetectSyntaxRequest.h:125
Aws::Comprehend::Model::BatchDetectSyntaxRequest
Definition: BatchDetectSyntaxRequest.h:24
AWSString.h
ComprehendRequest.h
Aws::Comprehend::Model::BatchDetectSyntaxRequest::AddTextList
BatchDetectSyntaxRequest & AddTextList(const char *value)
Definition: BatchDetectSyntaxRequest.h:100
Aws::Comprehend::Model::BatchDetectSyntaxRequest::WithLanguageCode
BatchDetectSyntaxRequest & WithLanguageCode(SyntaxLanguageCode &&value)
Definition: BatchDetectSyntaxRequest.h:149
Comprehend_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::BatchDetectSyntaxRequest::GetTextList
const Aws::Vector< Aws::String > & GetTextList() const
Definition: BatchDetectSyntaxRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::BatchDetectSyntaxRequest::WithTextList
BatchDetectSyntaxRequest & WithTextList(Aws::Vector< Aws::String > &&value)
Definition: BatchDetectSyntaxRequest.h:79
Aws::Comprehend::Model::BatchDetectSyntaxRequest::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: BatchDetectSyntaxRequest.h:117
Aws::Comprehend::Model::SyntaxLanguageCode
SyntaxLanguageCode
Definition: SyntaxLanguageCode.h:17