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();
53 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
67 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
94 inline void SetSlotType(
const char* value) { m_slotTypeHasBeenSet =
true; m_slotType.assign(value); }
108 inline void SetSlotTypeVersion(
const char* value) { m_slotTypeVersionHasBeenSet =
true; m_slotTypeVersion.assign(value); }
136 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
155 inline Slot&
AddSampleUtterances(
const char* value) { m_sampleUtterancesHasBeenSet =
true; m_sampleUtterances.push_back(value);
return *
this; }
168 inline void SetResponseCard(
const char* value) { m_responseCardHasBeenSet =
true; m_responseCard.assign(value); }
207 bool m_nameHasBeenSet =
false;
210 bool m_descriptionHasBeenSet =
false;
213 bool m_slotConstraintHasBeenSet =
false;
216 bool m_slotTypeHasBeenSet =
false;
219 bool m_slotTypeVersionHasBeenSet =
false;
221 Prompt m_valueElicitationPrompt;
222 bool m_valueElicitationPromptHasBeenSet =
false;
225 bool m_priorityHasBeenSet =
false;
228 bool m_sampleUtterancesHasBeenSet =
false;
231 bool m_responseCardHasBeenSet =
false;
234 bool m_obfuscationSettingHasBeenSet =
false;
237 bool m_defaultValueSpecHasBeenSet =
false;
Slot & WithResponseCard(const char *value)
AWS_LEXMODELBUILDINGSERVICE_API Slot()
void SetSlotConstraint(const SlotConstraint &value)
Slot & WithSlotTypeVersion(Aws::String &&value)
const Aws::String & GetDescription() const
bool SlotTypeHasBeenSet() const
Slot & WithSlotTypeVersion(const char *value)
void SetName(const char *value)
void SetDescription(const Aws::String &value)
bool DefaultValueSpecHasBeenSet() const
Slot & WithSlotTypeVersion(const Aws::String &value)
Slot & WithPriority(int value)
void SetDefaultValueSpec(SlotDefaultValueSpec &&value)
Slot & WithSlotType(const Aws::String &value)
void SetResponseCard(const Aws::String &value)
bool SlotTypeVersionHasBeenSet() const
Slot & AddSampleUtterances(const Aws::String &value)
Slot & WithDefaultValueSpec(SlotDefaultValueSpec &&value)
Slot & WithValueElicitationPrompt(Prompt &&value)
bool ResponseCardHasBeenSet() const
Slot & WithDescription(Aws::String &&value)
Slot & WithObfuscationSetting(const ObfuscationSetting &value)
const Aws::String & GetName() const
bool SlotConstraintHasBeenSet() const
Slot & WithName(const Aws::String &value)
void SetSlotType(Aws::String &&value)
bool DescriptionHasBeenSet() const
const SlotDefaultValueSpec & GetDefaultValueSpec() const
void SetSlotType(const char *value)
bool PriorityHasBeenSet() const
Slot & WithSampleUtterances(Aws::Vector< Aws::String > &&value)
void SetSampleUtterances(const Aws::Vector< Aws::String > &value)
void SetSlotConstraint(SlotConstraint &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Slot & WithObfuscationSetting(ObfuscationSetting &&value)
const Prompt & GetValueElicitationPrompt() const
void SetResponseCard(const char *value)
void SetObfuscationSetting(const ObfuscationSetting &value)
Slot & WithSlotType(const char *value)
const SlotConstraint & GetSlotConstraint() const
Slot & WithValueElicitationPrompt(const Prompt &value)
void SetObfuscationSetting(ObfuscationSetting &&value)
void SetSlotTypeVersion(const Aws::String &value)
void SetName(Aws::String &&value)
void SetDefaultValueSpec(const SlotDefaultValueSpec &value)
AWS_LEXMODELBUILDINGSERVICE_API Slot(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
void SetDescription(const char *value)
Slot & WithName(Aws::String &&value)
bool SampleUtterancesHasBeenSet() const
void SetResponseCard(Aws::String &&value)
Slot & WithResponseCard(const Aws::String &value)
void SetSlotTypeVersion(const char *value)
Slot & AddSampleUtterances(Aws::String &&value)
void SetPriority(int value)
Slot & WithDescription(const Aws::String &value)
Slot & WithDefaultValueSpec(const SlotDefaultValueSpec &value)
bool ValueElicitationPromptHasBeenSet() const
void SetDescription(Aws::String &&value)
Slot & WithDescription(const char *value)
const ObfuscationSetting & GetObfuscationSetting() const
const Aws::String & GetSlotType() const
Slot & WithResponseCard(Aws::String &&value)
Slot & WithSampleUtterances(const Aws::Vector< Aws::String > &value)
const Aws::String & GetSlotTypeVersion() const
Slot & WithSlotType(Aws::String &&value)
void SetValueElicitationPrompt(Prompt &&value)
void SetValueElicitationPrompt(const Prompt &value)
bool NameHasBeenSet() const
Slot & WithName(const char *value)
bool ObfuscationSettingHasBeenSet() const
AWS_LEXMODELBUILDINGSERVICE_API Slot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSlotType(const Aws::String &value)
void SetSlotTypeVersion(Aws::String &&value)
const Aws::String & GetResponseCard() const
Slot & WithSlotConstraint(const SlotConstraint &value)
void SetSampleUtterances(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSampleUtterances() const
Slot & WithSlotConstraint(SlotConstraint &&value)
Slot & AddSampleUtterances(const char *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