7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/model/SlotConstraint.h>
10#include <aws/lex-models/model/Prompt.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lex-models/model/ObfuscationSetting.h>
13#include <aws/lex-models/model/SlotDefaultValueSpec.h>
26namespace LexModelBuildingService
39 AWS_LEXMODELBUILDINGSERVICE_API
Slot() =
default;
51 template<
typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
53 template<
typename NameT = Aws::String>
63 template<
typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
65 template<
typename DescriptionT = Aws::String>
86 template<
typename SlotTypeT = Aws::String>
87 void SetSlotType(SlotTypeT&& value) { m_slotTypeHasBeenSet =
true; m_slotType = std::forward<SlotTypeT>(value); }
88 template<
typename SlotTypeT = Aws::String>
98 template<
typename SlotTypeVersionT = Aws::String>
99 void SetSlotTypeVersion(SlotTypeVersionT&& value) { m_slotTypeVersionHasBeenSet =
true; m_slotTypeVersion = std::forward<SlotTypeVersionT>(value); }
100 template<
typename SlotTypeVersionT = Aws::String>
110 template<
typename ValueElicitationPromptT = Prompt>
111 void SetValueElicitationPrompt(ValueElicitationPromptT&& value) { m_valueElicitationPromptHasBeenSet =
true; m_valueElicitationPrompt = std::forward<ValueElicitationPromptT>(value); }
112 template<
typename ValueElicitationPromptT = Prompt>
126 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
139 template<
typename SampleUtterancesT = Aws::Vector<Aws::String>>
140 void SetSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet =
true; m_sampleUtterances = std::forward<SampleUtterancesT>(value); }
141 template<
typename SampleUtterancesT = Aws::Vector<Aws::String>>
143 template<
typename SampleUtterancesT = Aws::String>
144 Slot&
AddSampleUtterances(SampleUtterancesT&& value) { m_sampleUtterancesHasBeenSet =
true; m_sampleUtterances.emplace_back(std::forward<SampleUtterancesT>(value));
return *
this; }
155 template<
typename ResponseCardT = Aws::String>
156 void SetResponseCard(ResponseCardT&& value) { m_responseCardHasBeenSet =
true; m_responseCard = std::forward<ResponseCardT>(value); }
157 template<
typename ResponseCardT = Aws::String>
184 template<
typename DefaultValueSpecT = SlotDefaultValueSpec>
185 void SetDefaultValueSpec(DefaultValueSpecT&& value) { m_defaultValueSpecHasBeenSet =
true; m_defaultValueSpec = std::forward<DefaultValueSpecT>(value); }
186 template<
typename DefaultValueSpecT = SlotDefaultValueSpec>
192 bool m_nameHasBeenSet =
false;
195 bool m_descriptionHasBeenSet =
false;
198 bool m_slotConstraintHasBeenSet =
false;
201 bool m_slotTypeHasBeenSet =
false;
204 bool m_slotTypeVersionHasBeenSet =
false;
206 Prompt m_valueElicitationPrompt;
207 bool m_valueElicitationPromptHasBeenSet =
false;
210 bool m_priorityHasBeenSet =
false;
213 bool m_sampleUtterancesHasBeenSet =
false;
216 bool m_responseCardHasBeenSet =
false;
219 bool m_obfuscationSettingHasBeenSet =
false;
221 SlotDefaultValueSpec m_defaultValueSpec;
222 bool m_defaultValueSpecHasBeenSet =
false;
SlotConstraint GetSlotConstraint() const
const Aws::String & GetDescription() const
void SetSlotType(SlotTypeT &&value)
bool SlotTypeHasBeenSet() const
void SetName(NameT &&value)
bool DefaultValueSpecHasBeenSet() const
Slot & WithPriority(int value)
Slot & WithName(NameT &&value)
void SetSampleUtterances(SampleUtterancesT &&value)
Slot & WithSlotConstraint(SlotConstraint value)
bool SlotTypeVersionHasBeenSet() const
void SetSlotTypeVersion(SlotTypeVersionT &&value)
bool ResponseCardHasBeenSet() const
const Aws::String & GetName() const
bool SlotConstraintHasBeenSet() const
void SetValueElicitationPrompt(ValueElicitationPromptT &&value)
bool DescriptionHasBeenSet() const
const SlotDefaultValueSpec & GetDefaultValueSpec() const
bool PriorityHasBeenSet() const
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API Slot()=default
const Prompt & GetValueElicitationPrompt() const
Slot & WithSlotTypeVersion(SlotTypeVersionT &&value)
void SetResponseCard(ResponseCardT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Slot(Aws::Utils::Json::JsonView jsonValue)
bool SampleUtterancesHasBeenSet() const
void SetSlotConstraint(SlotConstraint value)
void SetPriority(int value)
void SetDescription(DescriptionT &&value)
Slot & WithSlotType(SlotTypeT &&value)
bool ValueElicitationPromptHasBeenSet() const
void SetDefaultValueSpec(DefaultValueSpecT &&value)
Slot & WithDefaultValueSpec(DefaultValueSpecT &&value)
const Aws::String & GetSlotType() const
const Aws::String & GetSlotTypeVersion() const
Slot & WithObfuscationSetting(ObfuscationSetting value)
Slot & AddSampleUtterances(SampleUtterancesT &&value)
ObfuscationSetting GetObfuscationSetting() const
bool NameHasBeenSet() const
Slot & WithValueElicitationPrompt(ValueElicitationPromptT &&value)
bool ObfuscationSettingHasBeenSet() const
AWS_LEXMODELBUILDINGSERVICE_API Slot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObfuscationSetting(ObfuscationSetting value)
const Aws::String & GetResponseCard() const
Slot & WithSampleUtterances(SampleUtterancesT &&value)
const Aws::Vector< Aws::String > & GetSampleUtterances() const
Slot & WithResponseCard(ResponseCardT &&value)
Slot & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue