aws_sdk_lexmodelsv2/operation/describe_slot/
_describe_slot_output.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DescribeSlotOutput {
6    /// <p>The unique identifier generated for the slot.</p>
7    pub slot_id: ::std::option::Option<::std::string::String>,
8    /// <p>The name specified for the slot.</p>
9    pub slot_name: ::std::option::Option<::std::string::String>,
10    /// <p>The description specified for the slot.</p>
11    pub description: ::std::option::Option<::std::string::String>,
12    /// <p>The identifier of the slot type that determines the values entered into the slot.</p>
13    pub slot_type_id: ::std::option::Option<::std::string::String>,
14    /// <p>Prompts that Amazon Lex uses to elicit a value for the slot.</p>
15    pub value_elicitation_setting: ::std::option::Option<crate::types::SlotValueElicitationSetting>,
16    /// <p>Whether slot values are shown in Amazon CloudWatch logs. If the value is <code>None</code>, the actual value of the slot is shown in logs.</p>
17    pub obfuscation_setting: ::std::option::Option<crate::types::ObfuscationSetting>,
18    /// <p>The identifier of the bot associated with the slot.</p>
19    pub bot_id: ::std::option::Option<::std::string::String>,
20    /// <p>The version of the bot associated with the slot.</p>
21    pub bot_version: ::std::option::Option<::std::string::String>,
22    /// <p>The language and locale specified for the slot.</p>
23    pub locale_id: ::std::option::Option<::std::string::String>,
24    /// <p>The identifier of the intent associated with the slot.</p>
25    pub intent_id: ::std::option::Option<::std::string::String>,
26    /// <p>A timestamp of the date and time that the slot was created.</p>
27    pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
28    /// <p>A timestamp of the date and time that the slot was last updated.</p>
29    pub last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
30    /// <p>Indicates whether the slot accepts multiple values in a single utterance.</p>
31    /// <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p>
32    pub multiple_values_setting: ::std::option::Option<crate::types::MultipleValuesSetting>,
33    /// <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
34    pub sub_slot_setting: ::std::option::Option<crate::types::SubSlotSetting>,
35    _request_id: Option<String>,
36}
37impl DescribeSlotOutput {
38    /// <p>The unique identifier generated for the slot.</p>
39    pub fn slot_id(&self) -> ::std::option::Option<&str> {
40        self.slot_id.as_deref()
41    }
42    /// <p>The name specified for the slot.</p>
43    pub fn slot_name(&self) -> ::std::option::Option<&str> {
44        self.slot_name.as_deref()
45    }
46    /// <p>The description specified for the slot.</p>
47    pub fn description(&self) -> ::std::option::Option<&str> {
48        self.description.as_deref()
49    }
50    /// <p>The identifier of the slot type that determines the values entered into the slot.</p>
51    pub fn slot_type_id(&self) -> ::std::option::Option<&str> {
52        self.slot_type_id.as_deref()
53    }
54    /// <p>Prompts that Amazon Lex uses to elicit a value for the slot.</p>
55    pub fn value_elicitation_setting(&self) -> ::std::option::Option<&crate::types::SlotValueElicitationSetting> {
56        self.value_elicitation_setting.as_ref()
57    }
58    /// <p>Whether slot values are shown in Amazon CloudWatch logs. If the value is <code>None</code>, the actual value of the slot is shown in logs.</p>
59    pub fn obfuscation_setting(&self) -> ::std::option::Option<&crate::types::ObfuscationSetting> {
60        self.obfuscation_setting.as_ref()
61    }
62    /// <p>The identifier of the bot associated with the slot.</p>
63    pub fn bot_id(&self) -> ::std::option::Option<&str> {
64        self.bot_id.as_deref()
65    }
66    /// <p>The version of the bot associated with the slot.</p>
67    pub fn bot_version(&self) -> ::std::option::Option<&str> {
68        self.bot_version.as_deref()
69    }
70    /// <p>The language and locale specified for the slot.</p>
71    pub fn locale_id(&self) -> ::std::option::Option<&str> {
72        self.locale_id.as_deref()
73    }
74    /// <p>The identifier of the intent associated with the slot.</p>
75    pub fn intent_id(&self) -> ::std::option::Option<&str> {
76        self.intent_id.as_deref()
77    }
78    /// <p>A timestamp of the date and time that the slot was created.</p>
79    pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
80        self.creation_date_time.as_ref()
81    }
82    /// <p>A timestamp of the date and time that the slot was last updated.</p>
83    pub fn last_updated_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
84        self.last_updated_date_time.as_ref()
85    }
86    /// <p>Indicates whether the slot accepts multiple values in a single utterance.</p>
87    /// <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p>
88    pub fn multiple_values_setting(&self) -> ::std::option::Option<&crate::types::MultipleValuesSetting> {
89        self.multiple_values_setting.as_ref()
90    }
91    /// <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
92    pub fn sub_slot_setting(&self) -> ::std::option::Option<&crate::types::SubSlotSetting> {
93        self.sub_slot_setting.as_ref()
94    }
95}
96impl ::aws_types::request_id::RequestId for DescribeSlotOutput {
97    fn request_id(&self) -> Option<&str> {
98        self._request_id.as_deref()
99    }
100}
101impl DescribeSlotOutput {
102    /// Creates a new builder-style object to manufacture [`DescribeSlotOutput`](crate::operation::describe_slot::DescribeSlotOutput).
103    pub fn builder() -> crate::operation::describe_slot::builders::DescribeSlotOutputBuilder {
104        crate::operation::describe_slot::builders::DescribeSlotOutputBuilder::default()
105    }
106}
107
108/// A builder for [`DescribeSlotOutput`](crate::operation::describe_slot::DescribeSlotOutput).
109#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
110#[non_exhaustive]
111pub struct DescribeSlotOutputBuilder {
112    pub(crate) slot_id: ::std::option::Option<::std::string::String>,
113    pub(crate) slot_name: ::std::option::Option<::std::string::String>,
114    pub(crate) description: ::std::option::Option<::std::string::String>,
115    pub(crate) slot_type_id: ::std::option::Option<::std::string::String>,
116    pub(crate) value_elicitation_setting: ::std::option::Option<crate::types::SlotValueElicitationSetting>,
117    pub(crate) obfuscation_setting: ::std::option::Option<crate::types::ObfuscationSetting>,
118    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
119    pub(crate) bot_version: ::std::option::Option<::std::string::String>,
120    pub(crate) locale_id: ::std::option::Option<::std::string::String>,
121    pub(crate) intent_id: ::std::option::Option<::std::string::String>,
122    pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
123    pub(crate) last_updated_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
124    pub(crate) multiple_values_setting: ::std::option::Option<crate::types::MultipleValuesSetting>,
125    pub(crate) sub_slot_setting: ::std::option::Option<crate::types::SubSlotSetting>,
126    _request_id: Option<String>,
127}
128impl DescribeSlotOutputBuilder {
129    /// <p>The unique identifier generated for the slot.</p>
130    pub fn slot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
131        self.slot_id = ::std::option::Option::Some(input.into());
132        self
133    }
134    /// <p>The unique identifier generated for the slot.</p>
135    pub fn set_slot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
136        self.slot_id = input;
137        self
138    }
139    /// <p>The unique identifier generated for the slot.</p>
140    pub fn get_slot_id(&self) -> &::std::option::Option<::std::string::String> {
141        &self.slot_id
142    }
143    /// <p>The name specified for the slot.</p>
144    pub fn slot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
145        self.slot_name = ::std::option::Option::Some(input.into());
146        self
147    }
148    /// <p>The name specified for the slot.</p>
149    pub fn set_slot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
150        self.slot_name = input;
151        self
152    }
153    /// <p>The name specified for the slot.</p>
154    pub fn get_slot_name(&self) -> &::std::option::Option<::std::string::String> {
155        &self.slot_name
156    }
157    /// <p>The description specified for the slot.</p>
158    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
159        self.description = ::std::option::Option::Some(input.into());
160        self
161    }
162    /// <p>The description specified for the slot.</p>
163    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
164        self.description = input;
165        self
166    }
167    /// <p>The description specified for the slot.</p>
168    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
169        &self.description
170    }
171    /// <p>The identifier of the slot type that determines the values entered into the slot.</p>
172    pub fn slot_type_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
173        self.slot_type_id = ::std::option::Option::Some(input.into());
174        self
175    }
176    /// <p>The identifier of the slot type that determines the values entered into the slot.</p>
177    pub fn set_slot_type_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
178        self.slot_type_id = input;
179        self
180    }
181    /// <p>The identifier of the slot type that determines the values entered into the slot.</p>
182    pub fn get_slot_type_id(&self) -> &::std::option::Option<::std::string::String> {
183        &self.slot_type_id
184    }
185    /// <p>Prompts that Amazon Lex uses to elicit a value for the slot.</p>
186    pub fn value_elicitation_setting(mut self, input: crate::types::SlotValueElicitationSetting) -> Self {
187        self.value_elicitation_setting = ::std::option::Option::Some(input);
188        self
189    }
190    /// <p>Prompts that Amazon Lex uses to elicit a value for the slot.</p>
191    pub fn set_value_elicitation_setting(mut self, input: ::std::option::Option<crate::types::SlotValueElicitationSetting>) -> Self {
192        self.value_elicitation_setting = input;
193        self
194    }
195    /// <p>Prompts that Amazon Lex uses to elicit a value for the slot.</p>
196    pub fn get_value_elicitation_setting(&self) -> &::std::option::Option<crate::types::SlotValueElicitationSetting> {
197        &self.value_elicitation_setting
198    }
199    /// <p>Whether slot values are shown in Amazon CloudWatch logs. If the value is <code>None</code>, the actual value of the slot is shown in logs.</p>
200    pub fn obfuscation_setting(mut self, input: crate::types::ObfuscationSetting) -> Self {
201        self.obfuscation_setting = ::std::option::Option::Some(input);
202        self
203    }
204    /// <p>Whether slot values are shown in Amazon CloudWatch logs. If the value is <code>None</code>, the actual value of the slot is shown in logs.</p>
205    pub fn set_obfuscation_setting(mut self, input: ::std::option::Option<crate::types::ObfuscationSetting>) -> Self {
206        self.obfuscation_setting = input;
207        self
208    }
209    /// <p>Whether slot values are shown in Amazon CloudWatch logs. If the value is <code>None</code>, the actual value of the slot is shown in logs.</p>
210    pub fn get_obfuscation_setting(&self) -> &::std::option::Option<crate::types::ObfuscationSetting> {
211        &self.obfuscation_setting
212    }
213    /// <p>The identifier of the bot associated with the slot.</p>
214    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
215        self.bot_id = ::std::option::Option::Some(input.into());
216        self
217    }
218    /// <p>The identifier of the bot associated with the slot.</p>
219    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
220        self.bot_id = input;
221        self
222    }
223    /// <p>The identifier of the bot associated with the slot.</p>
224    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
225        &self.bot_id
226    }
227    /// <p>The version of the bot associated with the slot.</p>
228    pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
229        self.bot_version = ::std::option::Option::Some(input.into());
230        self
231    }
232    /// <p>The version of the bot associated with the slot.</p>
233    pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
234        self.bot_version = input;
235        self
236    }
237    /// <p>The version of the bot associated with the slot.</p>
238    pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
239        &self.bot_version
240    }
241    /// <p>The language and locale specified for the slot.</p>
242    pub fn locale_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
243        self.locale_id = ::std::option::Option::Some(input.into());
244        self
245    }
246    /// <p>The language and locale specified for the slot.</p>
247    pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
248        self.locale_id = input;
249        self
250    }
251    /// <p>The language and locale specified for the slot.</p>
252    pub fn get_locale_id(&self) -> &::std::option::Option<::std::string::String> {
253        &self.locale_id
254    }
255    /// <p>The identifier of the intent associated with the slot.</p>
256    pub fn intent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
257        self.intent_id = ::std::option::Option::Some(input.into());
258        self
259    }
260    /// <p>The identifier of the intent associated with the slot.</p>
261    pub fn set_intent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
262        self.intent_id = input;
263        self
264    }
265    /// <p>The identifier of the intent associated with the slot.</p>
266    pub fn get_intent_id(&self) -> &::std::option::Option<::std::string::String> {
267        &self.intent_id
268    }
269    /// <p>A timestamp of the date and time that the slot was created.</p>
270    pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
271        self.creation_date_time = ::std::option::Option::Some(input);
272        self
273    }
274    /// <p>A timestamp of the date and time that the slot was created.</p>
275    pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
276        self.creation_date_time = input;
277        self
278    }
279    /// <p>A timestamp of the date and time that the slot was created.</p>
280    pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
281        &self.creation_date_time
282    }
283    /// <p>A timestamp of the date and time that the slot was last updated.</p>
284    pub fn last_updated_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
285        self.last_updated_date_time = ::std::option::Option::Some(input);
286        self
287    }
288    /// <p>A timestamp of the date and time that the slot was last updated.</p>
289    pub fn set_last_updated_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
290        self.last_updated_date_time = input;
291        self
292    }
293    /// <p>A timestamp of the date and time that the slot was last updated.</p>
294    pub fn get_last_updated_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
295        &self.last_updated_date_time
296    }
297    /// <p>Indicates whether the slot accepts multiple values in a single utterance.</p>
298    /// <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p>
299    pub fn multiple_values_setting(mut self, input: crate::types::MultipleValuesSetting) -> Self {
300        self.multiple_values_setting = ::std::option::Option::Some(input);
301        self
302    }
303    /// <p>Indicates whether the slot accepts multiple values in a single utterance.</p>
304    /// <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p>
305    pub fn set_multiple_values_setting(mut self, input: ::std::option::Option<crate::types::MultipleValuesSetting>) -> Self {
306        self.multiple_values_setting = input;
307        self
308    }
309    /// <p>Indicates whether the slot accepts multiple values in a single utterance.</p>
310    /// <p>If the <code>multipleValuesSetting</code> is not set, the default value is <code>false</code>.</p>
311    pub fn get_multiple_values_setting(&self) -> &::std::option::Option<crate::types::MultipleValuesSetting> {
312        &self.multiple_values_setting
313    }
314    /// <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
315    pub fn sub_slot_setting(mut self, input: crate::types::SubSlotSetting) -> Self {
316        self.sub_slot_setting = ::std::option::Option::Some(input);
317        self
318    }
319    /// <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
320    pub fn set_sub_slot_setting(mut self, input: ::std::option::Option<crate::types::SubSlotSetting>) -> Self {
321        self.sub_slot_setting = input;
322        self
323    }
324    /// <p>Specifications for the constituent sub slots and the expression for the composite slot.</p>
325    pub fn get_sub_slot_setting(&self) -> &::std::option::Option<crate::types::SubSlotSetting> {
326        &self.sub_slot_setting
327    }
328    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
329        self._request_id = Some(request_id.into());
330        self
331    }
332
333    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
334        self._request_id = request_id;
335        self
336    }
337    /// Consumes the builder and constructs a [`DescribeSlotOutput`](crate::operation::describe_slot::DescribeSlotOutput).
338    pub fn build(self) -> crate::operation::describe_slot::DescribeSlotOutput {
339        crate::operation::describe_slot::DescribeSlotOutput {
340            slot_id: self.slot_id,
341            slot_name: self.slot_name,
342            description: self.description,
343            slot_type_id: self.slot_type_id,
344            value_elicitation_setting: self.value_elicitation_setting,
345            obfuscation_setting: self.obfuscation_setting,
346            bot_id: self.bot_id,
347            bot_version: self.bot_version,
348            locale_id: self.locale_id,
349            intent_id: self.intent_id,
350            creation_date_time: self.creation_date_time,
351            last_updated_date_time: self.last_updated_date_time,
352            multiple_values_setting: self.multiple_values_setting,
353            sub_slot_setting: self.sub_slot_setting,
354            _request_id: self._request_id,
355        }
356    }
357}