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