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