1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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/lexv2-models/model/VoiceSettings.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace LexModelsV2
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_LEXMODELSV2_API UpdateBotLocaleRequest : public LexModelsV2Request
23   {
24   public:
25     UpdateBotLocaleRequest();
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.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "UpdateBotLocale"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The unique identifier of the bot that contains the locale.</p>
38      */
GetBotId()39     inline const Aws::String& GetBotId() const{ return m_botId; }
40 
41     /**
42      * <p>The unique identifier of the bot that contains the locale.</p>
43      */
BotIdHasBeenSet()44     inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
45 
46     /**
47      * <p>The unique identifier of the bot that contains the locale.</p>
48      */
SetBotId(const Aws::String & value)49     inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
50 
51     /**
52      * <p>The unique identifier of the bot that contains the locale.</p>
53      */
SetBotId(Aws::String && value)54     inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
55 
56     /**
57      * <p>The unique identifier of the bot that contains the locale.</p>
58      */
SetBotId(const char * value)59     inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
60 
61     /**
62      * <p>The unique identifier of the bot that contains the locale.</p>
63      */
WithBotId(const Aws::String & value)64     inline UpdateBotLocaleRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
65 
66     /**
67      * <p>The unique identifier of the bot that contains the locale.</p>
68      */
WithBotId(Aws::String && value)69     inline UpdateBotLocaleRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
70 
71     /**
72      * <p>The unique identifier of the bot that contains the locale.</p>
73      */
WithBotId(const char * value)74     inline UpdateBotLocaleRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
75 
76 
77     /**
78      * <p>The version of the bot that contains the locale to be updated. The version
79      * can only be the <code>DRAFT</code> version.</p>
80      */
GetBotVersion()81     inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
82 
83     /**
84      * <p>The version of the bot that contains the locale to be updated. The version
85      * can only be the <code>DRAFT</code> version.</p>
86      */
BotVersionHasBeenSet()87     inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
88 
89     /**
90      * <p>The version of the bot that contains the locale to be updated. The version
91      * can only be the <code>DRAFT</code> version.</p>
92      */
SetBotVersion(const Aws::String & value)93     inline void SetBotVersion(const Aws::String& value) { m_botVersionHasBeenSet = true; m_botVersion = value; }
94 
95     /**
96      * <p>The version of the bot that contains the locale to be updated. The version
97      * can only be the <code>DRAFT</code> version.</p>
98      */
SetBotVersion(Aws::String && value)99     inline void SetBotVersion(Aws::String&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::move(value); }
100 
101     /**
102      * <p>The version of the bot that contains the locale to be updated. The version
103      * can only be the <code>DRAFT</code> version.</p>
104      */
SetBotVersion(const char * value)105     inline void SetBotVersion(const char* value) { m_botVersionHasBeenSet = true; m_botVersion.assign(value); }
106 
107     /**
108      * <p>The version of the bot that contains the locale to be updated. The version
109      * can only be the <code>DRAFT</code> version.</p>
110      */
WithBotVersion(const Aws::String & value)111     inline UpdateBotLocaleRequest& WithBotVersion(const Aws::String& value) { SetBotVersion(value); return *this;}
112 
113     /**
114      * <p>The version of the bot that contains the locale to be updated. The version
115      * can only be the <code>DRAFT</code> version.</p>
116      */
WithBotVersion(Aws::String && value)117     inline UpdateBotLocaleRequest& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
118 
119     /**
120      * <p>The version of the bot that contains the locale to be updated. The version
121      * can only be the <code>DRAFT</code> version.</p>
122      */
WithBotVersion(const char * value)123     inline UpdateBotLocaleRequest& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
124 
125 
126     /**
127      * <p>The identifier of the language and locale to update. The string must match
128      * one of the supported locales. For more information, see <a
129      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
130      * languages</a>.</p>
131      */
GetLocaleId()132     inline const Aws::String& GetLocaleId() const{ return m_localeId; }
133 
134     /**
135      * <p>The identifier of the language and locale to update. The string must match
136      * one of the supported locales. For more information, see <a
137      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
138      * languages</a>.</p>
139      */
LocaleIdHasBeenSet()140     inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
141 
142     /**
143      * <p>The identifier of the language and locale to update. The string must match
144      * one of the supported locales. For more information, see <a
145      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
146      * languages</a>.</p>
147      */
SetLocaleId(const Aws::String & value)148     inline void SetLocaleId(const Aws::String& value) { m_localeIdHasBeenSet = true; m_localeId = value; }
149 
150     /**
151      * <p>The identifier of the language and locale to update. The string must match
152      * one of the supported locales. For more information, see <a
153      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
154      * languages</a>.</p>
155      */
SetLocaleId(Aws::String && value)156     inline void SetLocaleId(Aws::String&& value) { m_localeIdHasBeenSet = true; m_localeId = std::move(value); }
157 
158     /**
159      * <p>The identifier of the language and locale to update. The string must match
160      * one of the supported locales. For more information, see <a
161      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
162      * languages</a>.</p>
163      */
SetLocaleId(const char * value)164     inline void SetLocaleId(const char* value) { m_localeIdHasBeenSet = true; m_localeId.assign(value); }
165 
166     /**
167      * <p>The identifier of the language and locale to update. The string must match
168      * one of the supported locales. For more information, see <a
169      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
170      * languages</a>.</p>
171      */
WithLocaleId(const Aws::String & value)172     inline UpdateBotLocaleRequest& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
173 
174     /**
175      * <p>The identifier of the language and locale to update. The string must match
176      * one of the supported locales. For more information, see <a
177      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
178      * languages</a>.</p>
179      */
WithLocaleId(Aws::String && value)180     inline UpdateBotLocaleRequest& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
181 
182     /**
183      * <p>The identifier of the language and locale to update. The string must match
184      * one of the supported locales. For more information, see <a
185      * href="https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html">Supported
186      * languages</a>.</p>
187      */
WithLocaleId(const char * value)188     inline UpdateBotLocaleRequest& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
189 
190 
191     /**
192      * <p>The new description of the locale.</p>
193      */
GetDescription()194     inline const Aws::String& GetDescription() const{ return m_description; }
195 
196     /**
197      * <p>The new description of the locale.</p>
198      */
DescriptionHasBeenSet()199     inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
200 
201     /**
202      * <p>The new description of the locale.</p>
203      */
SetDescription(const Aws::String & value)204     inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
205 
206     /**
207      * <p>The new description of the locale.</p>
208      */
SetDescription(Aws::String && value)209     inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
210 
211     /**
212      * <p>The new description of the locale.</p>
213      */
SetDescription(const char * value)214     inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
215 
216     /**
217      * <p>The new description of the locale.</p>
218      */
WithDescription(const Aws::String & value)219     inline UpdateBotLocaleRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
220 
221     /**
222      * <p>The new description of the locale.</p>
223      */
WithDescription(Aws::String && value)224     inline UpdateBotLocaleRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
225 
226     /**
227      * <p>The new description of the locale.</p>
228      */
WithDescription(const char * value)229     inline UpdateBotLocaleRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
230 
231 
232     /**
233      * <p>The new confidence threshold where Amazon Lex inserts the
234      * <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code>
235      * intents in the list of possible intents for an utterance.</p>
236      */
GetNluIntentConfidenceThreshold()237     inline double GetNluIntentConfidenceThreshold() const{ return m_nluIntentConfidenceThreshold; }
238 
239     /**
240      * <p>The new confidence threshold where Amazon Lex inserts the
241      * <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code>
242      * intents in the list of possible intents for an utterance.</p>
243      */
NluIntentConfidenceThresholdHasBeenSet()244     inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
245 
246     /**
247      * <p>The new confidence threshold where Amazon Lex inserts the
248      * <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code>
249      * intents in the list of possible intents for an utterance.</p>
250      */
SetNluIntentConfidenceThreshold(double value)251     inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
252 
253     /**
254      * <p>The new confidence threshold where Amazon Lex inserts the
255      * <code>AMAZON.FallbackIntent</code> and <code>AMAZON.KendraSearchIntent</code>
256      * intents in the list of possible intents for an utterance.</p>
257      */
WithNluIntentConfidenceThreshold(double value)258     inline UpdateBotLocaleRequest& WithNluIntentConfidenceThreshold(double value) { SetNluIntentConfidenceThreshold(value); return *this;}
259 
260 
261     /**
262      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
263      * the user.</p>
264      */
GetVoiceSettings()265     inline const VoiceSettings& GetVoiceSettings() const{ return m_voiceSettings; }
266 
267     /**
268      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
269      * the user.</p>
270      */
VoiceSettingsHasBeenSet()271     inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
272 
273     /**
274      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
275      * the user.</p>
276      */
SetVoiceSettings(const VoiceSettings & value)277     inline void SetVoiceSettings(const VoiceSettings& value) { m_voiceSettingsHasBeenSet = true; m_voiceSettings = value; }
278 
279     /**
280      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
281      * the user.</p>
282      */
SetVoiceSettings(VoiceSettings && value)283     inline void SetVoiceSettings(VoiceSettings&& value) { m_voiceSettingsHasBeenSet = true; m_voiceSettings = std::move(value); }
284 
285     /**
286      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
287      * the user.</p>
288      */
WithVoiceSettings(const VoiceSettings & value)289     inline UpdateBotLocaleRequest& WithVoiceSettings(const VoiceSettings& value) { SetVoiceSettings(value); return *this;}
290 
291     /**
292      * <p>The new Amazon Polly voice Amazon Lex should use for voice interaction with
293      * the user.</p>
294      */
WithVoiceSettings(VoiceSettings && value)295     inline UpdateBotLocaleRequest& WithVoiceSettings(VoiceSettings&& value) { SetVoiceSettings(std::move(value)); return *this;}
296 
297   private:
298 
299     Aws::String m_botId;
300     bool m_botIdHasBeenSet;
301 
302     Aws::String m_botVersion;
303     bool m_botVersionHasBeenSet;
304 
305     Aws::String m_localeId;
306     bool m_localeIdHasBeenSet;
307 
308     Aws::String m_description;
309     bool m_descriptionHasBeenSet;
310 
311     double m_nluIntentConfidenceThreshold;
312     bool m_nluIntentConfidenceThresholdHasBeenSet;
313 
314     VoiceSettings m_voiceSettings;
315     bool m_voiceSettingsHasBeenSet;
316   };
317 
318 } // namespace Model
319 } // namespace LexModelsV2
320 } // namespace Aws
321