AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchDetectEntitiesRequest.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/LanguageCode.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 BatchDetectEntitiesRequest();
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 "BatchDetectEntities"; }
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 BatchDetectEntitiesRequest& WithTextList(const Aws::Vector<Aws::String>& value) { SetTextList(value); return *this;}
50 inline BatchDetectEntitiesRequest& WithTextList(Aws::Vector<Aws::String>&& value) { SetTextList(std::move(value)); return *this;}
51 inline BatchDetectEntitiesRequest& AddTextList(const Aws::String& value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
52 inline BatchDetectEntitiesRequest& AddTextList(Aws::String&& value) { m_textListHasBeenSet = true; m_textList.push_back(std::move(value)); return *this; }
53 inline BatchDetectEntitiesRequest& AddTextList(const char* value) { m_textListHasBeenSet = true; m_textList.push_back(value); return *this; }
55
57
62 inline const LanguageCode& GetLanguageCode() const{ return m_languageCode; }
63 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
64 inline void SetLanguageCode(const LanguageCode& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
65 inline void SetLanguageCode(LanguageCode&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
66 inline BatchDetectEntitiesRequest& WithLanguageCode(const LanguageCode& value) { SetLanguageCode(value); return *this;}
67 inline BatchDetectEntitiesRequest& WithLanguageCode(LanguageCode&& value) { SetLanguageCode(std::move(value)); return *this;}
69 private:
70
71 Aws::Vector<Aws::String> m_textList;
72 bool m_textListHasBeenSet = false;
73
74 LanguageCode m_languageCode;
75 bool m_languageCodeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Comprehend
80} // namespace Aws
BatchDetectEntitiesRequest & AddTextList(const char *value)
BatchDetectEntitiesRequest & WithTextList(Aws::Vector< Aws::String > &&value)
BatchDetectEntitiesRequest & WithLanguageCode(const LanguageCode &value)
BatchDetectEntitiesRequest & AddTextList(Aws::String &&value)
BatchDetectEntitiesRequest & WithLanguageCode(LanguageCode &&value)
BatchDetectEntitiesRequest & WithTextList(const Aws::Vector< Aws::String > &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Aws::String > & GetTextList() const
void SetTextList(const Aws::Vector< Aws::String > &value)
BatchDetectEntitiesRequest & AddTextList(const Aws::String &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetTextList(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