AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectSyntaxRequest.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/AWSVector.h>
10#include <aws/comprehend/model/SyntaxLanguageCode.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Comprehend
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_COMPREHEND_API BatchDetectSyntaxRequest();
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_COMPREHEND_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::Vector<Aws::String>& GetTextList() const{ return m_textList; }
46 inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
47 inline void SetTextList(const Aws::Vector<Aws::String>& value) { m_textListHasBeenSet = true; m_textList = value; }
48 inline void SetTextList(Aws::Vector<Aws::String>&& value) { m_textListHasBeenSet = true; m_textList = std::move(value); }
49 inline BatchDetectSyntaxRequest& WithTextList(const Aws::Vector<Aws::String>& value) { SetTextList(value); return *this;}
50 inline BatchDetectSyntaxRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
51 inline BatchDetectSyntaxRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
52 inline BatchDetectSyntaxRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
53 inline BatchDetectSyntaxRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
55
57
63 inline const SyntaxLanguageCode& GetLanguageCode() const{ return m_languageCode; }
64 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
65 inline void SetLanguageCode(const SyntaxLanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
66 inline void SetLanguageCode(SyntaxLanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
67 inline BatchDetectSyntaxRequest& WithLanguageCode(const SyntaxLanguageCode& value) { SetLanguageCode(value); return *this;}
68 inline BatchDetectSyntaxRequest& WithLanguageCode(SyntaxLanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
70 private:
71
72 Aws::Vector<Aws::String> m_textList;
73 bool m_textListHasBeenSet = false;
74
75 SyntaxLanguageCode m_languageCode;
76 bool m_languageCodeHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Comprehend
81} // namespace Aws
virtual const char * GetServiceRequestName() const override
BatchDetectSyntaxRequest & AddTextList(Aws::String &&value)
void SetTextList(Aws::Vector< Aws::String > &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectSyntaxRequest & AddTextList(const char *value)
BatchDetectSyntaxRequest & WithLanguageCode(const SyntaxLanguageCode &value)
BatchDetectSyntaxRequest & WithLanguageCode(SyntaxLanguageCode &&value)
BatchDetectSyntaxRequest & AddTextList(const Aws::String &value)
void SetLanguageCode(const SyntaxLanguageCode &value)
BatchDetectSyntaxRequest & WithTextList(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetTextList() const
BatchDetectSyntaxRequest & WithTextList(const Aws::Vector< Aws::String > &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTextList(const Aws::Vector< Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector