AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_LEXMODELSV2_API BatchCreateCustomVocabularyItemRequest() = default;
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 template<typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
45 template<typename BotIdT = Aws::String>
46 BatchCreateCustomVocabularyItemRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
55 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
56 template<typename BotVersionT = Aws::String>
57 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
58 template<typename BotVersionT = Aws::String>
59 BatchCreateCustomVocabularyItemRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
61
63
69 inline const Aws::String& GetLocaleId() const { return m_localeId; }
70 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
71 template<typename LocaleIdT = Aws::String>
72 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
73 template<typename LocaleIdT = Aws::String>
74 BatchCreateCustomVocabularyItemRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
76
78
82 inline const Aws::Vector<NewCustomVocabularyItem>& GetCustomVocabularyItemList() const { return m_customVocabularyItemList; }
83 inline bool CustomVocabularyItemListHasBeenSet() const { return m_customVocabularyItemListHasBeenSet; }
84 template<typename CustomVocabularyItemListT = Aws::Vector<NewCustomVocabularyItem>>
85 void SetCustomVocabularyItemList(CustomVocabularyItemListT&& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList = std::forward<CustomVocabularyItemListT>(value); }
86 template<typename CustomVocabularyItemListT = Aws::Vector<NewCustomVocabularyItem>>
87 BatchCreateCustomVocabularyItemRequest& WithCustomVocabularyItemList(CustomVocabularyItemListT&& value) { SetCustomVocabularyItemList(std::forward<CustomVocabularyItemListT>(value)); return *this;}
88 template<typename CustomVocabularyItemListT = NewCustomVocabularyItem>
89 BatchCreateCustomVocabularyItemRequest& AddCustomVocabularyItemList(CustomVocabularyItemListT&& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList.emplace_back(std::forward<CustomVocabularyItemListT>(value)); return *this; }
91 private:
92
93 Aws::String m_botId;
94 bool m_botIdHasBeenSet = false;
95
96 Aws::String m_botVersion;
97 bool m_botVersionHasBeenSet = false;
98
99 Aws::String m_localeId;
100 bool m_localeIdHasBeenSet = false;
101
102 Aws::Vector<NewCustomVocabularyItem> m_customVocabularyItemList;
103 bool m_customVocabularyItemListHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace LexModelsV2
108} // namespace Aws
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
BatchCreateCustomVocabularyItemRequest & WithCustomVocabularyItemList(CustomVocabularyItemListT &&value)
const Aws::Vector< NewCustomVocabularyItem > & GetCustomVocabularyItemList() const
BatchCreateCustomVocabularyItemRequest & WithBotVersion(BotVersionT &&value)
BatchCreateCustomVocabularyItemRequest & WithLocaleId(LocaleIdT &&value)
BatchCreateCustomVocabularyItemRequest & AddCustomVocabularyItemList(CustomVocabularyItemListT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector