AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateBotAliasRequest.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 UpdateBotAliasRequest() = default;
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 "UpdateBotAlias"; }
35
36 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetBotAliasId() const { return m_botAliasId; }
44 inline bool BotAliasIdHasBeenSet() const { return m_botAliasIdHasBeenSet; }
45 template<typename BotAliasIdT = Aws::String>
46 void SetBotAliasId(BotAliasIdT&& value) { m_botAliasIdHasBeenSet = true; m_botAliasId = std::forward<BotAliasIdT>(value); }
47 template<typename BotAliasIdT = Aws::String>
48 UpdateBotAliasRequest& WithBotAliasId(BotAliasIdT&& value) { SetBotAliasId(std::forward<BotAliasIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetBotAliasName() const { return m_botAliasName; }
56 inline bool BotAliasNameHasBeenSet() const { return m_botAliasNameHasBeenSet; }
57 template<typename BotAliasNameT = Aws::String>
58 void SetBotAliasName(BotAliasNameT&& value) { m_botAliasNameHasBeenSet = true; m_botAliasName = std::forward<BotAliasNameT>(value); }
59 template<typename BotAliasNameT = Aws::String>
60 UpdateBotAliasRequest& WithBotAliasName(BotAliasNameT&& value) { SetBotAliasName(std::forward<BotAliasNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 UpdateBotAliasRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74
76
79 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
80 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
81 template<typename BotVersionT = Aws::String>
82 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
83 template<typename BotVersionT = Aws::String>
84 UpdateBotAliasRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
86
88
91 inline const Aws::Map<Aws::String, BotAliasLocaleSettings>& GetBotAliasLocaleSettings() const { return m_botAliasLocaleSettings; }
92 inline bool BotAliasLocaleSettingsHasBeenSet() const { return m_botAliasLocaleSettingsHasBeenSet; }
93 template<typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
94 void SetBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) { m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings = std::forward<BotAliasLocaleSettingsT>(value); }
95 template<typename BotAliasLocaleSettingsT = Aws::Map<Aws::String, BotAliasLocaleSettings>>
96 UpdateBotAliasRequest& WithBotAliasLocaleSettings(BotAliasLocaleSettingsT&& value) { SetBotAliasLocaleSettings(std::forward<BotAliasLocaleSettingsT>(value)); return *this;}
97 template<typename BotAliasLocaleSettingsKeyT = Aws::String, typename BotAliasLocaleSettingsValueT = BotAliasLocaleSettings>
98 UpdateBotAliasRequest& AddBotAliasLocaleSettings(BotAliasLocaleSettingsKeyT&& key, BotAliasLocaleSettingsValueT&& value) {
99 m_botAliasLocaleSettingsHasBeenSet = true; m_botAliasLocaleSettings.emplace(std::forward<BotAliasLocaleSettingsKeyT>(key), std::forward<BotAliasLocaleSettingsValueT>(value)); return *this;
100 }
102
104
108 inline const ConversationLogSettings& GetConversationLogSettings() const { return m_conversationLogSettings; }
109 inline bool ConversationLogSettingsHasBeenSet() const { return m_conversationLogSettingsHasBeenSet; }
110 template<typename ConversationLogSettingsT = ConversationLogSettings>
111 void SetConversationLogSettings(ConversationLogSettingsT&& value) { m_conversationLogSettingsHasBeenSet = true; m_conversationLogSettings = std::forward<ConversationLogSettingsT>(value); }
112 template<typename ConversationLogSettingsT = ConversationLogSettings>
113 UpdateBotAliasRequest& WithConversationLogSettings(ConversationLogSettingsT&& value) { SetConversationLogSettings(std::forward<ConversationLogSettingsT>(value)); return *this;}
115
117
118 inline const SentimentAnalysisSettings& GetSentimentAnalysisSettings() const { return m_sentimentAnalysisSettings; }
119 inline bool SentimentAnalysisSettingsHasBeenSet() const { return m_sentimentAnalysisSettingsHasBeenSet; }
120 template<typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
121 void SetSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) { m_sentimentAnalysisSettingsHasBeenSet = true; m_sentimentAnalysisSettings = std::forward<SentimentAnalysisSettingsT>(value); }
122 template<typename SentimentAnalysisSettingsT = SentimentAnalysisSettings>
123 UpdateBotAliasRequest& WithSentimentAnalysisSettings(SentimentAnalysisSettingsT&& value) { SetSentimentAnalysisSettings(std::forward<SentimentAnalysisSettingsT>(value)); return *this;}
125
127
130 inline const Aws::String& GetBotId() const { return m_botId; }
131 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
132 template<typename BotIdT = Aws::String>
133 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
134 template<typename BotIdT = Aws::String>
135 UpdateBotAliasRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
137 private:
138
139 Aws::String m_botAliasId;
140 bool m_botAliasIdHasBeenSet = false;
141
142 Aws::String m_botAliasName;
143 bool m_botAliasNameHasBeenSet = false;
144
145 Aws::String m_description;
146 bool m_descriptionHasBeenSet = false;
147
148 Aws::String m_botVersion;
149 bool m_botVersionHasBeenSet = false;
150
151 Aws::Map<Aws::String, BotAliasLocaleSettings> m_botAliasLocaleSettings;
152 bool m_botAliasLocaleSettingsHasBeenSet = false;
153
154 ConversationLogSettings m_conversationLogSettings;
155 bool m_conversationLogSettingsHasBeenSet = false;
156
157 SentimentAnalysisSettings m_sentimentAnalysisSettings;
158 bool m_sentimentAnalysisSettingsHasBeenSet = false;
159
160 Aws::String m_botId;
161 bool m_botIdHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace LexModelsV2
166} // 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