AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
BatchDetectSyntaxRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/SyntaxLanguageCode.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Comprehend {
17namespace Model {
18
22 public:
23 AWS_COMPREHEND_API BatchDetectSyntaxRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "BatchDetectSyntax"; }
30
31 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::Vector<Aws::String>& GetTextList() const { return m_textList; }
42 inline bool TextListHasBeenSet() const { return m_textListHasBeenSet; }
43 template <typename TextListT = Aws::Vector<Aws::String>>
44 void SetTextList(TextListT&& value) {
45 m_textListHasBeenSet = true;
46 m_textList = std::forward<TextListT>(value);
47 }
48 template <typename TextListT = Aws::Vector<Aws::String>>
50 SetTextList(std::forward<TextListT>(value));
51 return *this;
52 }
53 template <typename TextListT = Aws::String>
55 m_textListHasBeenSet = true;
56 m_textList.emplace_back(std::forward<TextListT>(value));
57 return *this;
58 }
60
62
68 inline SyntaxLanguageCode GetLanguageCode() const { return m_languageCode; }
69 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
71 m_languageCodeHasBeenSet = true;
72 m_languageCode = value;
73 }
75 SetLanguageCode(value);
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_textList;
81
83 bool m_textListHasBeenSet = false;
84 bool m_languageCodeHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Comprehend
89} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_COMPREHEND_API Aws::String SerializePayload() const override
BatchDetectSyntaxRequest & WithTextList(TextListT &&value)
BatchDetectSyntaxRequest & AddTextList(TextListT &&value)
AWS_COMPREHEND_API BatchDetectSyntaxRequest()=default
BatchDetectSyntaxRequest & WithLanguageCode(SyntaxLanguageCode value)
const Aws::Vector< Aws::String > & GetTextList() const
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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