AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBotLocaleRequest.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/lexv2-models/model/VoiceSettings.h>
11#include <aws/lexv2-models/model/GenerativeAISettings.h>
12#include <utility>
13
14namespace Aws
15{
16namespace LexModelsV2
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LEXMODELSV2_API CreateBotLocaleRequest() = default;
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 "CreateBotLocale"; }
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 template<typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
45 template<typename BotIdT = Aws::String>
46 CreateBotLocaleRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
55 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
56 template<typename BotVersionT = Aws::String>
57 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
58 template<typename BotVersionT = Aws::String>
59 CreateBotLocaleRequest& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
61
63
71 inline const Aws::String& GetLocaleId() const { return m_localeId; }
72 inline bool LocaleIdHasBeenSet() const { return m_localeIdHasBeenSet; }
73 template<typename LocaleIdT = Aws::String>
74 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
75 template<typename LocaleIdT = Aws::String>
76 CreateBotLocaleRequest& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
78
80
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template<typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
88 template<typename DescriptionT = Aws::String>
89 CreateBotLocaleRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
91
93
105 inline double GetNluIntentConfidenceThreshold() const { return m_nluIntentConfidenceThreshold; }
106 inline bool NluIntentConfidenceThresholdHasBeenSet() const { return m_nluIntentConfidenceThresholdHasBeenSet; }
107 inline void SetNluIntentConfidenceThreshold(double value) { m_nluIntentConfidenceThresholdHasBeenSet = true; m_nluIntentConfidenceThreshold = value; }
110
112
116 inline const VoiceSettings& GetVoiceSettings() const { return m_voiceSettings; }
117 inline bool VoiceSettingsHasBeenSet() const { return m_voiceSettingsHasBeenSet; }
118 template<typename VoiceSettingsT = VoiceSettings>
119 void SetVoiceSettings(VoiceSettingsT&& value) { m_voiceSettingsHasBeenSet = true; m_voiceSettings = std::forward<VoiceSettingsT>(value); }
120 template<typename VoiceSettingsT = VoiceSettings>
121 CreateBotLocaleRequest& WithVoiceSettings(VoiceSettingsT&& value) { SetVoiceSettings(std::forward<VoiceSettingsT>(value)); return *this;}
123
125
126 inline const GenerativeAISettings& GetGenerativeAISettings() const { return m_generativeAISettings; }
127 inline bool GenerativeAISettingsHasBeenSet() const { return m_generativeAISettingsHasBeenSet; }
128 template<typename GenerativeAISettingsT = GenerativeAISettings>
129 void SetGenerativeAISettings(GenerativeAISettingsT&& value) { m_generativeAISettingsHasBeenSet = true; m_generativeAISettings = std::forward<GenerativeAISettingsT>(value); }
130 template<typename GenerativeAISettingsT = GenerativeAISettings>
131 CreateBotLocaleRequest& WithGenerativeAISettings(GenerativeAISettingsT&& value) { SetGenerativeAISettings(std::forward<GenerativeAISettingsT>(value)); return *this;}
133 private:
134
135 Aws::String m_botId;
136 bool m_botIdHasBeenSet = false;
137
138 Aws::String m_botVersion;
139 bool m_botVersionHasBeenSet = false;
140
141 Aws::String m_localeId;
142 bool m_localeIdHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 double m_nluIntentConfidenceThreshold{0.0};
148 bool m_nluIntentConfidenceThresholdHasBeenSet = false;
149
150 VoiceSettings m_voiceSettings;
151 bool m_voiceSettingsHasBeenSet = false;
152
153 GenerativeAISettings m_generativeAISettings;
154 bool m_generativeAISettingsHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace LexModelsV2
159} // namespace Aws
CreateBotLocaleRequest & WithLocaleId(LocaleIdT &&value)
AWS_LEXMODELSV2_API CreateBotLocaleRequest()=default
CreateBotLocaleRequest & WithNluIntentConfidenceThreshold(double value)
CreateBotLocaleRequest & WithBotVersion(BotVersionT &&value)
CreateBotLocaleRequest & WithGenerativeAISettings(GenerativeAISettingsT &&value)
virtual const char * GetServiceRequestName() const override
CreateBotLocaleRequest & WithDescription(DescriptionT &&value)
const GenerativeAISettings & GetGenerativeAISettings() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
void SetGenerativeAISettings(GenerativeAISettingsT &&value)
CreateBotLocaleRequest & WithBotId(BotIdT &&value)
CreateBotLocaleRequest & WithVoiceSettings(VoiceSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String