AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchCreateCustomVocabularyItemRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/model/NewCustomVocabularyItem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexModelsV2
17{
18namespace 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 "BatchCreateCustomVocabularyItem"; }
33
34 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetBotId() const{ return m_botId; }
42 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
43 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
44 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
45 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
46 inline BatchCreateCustomVocabularyItemRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
47 inline BatchCreateCustomVocabularyItemRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
48 inline BatchCreateCustomVocabularyItemRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
50
52
56 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
57 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
58 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
59 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
60 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
62 inline BatchCreateCustomVocabularyItemRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
63 inline BatchCreateCustomVocabularyItemRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
65
67
73 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
74 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
75 inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
76 inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
77 inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
78 inline BatchCreateCustomVocabularyItemRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
79 inline BatchCreateCustomVocabularyItemRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
80 inline BatchCreateCustomVocabularyItemRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
82
84
88 inline const Aws::Vector<NewCustomVocabularyItem>& GetCustomVocabularyItemList() const{ return m_customVocabularyItemList; }
89 inline bool CustomVocabularyItemListHasBeenSet() const { return m_customVocabularyItemListHasBeenSet; }
90 inline void SetCustomVocabularyItemList(const Aws::Vector<NewCustomVocabularyItem>& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList = value; }
91 inline void SetCustomVocabularyItemList(Aws::Vector<NewCustomVocabularyItem>&& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList = std::move(value); }
94 inline BatchCreateCustomVocabularyItemRequest& AddCustomVocabularyItemList(const NewCustomVocabularyItem& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList.push_back(value); return *this; }
95 inline BatchCreateCustomVocabularyItemRequest& AddCustomVocabularyItemList(NewCustomVocabularyItem&& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList.push_back(std::move(value)); return *this; }
97 private:
98
99 Aws::String m_botId;
100 bool m_botIdHasBeenSet = false;
101
102 Aws::String m_botVersion;
103 bool m_botVersionHasBeenSet = false;
104
105 Aws::String m_localeId;
106 bool m_localeIdHasBeenSet = false;
107
108 Aws::Vector<NewCustomVocabularyItem> m_customVocabularyItemList;
109 bool m_customVocabularyItemListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace LexModelsV2
114} // namespace Aws
BatchCreateCustomVocabularyItemRequest & WithLocaleId(const Aws::String &value)
BatchCreateCustomVocabularyItemRequest & WithCustomVocabularyItemList(Aws::Vector< NewCustomVocabularyItem > &&value)
BatchCreateCustomVocabularyItemRequest & WithCustomVocabularyItemList(const Aws::Vector< NewCustomVocabularyItem > &value)
BatchCreateCustomVocabularyItemRequest & AddCustomVocabularyItemList(const NewCustomVocabularyItem &value)
BatchCreateCustomVocabularyItemRequest & WithBotId(const Aws::String &value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
BatchCreateCustomVocabularyItemRequest & WithLocaleId(Aws::String &&value)
BatchCreateCustomVocabularyItemRequest & WithBotVersion(Aws::String &&value)
BatchCreateCustomVocabularyItemRequest & WithBotVersion(const Aws::String &value)
BatchCreateCustomVocabularyItemRequest & WithBotVersion(const char *value)
const Aws::Vector< NewCustomVocabularyItem > & GetCustomVocabularyItemList() const
BatchCreateCustomVocabularyItemRequest & WithBotId(const char *value)
void SetCustomVocabularyItemList(Aws::Vector< NewCustomVocabularyItem > &&value)
BatchCreateCustomVocabularyItemRequest & WithBotId(Aws::String &&value)
BatchCreateCustomVocabularyItemRequest & WithLocaleId(const char *value)
void SetCustomVocabularyItemList(const Aws::Vector< NewCustomVocabularyItem > &value)
BatchCreateCustomVocabularyItemRequest & AddCustomVocabularyItemList(NewCustomVocabularyItem &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector