AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Slot.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace LexModelBuildingService
27{
28namespace Model
29{
30
36 class Slot
37 {
38 public:
39 AWS_LEXMODELBUILDINGSERVICE_API Slot();
40 AWS_LEXMODELBUILDINGSERVICE_API Slot(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELBUILDINGSERVICE_API Slot& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline Slot& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline Slot& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline Slot& WithName(const char* value) { SetName(value); return *this;}
58
60
63 inline const Aws::String& GetDescription() const{ return m_description; }
64 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
65 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
66 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
67 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
68 inline Slot& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
69 inline Slot& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
70 inline Slot& WithDescription(const char* value) { SetDescription(value); return *this;}
72
74
77 inline const SlotConstraint& GetSlotConstraint() const{ return m_slotConstraint; }
78 inline bool SlotConstraintHasBeenSet() const { return m_slotConstraintHasBeenSet; }
79 inline void SetSlotConstraint(const SlotConstraint& value) { m_slotConstraintHasBeenSet = true; m_slotConstraint = value; }
80 inline void SetSlotConstraint(SlotConstraint&& value) { m_slotConstraintHasBeenSet = true; m_slotConstraint = std::move(value); }
81 inline Slot& WithSlotConstraint(const SlotConstraint& value) { SetSlotConstraint(value); return *this;}
82 inline Slot& WithSlotConstraint(SlotConstraint&& value) { SetSlotConstraint(std::move(value)); return *this;}
84
86
90 inline const Aws::String& GetSlotType() const{ return m_slotType; }
91 inline bool SlotTypeHasBeenSet() const { return m_slotTypeHasBeenSet; }
92 inline void SetSlotType(const Aws::String& value) { m_slotTypeHasBeenSet = true; m_slotType = value; }
93 inline void SetSlotType(Aws::String&& value) { m_slotTypeHasBeenSet = true; m_slotType = std::move(value); }
94 inline void SetSlotType(const char* value) { m_slotTypeHasBeenSet = true; m_slotType.assign(value); }
95 inline Slot& WithSlotType(const Aws::String& value) { SetSlotType(value); return *this;}
96 inline Slot& WithSlotType(Aws::String&& value) { SetSlotType(std::move(value)); return *this;}
97 inline Slot& WithSlotType(const char* value) { SetSlotType(value); return *this;}
99
101
104 inline const Aws::String& GetSlotTypeVersion() const{ return m_slotTypeVersion; }
105 inline bool SlotTypeVersionHasBeenSet() const { return m_slotTypeVersionHasBeenSet; }
106 inline void SetSlotTypeVersion(const Aws::String& value) { m_slotTypeVersionHasBeenSet = true; m_slotTypeVersion = value; }
107 inline void SetSlotTypeVersion(Aws::String&& value) { m_slotTypeVersionHasBeenSet = true; m_slotTypeVersion = std::move(value); }
108 inline void SetSlotTypeVersion(const char* value) { m_slotTypeVersionHasBeenSet = true; m_slotTypeVersion.assign(value); }
109 inline Slot& WithSlotTypeVersion(const Aws::String& value) { SetSlotTypeVersion(value); return *this;}
110 inline Slot& WithSlotTypeVersion(Aws::String&& value) { SetSlotTypeVersion(std::move(value)); return *this;}
111 inline Slot& WithSlotTypeVersion(const char* value) { SetSlotTypeVersion(value); return *this;}
113
115
118 inline const Prompt& GetValueElicitationPrompt() const{ return m_valueElicitationPrompt; }
119 inline bool ValueElicitationPromptHasBeenSet() const { return m_valueElicitationPromptHasBeenSet; }
120 inline void SetValueElicitationPrompt(const Prompt& value) { m_valueElicitationPromptHasBeenSet = true; m_valueElicitationPrompt = value; }
121 inline void SetValueElicitationPrompt(Prompt&& value) { m_valueElicitationPromptHasBeenSet = true; m_valueElicitationPrompt = std::move(value); }
122 inline Slot& WithValueElicitationPrompt(const Prompt& value) { SetValueElicitationPrompt(value); return *this;}
123 inline Slot& WithValueElicitationPrompt(Prompt&& value) { SetValueElicitationPrompt(std::move(value)); return *this;}
125
127
134 inline int GetPriority() const{ return m_priority; }
135 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
136 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
137 inline Slot& WithPriority(int value) { SetPriority(value); return *this;}
139
141
147 inline const Aws::Vector<Aws::String>& GetSampleUtterances() const{ return m_sampleUtterances; }
148 inline bool SampleUtterancesHasBeenSet() const { return m_sampleUtterancesHasBeenSet; }
149 inline void SetSampleUtterances(const Aws::Vector<Aws::String>& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = value; }
150 inline void SetSampleUtterances(Aws::Vector<Aws::String>&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances = std::move(value); }
151 inline Slot& WithSampleUtterances(const Aws::Vector<Aws::String>& value) { SetSampleUtterances(value); return *this;}
152 inline Slot& WithSampleUtterances(Aws::Vector<Aws::String>&& value) { SetSampleUtterances(std::move(value)); return *this;}
153 inline Slot& AddSampleUtterances(const Aws::String& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(value); return *this; }
154 inline Slot& AddSampleUtterances(Aws::String&& value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(std::move(value)); return *this; }
155 inline Slot& AddSampleUtterances(const char* value) { m_sampleUtterancesHasBeenSet = true; m_sampleUtterances.push_back(value); return *this; }
157
159
164 inline const Aws::String& GetResponseCard() const{ return m_responseCard; }
165 inline bool ResponseCardHasBeenSet() const { return m_responseCardHasBeenSet; }
166 inline void SetResponseCard(const Aws::String& value) { m_responseCardHasBeenSet = true; m_responseCard = value; }
167 inline void SetResponseCard(Aws::String&& value) { m_responseCardHasBeenSet = true; m_responseCard = std::move(value); }
168 inline void SetResponseCard(const char* value) { m_responseCardHasBeenSet = true; m_responseCard.assign(value); }
169 inline Slot& WithResponseCard(const Aws::String& value) { SetResponseCard(value); return *this;}
170 inline Slot& WithResponseCard(Aws::String&& value) { SetResponseCard(std::move(value)); return *this;}
171 inline Slot& WithResponseCard(const char* value) { SetResponseCard(value); return *this;}
173
175
183 inline const ObfuscationSetting& GetObfuscationSetting() const{ return m_obfuscationSetting; }
184 inline bool ObfuscationSettingHasBeenSet() const { return m_obfuscationSettingHasBeenSet; }
185 inline void SetObfuscationSetting(const ObfuscationSetting& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = value; }
186 inline void SetObfuscationSetting(ObfuscationSetting&& value) { m_obfuscationSettingHasBeenSet = true; m_obfuscationSetting = std::move(value); }
187 inline Slot& WithObfuscationSetting(const ObfuscationSetting& value) { SetObfuscationSetting(value); return *this;}
188 inline Slot& WithObfuscationSetting(ObfuscationSetting&& value) { SetObfuscationSetting(std::move(value)); return *this;}
190
192
197 inline const SlotDefaultValueSpec& GetDefaultValueSpec() const{ return m_defaultValueSpec; }
198 inline bool DefaultValueSpecHasBeenSet() const { return m_defaultValueSpecHasBeenSet; }
199 inline void SetDefaultValueSpec(const SlotDefaultValueSpec& value) { m_defaultValueSpecHasBeenSet = true; m_defaultValueSpec = value; }
200 inline void SetDefaultValueSpec(SlotDefaultValueSpec&& value) { m_defaultValueSpecHasBeenSet = true; m_defaultValueSpec = std::move(value); }
201 inline Slot& WithDefaultValueSpec(const SlotDefaultValueSpec& value) { SetDefaultValueSpec(value); return *this;}
202 inline Slot& WithDefaultValueSpec(SlotDefaultValueSpec&& value) { SetDefaultValueSpec(std::move(value)); return *this;}
204 private:
205
206 Aws::String m_name;
207 bool m_nameHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 SlotConstraint m_slotConstraint;
213 bool m_slotConstraintHasBeenSet = false;
214
215 Aws::String m_slotType;
216 bool m_slotTypeHasBeenSet = false;
217
218 Aws::String m_slotTypeVersion;
219 bool m_slotTypeVersionHasBeenSet = false;
220
221 Prompt m_valueElicitationPrompt;
222 bool m_valueElicitationPromptHasBeenSet = false;
223
224 int m_priority;
225 bool m_priorityHasBeenSet = false;
226
227 Aws::Vector<Aws::String> m_sampleUtterances;
228 bool m_sampleUtterancesHasBeenSet = false;
229
230 Aws::String m_responseCard;
231 bool m_responseCardHasBeenSet = false;
232
233 ObfuscationSetting m_obfuscationSetting;
234 bool m_obfuscationSettingHasBeenSet = false;
235
236 SlotDefaultValueSpec m_defaultValueSpec;
237 bool m_defaultValueSpecHasBeenSet = false;
238 };
239
240} // namespace Model
241} // namespace LexModelBuildingService
242} // namespace Aws
Slot & WithResponseCard(const char *value)
Definition Slot.h:171
AWS_LEXMODELBUILDINGSERVICE_API Slot()
void SetSlotConstraint(const SlotConstraint &value)
Definition Slot.h:79
Slot & WithSlotTypeVersion(Aws::String &&value)
Definition Slot.h:110
const Aws::String & GetDescription() const
Definition Slot.h:63
Slot & WithSlotTypeVersion(const char *value)
Definition Slot.h:111
void SetName(const char *value)
Definition Slot.h:53
void SetDescription(const Aws::String &value)
Definition Slot.h:65
Slot & WithSlotTypeVersion(const Aws::String &value)
Definition Slot.h:109
void SetDefaultValueSpec(SlotDefaultValueSpec &&value)
Definition Slot.h:200
Slot & WithSlotType(const Aws::String &value)
Definition Slot.h:95
void SetResponseCard(const Aws::String &value)
Definition Slot.h:166
Slot & AddSampleUtterances(const Aws::String &value)
Definition Slot.h:153
Slot & WithDefaultValueSpec(SlotDefaultValueSpec &&value)
Definition Slot.h:202
Slot & WithValueElicitationPrompt(Prompt &&value)
Definition Slot.h:123
Slot & WithDescription(Aws::String &&value)
Definition Slot.h:69
Slot & WithObfuscationSetting(const ObfuscationSetting &value)
Definition Slot.h:187
const Aws::String & GetName() const
Definition Slot.h:49
Slot & WithName(const Aws::String &value)
Definition Slot.h:54
void SetSlotType(Aws::String &&value)
Definition Slot.h:93
const SlotDefaultValueSpec & GetDefaultValueSpec() const
Definition Slot.h:197
void SetSlotType(const char *value)
Definition Slot.h:94
Slot & WithSampleUtterances(Aws::Vector< Aws::String > &&value)
Definition Slot.h:152
void SetSampleUtterances(const Aws::Vector< Aws::String > &value)
Definition Slot.h:149
void SetSlotConstraint(SlotConstraint &&value)
Definition Slot.h:80
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Slot & WithObfuscationSetting(ObfuscationSetting &&value)
Definition Slot.h:188
const Prompt & GetValueElicitationPrompt() const
Definition Slot.h:118
void SetResponseCard(const char *value)
Definition Slot.h:168
void SetObfuscationSetting(const ObfuscationSetting &value)
Definition Slot.h:185
Slot & WithSlotType(const char *value)
Definition Slot.h:97
const SlotConstraint & GetSlotConstraint() const
Definition Slot.h:77
Slot & WithValueElicitationPrompt(const Prompt &value)
Definition Slot.h:122
void SetObfuscationSetting(ObfuscationSetting &&value)
Definition Slot.h:186
void SetSlotTypeVersion(const Aws::String &value)
Definition Slot.h:106
void SetName(Aws::String &&value)
Definition Slot.h:52
void SetDefaultValueSpec(const SlotDefaultValueSpec &value)
Definition Slot.h:199
AWS_LEXMODELBUILDINGSERVICE_API Slot(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition Slot.h:51
void SetDescription(const char *value)
Definition Slot.h:67
Slot & WithName(Aws::String &&value)
Definition Slot.h:55
void SetResponseCard(Aws::String &&value)
Definition Slot.h:167
Slot & WithResponseCard(const Aws::String &value)
Definition Slot.h:169
void SetSlotTypeVersion(const char *value)
Definition Slot.h:108
Slot & AddSampleUtterances(Aws::String &&value)
Definition Slot.h:154
Slot & WithDescription(const Aws::String &value)
Definition Slot.h:68
Slot & WithDefaultValueSpec(const SlotDefaultValueSpec &value)
Definition Slot.h:201
void SetDescription(Aws::String &&value)
Definition Slot.h:66
Slot & WithDescription(const char *value)
Definition Slot.h:70
const ObfuscationSetting & GetObfuscationSetting() const
Definition Slot.h:183
const Aws::String & GetSlotType() const
Definition Slot.h:90
Slot & WithResponseCard(Aws::String &&value)
Definition Slot.h:170
Slot & WithSampleUtterances(const Aws::Vector< Aws::String > &value)
Definition Slot.h:151
const Aws::String & GetSlotTypeVersion() const
Definition Slot.h:104
Slot & WithSlotType(Aws::String &&value)
Definition Slot.h:96
void SetValueElicitationPrompt(Prompt &&value)
Definition Slot.h:121
void SetValueElicitationPrompt(const Prompt &value)
Definition Slot.h:120
Slot & WithName(const char *value)
Definition Slot.h:56
AWS_LEXMODELBUILDINGSERVICE_API Slot & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSlotType(const Aws::String &value)
Definition Slot.h:92
void SetSlotTypeVersion(Aws::String &&value)
Definition Slot.h:107
const Aws::String & GetResponseCard() const
Definition Slot.h:164
Slot & WithSlotConstraint(const SlotConstraint &value)
Definition Slot.h:81
void SetSampleUtterances(Aws::Vector< Aws::String > &&value)
Definition Slot.h:150
const Aws::Vector< Aws::String > & GetSampleUtterances() const
Definition Slot.h:147
Slot & WithSlotConstraint(SlotConstraint &&value)
Definition Slot.h:82
Slot & AddSampleUtterances(const char *value)
Definition Slot.h:155
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue