AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateBotAliasRequest.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/AWSMap.h>
11#include <aws/lexv2-models/model/ConversationLogSettings.h>
12#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
13#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
14#include <utility>
15
16namespace Aws
17{
18namespace LexModelsV2
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_LEXMODELSV2_API CreateBotAliasRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateBotAlias"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetBotAliasName() const{ return m_botAliasName; }
44 inline bool BotAliasNameHasBeenSet() const { return m_botAliasNameHasBeenSet; }
45 inline void SetBotAliasName(const Aws::String& value) { m_botAliasNameHasBeenSet = true; m_botAliasName = value; }
46 inline void SetBotAliasName(Aws::String&& value) { m_botAliasNameHasBeenSet = true; m_botAliasName = std::move(value); }
47 inline void SetBotAliasName(const char* value) { m_botAliasNameHasBeenSet = true; m_botAliasName.assign(value); }
48 inline CreateBotAliasRequest& WithBotAliasName(const Aws::String& value) { SetBotAliasName(value); return *this;}
49 inline CreateBotAliasRequest& WithBotAliasName(Aws::String&& value) { SetBotAliasName(std::move(value)); return *this;}
50 inline CreateBotAliasRequest& WithBotAliasName(const char* value) { SetBotAliasName(value); return *this;}
52
54
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline CreateBotAliasRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline CreateBotAliasRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline CreateBotAliasRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
74 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
75 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
76 inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
77 inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
78 inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
79 inline CreateBotAliasRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
80 inline CreateBotAliasRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
81 inline CreateBotAliasRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
83
85
90 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const{ return m_botAliasLocaleSettings; }
91 inline bool BotAliasLocaleSettingsHasBeenSet() const { return m_botAliasLocaleSettingsHasBeenSet; }
92 inline void SetBotAliasLocaleSettings(const Aws::Map<Aws::String, BotAliasLocaleSettings>& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings = value; }
93 inline void SetBotAliasLocaleSettings(Aws::Map<Aws::String, BotAliasLocaleSettings>&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings = std::move(value); }
96 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(const Aws::String& key, const BotAliasLocaleSettings& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(key, value); return *this; }
97 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(Aws::String&& key, const BotAliasLocaleSettings& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(std::move(key), value); return *this; }
98 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(const Aws::String& key, BotAliasLocaleSettings&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(key, std::move(value)); return *this; }
99 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(Aws::String&& key, BotAliasLocaleSettings&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(std::move(key), std::move(value)); return *this; }
100 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(const char* key, BotAliasLocaleSettings&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(key, std::move(value)); return *this; }
101 inline CreateBotAliasRequest& AddBotAliasLocaleSettings(const char* key, const BotAliasLocaleSettings& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(key, value); return *this; }
103
105
111 inline const ConversationLogSettings& GetConversationLogSettings() const{ return m_conversationLogSettings; }
112 inline bool ConversationLogSettingsHasBeenSet() const { return m_conversationLogSettingsHasBeenSet; }
113 inline void SetConversationLogSettings(const ConversationLogSettings& value) { m_conversationLogSettingsHasBeenSet = true; m_conversationLogSettings = value; }
114 inline void SetConversationLogSettings(ConversationLogSettings&& value) { m_conversationLogSettingsHasBeenSet = true; m_conversationLogSettings = std::move(value); }
118
120
121 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const{ return m_sentimentAnalysisSettings; }
122 inline bool SentimentAnalysisSettingsHasBeenSet() const { return m_sentimentAnalysisSettingsHasBeenSet; }
123 inline void SetSentimentAnalysisSettings(const SentimentAnalysisSettings& value) { m_sentimentAnalysisSettingsHasBeenSet = true; m_sentimentAnalysisSettings = value; }
124 inline void SetSentimentAnalysisSettings(SentimentAnalysisSettings&& value) { m_sentimentAnalysisSettingsHasBeenSet = true; m_sentimentAnalysisSettings = std::move(value); }
128
130
133 inline const Aws::String& GetBotId() const{ return m_botId; }
134 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
135 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
136 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
137 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
138 inline CreateBotAliasRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
139 inline CreateBotAliasRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
140 inline CreateBotAliasRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
142
144
150 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateBotAliasRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
155 inline CreateBotAliasRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateBotAliasRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
157 inline CreateBotAliasRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
158 inline CreateBotAliasRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
159 inline CreateBotAliasRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
160 inline CreateBotAliasRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
161 inline CreateBotAliasRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
162 inline CreateBotAliasRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
164 private:
165
166 Aws::String m_botAliasName;
167 bool m_botAliasNameHasBeenSet = false;
168
169 Aws::String m_description;
170 bool m_descriptionHasBeenSet = false;
171
172 Aws::String m_botVersion;
173 bool m_botVersionHasBeenSet = false;
174
175 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
176 bool m_botAliasLocaleSettingsHasBeenSet = false;
177
178 ConversationLogSettings m_conversationLogSettings;
179 bool m_conversationLogSettingsHasBeenSet = false;
180
181 SentimentAnalysisSettings m_sentimentAnalysisSettings;
182 bool m_sentimentAnalysisSettingsHasBeenSet = false;
183
184 Aws::String m_botId;
185 bool m_botIdHasBeenSet = false;
186
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace LexModelsV2
193} // namespace Aws
CreateBotAliasRequest & WithBotVersion(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetConversationLogSettings(ConversationLogSettings &&value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(const Aws::String &key, BotAliasLocaleSettings &&value)
void SetBotAliasLocaleSettings(const Aws::Map< Aws::String, BotAliasLocaleSettings > &value)
CreateBotAliasRequest & WithSentimentAnalysisSettings(const SentimentAnalysisSettings &value)
CreateBotAliasRequest & AddTags(const char *key, Aws::String &&value)
CreateBotAliasRequest & WithSentimentAnalysisSettings(SentimentAnalysisSettings &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
CreateBotAliasRequest & WithBotId(Aws::String &&value)
CreateBotAliasRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const SentimentAnalysisSettings & GetSentimentAnalysisSettings() const
CreateBotAliasRequest & WithDescription(Aws::String &&value)
void SetSentimentAnalysisSettings(const SentimentAnalysisSettings &value)
CreateBotAliasRequest & WithBotId(const char *value)
CreateBotAliasRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateBotAliasRequest & WithBotAliasLocaleSettings(Aws::Map< Aws::String, BotAliasLocaleSettings > &&value)
CreateBotAliasRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, BotAliasLocaleSettings > & GetBotAliasLocaleSettings() const
CreateBotAliasRequest & AddBotAliasLocaleSettings(const char *key, BotAliasLocaleSettings &&value)
CreateBotAliasRequest & AddTags(const char *key, const char *value)
CreateBotAliasRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(Aws::String &&key, const BotAliasLocaleSettings &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
const ConversationLogSettings & GetConversationLogSettings() const
CreateBotAliasRequest & WithBotAliasName(const Aws::String &value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(const Aws::String &key, const BotAliasLocaleSettings &value)
virtual const char * GetServiceRequestName() const override
CreateBotAliasRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateBotAliasRequest & WithDescription(const Aws::String &value)
void SetConversationLogSettings(const ConversationLogSettings &value)
CreateBotAliasRequest & WithBotVersion(const Aws::String &value)
CreateBotAliasRequest & WithBotAliasName(const char *value)
CreateBotAliasRequest & WithConversationLogSettings(const ConversationLogSettings &value)
CreateBotAliasRequest & WithBotAliasName(Aws::String &&value)
CreateBotAliasRequest & WithBotId(const Aws::String &value)
void SetBotAliasLocaleSettings(Aws::Map< Aws::String, BotAliasLocaleSettings > &&value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(Aws::String &&key, BotAliasLocaleSettings &&value)
CreateBotAliasRequest & AddTags(Aws::String &&key, const char *value)
CreateBotAliasRequest & WithConversationLogSettings(ConversationLogSettings &&value)
CreateBotAliasRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateBotAliasRequest & AddBotAliasLocaleSettings(const char *key, const BotAliasLocaleSettings &value)
CreateBotAliasRequest & WithBotAliasLocaleSettings(const Aws::Map< Aws::String, BotAliasLocaleSettings > &value)
CreateBotAliasRequest & WithDescription(const char *value)
CreateBotAliasRequest & WithBotVersion(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetSentimentAnalysisSettings(SentimentAnalysisSettings &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String