AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateBotAliasRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lexv2-models/LexModelsV2Request.h>
10#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
11#include <aws/lexv2-models/model/BotAliasLocaleSettings.h>
12#include <aws/lexv2-models/model/ConversationLogSettings.h>
13#include <aws/lexv2-models/model/SentimentAnalysisSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace LexModelsV2 {
19namespace Model {
20
24 public:
25 AWS_LEXMODELSV2_API UpdateBotAliasRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateBotAlias"; }
32
33 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
40 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
41 template <typename BotAliasIdT = Aws::String>
42 void SetBotAliasId(BotAliasIdT&& value) {
43 m_botAliasIdHasBeenSet = true;
44 m_botAliasId = std::forward<BotAliasIdT>(value);
45 }
46 template <typename BotAliasIdT = Aws::String>
47 UpdateBotAliasRequest& WithBotAliasId(BotAliasIdT&& value) {
48 SetBotAliasId(std::forward<BotAliasIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
58 inline bool BotAliasNameHasBeenSet() const { return m_botAliasNameHasBeenSet; }
59 template <typename BotAliasNameT = Aws::String>
60 void SetBotAliasName(BotAliasNameT&& value) {
61 m_botAliasNameHasBeenSet = true;
62 m_botAliasName = std::forward<BotAliasNameT>(value);
63 }
64 template <typename BotAliasNameT = Aws::String>
65 UpdateBotAliasRequest& WithBotAliasName(BotAliasNameT&& value) {
66 SetBotAliasName(std::forward<BotAliasNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
83 UpdateBotAliasRequest& WithDescription(DescriptionT&& value) {
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
94 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
95 template <typename BotVersionT = Aws::String>
96 void SetBotVersion(BotVersionT&& value) {
97 m_botVersionHasBeenSet = true;
98 m_botVersion = std::forward<BotVersionT>(value);
99 }
100 template <typename BotVersionT = Aws::String>
101 UpdateBotAliasRequest& WithBotVersion(BotVersionT&& value) {
102 SetBotVersion(std::forward<BotVersionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
112 inline bool BotAliasLocaleSettingsHasBeenSet() const { return m_botAliasLocaleSettingsHasBeenSet; }
113 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
114 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
115 m_botAliasLocaleSettingsHasBeenSet = true;
116 m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value);
117 }
118 template <typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
119 UpdateBotAliasRequest& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) {
120 SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value));
121 return *this;
122 }
123 template <typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
124 UpdateBotAliasRequest& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
125 m_botAliasLocaleSettingsHasBeenSet = true;
126 m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value));
127 return *this;
128 }
130
132
136 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
137 inline bool ConversationLogSettingsHasBeenSet() const { return m_conversationLogSettingsHasBeenSet; }
138 template <typename ConversationLogSettingsT = ConversationLogSettings>
139 void SetConversationLogSettings(ConversationLogSettingsT&& value) {
140 m_conversationLogSettingsHasBeenSet = true;
141 m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value);
142 }
143 template <typename ConversationLogSettingsT = ConversationLogSettings>
144 UpdateBotAliasRequest& WithConversationLogSettings(ConversationLogSettingsT&& value) {
145 SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value));
146 return *this;
147 }
149
151
152 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
153 inline bool SentimentAnalysisSettingsHasBeenSet() const { return m_sentimentAnalysisSettingsHasBeenSet; }
154 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
155 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
156 m_sentimentAnalysisSettingsHasBeenSet = true;
157 m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value);
158 }
159 template <typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
160 UpdateBotAliasRequest& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) {
161 SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value));
162 return *this;
163 }
165
167
170 inline const Aws::String& GetBotId() const { return m_botId; }
171 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
172 template <typename BotIdT = Aws::String>
173 void SetBotId(BotIdT&& value) {
174 m_botIdHasBeenSet = true;
175 m_botId = std::forward<BotIdT>(value);
176 }
177 template <typename BotIdT = Aws::String>
179 SetBotId(std::forward<BotIdT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_botAliasId;
185
186 Aws::String m_botAliasName;
187
188 Aws::String m_description;
189
190 Aws::String m_botVersion;
191
192 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
193
194 ConversationLogSettings m_conversationLogSettings;
195
196 SentimentAnalysisSettings m_sentimentAnalysisSettings;
197
198 Aws::String m_botId;
199 bool m_botAliasIdHasBeenSet = false;
200 bool m_botAliasNameHasBeenSet = false;
201 bool m_descriptionHasBeenSet = false;
202 bool m_botVersionHasBeenSet = false;
203 bool m_botAliasLocaleSettingsHasBeenSet = false;
204 bool m_conversationLogSettingsHasBeenSet = false;
205 bool m_sentimentAnalysisSettingsHasBeenSet = false;
206 bool m_botIdHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace LexModelsV2
211} // namespace Aws
void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
UpdateBotAliasRequest & WithConversationLogSettings(ConversationLogSettingsT &&value)
const ConversationLogSettings & GetConversationLogSettings() const
UpdateBotAliasRequest & WithDescription(DescriptionT &&value)
const SentimentAnalysisSettings & GetSentimentAnalysisSettings() const
const Aws::Map< Aws::String, BotAliasLocaleSettings > & GetBotAliasLocaleSettings() const
void SetConversationLogSettings(ConversationLogSettingsT &&value)
void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
AWS_LEXMODELSV2_API UpdateBotAliasRequest()=default
UpdateBotAliasRequest & AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT &&key, BotAliasLocaleSettingsValueT &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateBotAliasRequest & WithBotAliasName(BotAliasNameT &&value)
UpdateBotAliasRequest & WithSentimentAnalysisSettings(SentimentAnalysisSettingsT &&value)
UpdateBotAliasRequest & WithBotAliasLocaleSettings(BotAliasLocaleSettingsT &&value)
UpdateBotAliasRequest & WithBotId(BotIdT &&value)
UpdateBotAliasRequest & WithBotAliasId(BotAliasIdT &&value)
UpdateBotAliasRequest & WithBotVersion(BotVersionT &&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