AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchUpdateCustomVocabularyItemRequest.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/CustomVocabularyItem.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 "BatchUpdateCustomVocabularyItem"; }
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 BatchUpdateCustomVocabularyItemRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
47 inline BatchUpdateCustomVocabularyItemRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
48 inline BatchUpdateCustomVocabularyItemRequest& 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 BatchUpdateCustomVocabularyItemRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
63 inline BatchUpdateCustomVocabularyItemRequest& 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 BatchUpdateCustomVocabularyItemRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
79 inline BatchUpdateCustomVocabularyItemRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
80 inline BatchUpdateCustomVocabularyItemRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
82
84
88 inline const Aws::Vector<CustomVocabularyItem>& GetCustomVocabularyItemList() const{ return m_customVocabularyItemList; }
89 inline bool CustomVocabularyItemListHasBeenSet() const { return m_customVocabularyItemListHasBeenSet; }
90 inline void SetCustomVocabularyItemList(const Aws::Vector<CustomVocabularyItem>& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList = value; }
91 inline void SetCustomVocabularyItemList(Aws::Vector<CustomVocabularyItem>&& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList = std::move(value); }
94 inline BatchUpdateCustomVocabularyItemRequest& AddCustomVocabularyItemList(const CustomVocabularyItem& value) { m_customVocabularyItemListHasBeenSet = true; m_customVocabularyItemList.push_back(value); return *this; }
95 inline BatchUpdateCustomVocabularyItemRequest& AddCustomVocabularyItemList(CustomVocabularyItem&& 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<CustomVocabularyItem> m_customVocabularyItemList;
109 bool m_customVocabularyItemListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace LexModelsV2
114} // namespace Aws
BatchUpdateCustomVocabularyItemRequest & WithCustomVocabularyItemList(const Aws::Vector< CustomVocabularyItem > &value)
const Aws::Vector< CustomVocabularyItem > & GetCustomVocabularyItemList() const
BatchUpdateCustomVocabularyItemRequest & WithBotId(const Aws::String &value)
void SetCustomVocabularyItemList(const Aws::Vector< CustomVocabularyItem > &value)
BatchUpdateCustomVocabularyItemRequest & WithLocaleId(const Aws::String &value)
BatchUpdateCustomVocabularyItemRequest & WithBotVersion(Aws::String &&value)
BatchUpdateCustomVocabularyItemRequest & WithLocaleId(const char *value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
BatchUpdateCustomVocabularyItemRequest & WithBotVersion(const char *value)
BatchUpdateCustomVocabularyItemRequest & WithBotId(const char *value)
BatchUpdateCustomVocabularyItemRequest & AddCustomVocabularyItemList(CustomVocabularyItem &&value)
BatchUpdateCustomVocabularyItemRequest & AddCustomVocabularyItemList(const CustomVocabularyItem &value)
BatchUpdateCustomVocabularyItemRequest & WithBotId(Aws::String &&value)
BatchUpdateCustomVocabularyItemRequest & WithCustomVocabularyItemList(Aws::Vector< CustomVocabularyItem > &&value)
BatchUpdateCustomVocabularyItemRequest & WithBotVersion(const Aws::String &value)
BatchUpdateCustomVocabularyItemRequest & WithLocaleId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector