aws_sdk_lexmodelsv2/operation/create_intent/
_create_intent_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 CreateIntentOutput {
6    /// <p>A unique identifier for the intent.</p>
7    pub intent_id: ::std::option::Option<::std::string::String>,
8    /// <p>The name specified for the intent.</p>
9    pub intent_name: ::std::option::Option<::std::string::String>,
10    /// <p>The display name specified for the intent.</p>
11    pub intent_display_name: ::std::option::Option<::std::string::String>,
12    /// <p>The description specified for the intent.</p>
13    pub description: ::std::option::Option<::std::string::String>,
14    /// <p>The signature of the parent intent specified for the intent.</p>
15    pub parent_intent_signature: ::std::option::Option<::std::string::String>,
16    /// <p>The sample utterances specified for the intent.</p>
17    pub sample_utterances: ::std::option::Option<::std::vec::Vec<crate::types::SampleUtterance>>,
18    /// <p>The dialog Lambda function specified for the intent.</p>
19    pub dialog_code_hook: ::std::option::Option<crate::types::DialogCodeHookSettings>,
20    /// <p>The fulfillment Lambda function specified for the intent.</p>
21    pub fulfillment_code_hook: ::std::option::Option<crate::types::FulfillmentCodeHookSettings>,
22    /// <p>The confirmation setting specified for the intent.</p>
23    pub intent_confirmation_setting: ::std::option::Option<crate::types::IntentConfirmationSetting>,
24    /// <p>The closing setting specified for the intent.</p>
25    pub intent_closing_setting: ::std::option::Option<crate::types::IntentClosingSetting>,
26    /// <p>The list of input contexts specified for the intent.</p>
27    pub input_contexts: ::std::option::Option<::std::vec::Vec<crate::types::InputContext>>,
28    /// <p>The list of output contexts specified for the intent.</p>
29    pub output_contexts: ::std::option::Option<::std::vec::Vec<crate::types::OutputContext>>,
30    /// <p>Configuration for searching a Amazon Kendra index specified for the intent.</p>
31    pub kendra_configuration: ::std::option::Option<crate::types::KendraConfiguration>,
32    /// <p>The identifier of the bot associated with the intent.</p>
33    pub bot_id: ::std::option::Option<::std::string::String>,
34    /// <p>The version of the bot associated with the intent.</p>
35    pub bot_version: ::std::option::Option<::std::string::String>,
36    /// <p>The locale that the intent is specified to use.</p>
37    pub locale_id: ::std::option::Option<::std::string::String>,
38    /// <p>A timestamp of the date and time that the intent was created.</p>
39    pub creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
40    /// <p>Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.</p>
41    pub initial_response_setting: ::std::option::Option<crate::types::InitialResponseSetting>,
42    /// <p>Details about the the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
43    pub qn_a_intent_configuration: ::std::option::Option<crate::types::QnAIntentConfiguration>,
44    /// <p>Qinconnect intent configuration details for the create intent response.</p>
45    pub q_in_connect_intent_configuration: ::std::option::Option<crate::types::QInConnectIntentConfiguration>,
46    _request_id: Option<String>,
47}
48impl CreateIntentOutput {
49    /// <p>A unique identifier for the intent.</p>
50    pub fn intent_id(&self) -> ::std::option::Option<&str> {
51        self.intent_id.as_deref()
52    }
53    /// <p>The name specified for the intent.</p>
54    pub fn intent_name(&self) -> ::std::option::Option<&str> {
55        self.intent_name.as_deref()
56    }
57    /// <p>The display name specified for the intent.</p>
58    pub fn intent_display_name(&self) -> ::std::option::Option<&str> {
59        self.intent_display_name.as_deref()
60    }
61    /// <p>The description specified for the intent.</p>
62    pub fn description(&self) -> ::std::option::Option<&str> {
63        self.description.as_deref()
64    }
65    /// <p>The signature of the parent intent specified for the intent.</p>
66    pub fn parent_intent_signature(&self) -> ::std::option::Option<&str> {
67        self.parent_intent_signature.as_deref()
68    }
69    /// <p>The sample utterances specified for the intent.</p>
70    ///
71    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sample_utterances.is_none()`.
72    pub fn sample_utterances(&self) -> &[crate::types::SampleUtterance] {
73        self.sample_utterances.as_deref().unwrap_or_default()
74    }
75    /// <p>The dialog Lambda function specified for the intent.</p>
76    pub fn dialog_code_hook(&self) -> ::std::option::Option<&crate::types::DialogCodeHookSettings> {
77        self.dialog_code_hook.as_ref()
78    }
79    /// <p>The fulfillment Lambda function specified for the intent.</p>
80    pub fn fulfillment_code_hook(&self) -> ::std::option::Option<&crate::types::FulfillmentCodeHookSettings> {
81        self.fulfillment_code_hook.as_ref()
82    }
83    /// <p>The confirmation setting specified for the intent.</p>
84    pub fn intent_confirmation_setting(&self) -> ::std::option::Option<&crate::types::IntentConfirmationSetting> {
85        self.intent_confirmation_setting.as_ref()
86    }
87    /// <p>The closing setting specified for the intent.</p>
88    pub fn intent_closing_setting(&self) -> ::std::option::Option<&crate::types::IntentClosingSetting> {
89        self.intent_closing_setting.as_ref()
90    }
91    /// <p>The list of input contexts specified for the intent.</p>
92    ///
93    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.input_contexts.is_none()`.
94    pub fn input_contexts(&self) -> &[crate::types::InputContext] {
95        self.input_contexts.as_deref().unwrap_or_default()
96    }
97    /// <p>The list of output contexts specified for the intent.</p>
98    ///
99    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.output_contexts.is_none()`.
100    pub fn output_contexts(&self) -> &[crate::types::OutputContext] {
101        self.output_contexts.as_deref().unwrap_or_default()
102    }
103    /// <p>Configuration for searching a Amazon Kendra index specified for the intent.</p>
104    pub fn kendra_configuration(&self) -> ::std::option::Option<&crate::types::KendraConfiguration> {
105        self.kendra_configuration.as_ref()
106    }
107    /// <p>The identifier of the bot associated with the intent.</p>
108    pub fn bot_id(&self) -> ::std::option::Option<&str> {
109        self.bot_id.as_deref()
110    }
111    /// <p>The version of the bot associated with the intent.</p>
112    pub fn bot_version(&self) -> ::std::option::Option<&str> {
113        self.bot_version.as_deref()
114    }
115    /// <p>The locale that the intent is specified to use.</p>
116    pub fn locale_id(&self) -> ::std::option::Option<&str> {
117        self.locale_id.as_deref()
118    }
119    /// <p>A timestamp of the date and time that the intent was created.</p>
120    pub fn creation_date_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
121        self.creation_date_time.as_ref()
122    }
123    /// <p>Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.</p>
124    pub fn initial_response_setting(&self) -> ::std::option::Option<&crate::types::InitialResponseSetting> {
125        self.initial_response_setting.as_ref()
126    }
127    /// <p>Details about the the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
128    pub fn qn_a_intent_configuration(&self) -> ::std::option::Option<&crate::types::QnAIntentConfiguration> {
129        self.qn_a_intent_configuration.as_ref()
130    }
131    /// <p>Qinconnect intent configuration details for the create intent response.</p>
132    pub fn q_in_connect_intent_configuration(&self) -> ::std::option::Option<&crate::types::QInConnectIntentConfiguration> {
133        self.q_in_connect_intent_configuration.as_ref()
134    }
135}
136impl ::aws_types::request_id::RequestId for CreateIntentOutput {
137    fn request_id(&self) -> Option<&str> {
138        self._request_id.as_deref()
139    }
140}
141impl CreateIntentOutput {
142    /// Creates a new builder-style object to manufacture [`CreateIntentOutput`](crate::operation::create_intent::CreateIntentOutput).
143    pub fn builder() -> crate::operation::create_intent::builders::CreateIntentOutputBuilder {
144        crate::operation::create_intent::builders::CreateIntentOutputBuilder::default()
145    }
146}
147
148/// A builder for [`CreateIntentOutput`](crate::operation::create_intent::CreateIntentOutput).
149#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
150#[non_exhaustive]
151pub struct CreateIntentOutputBuilder {
152    pub(crate) intent_id: ::std::option::Option<::std::string::String>,
153    pub(crate) intent_name: ::std::option::Option<::std::string::String>,
154    pub(crate) intent_display_name: ::std::option::Option<::std::string::String>,
155    pub(crate) description: ::std::option::Option<::std::string::String>,
156    pub(crate) parent_intent_signature: ::std::option::Option<::std::string::String>,
157    pub(crate) sample_utterances: ::std::option::Option<::std::vec::Vec<crate::types::SampleUtterance>>,
158    pub(crate) dialog_code_hook: ::std::option::Option<crate::types::DialogCodeHookSettings>,
159    pub(crate) fulfillment_code_hook: ::std::option::Option<crate::types::FulfillmentCodeHookSettings>,
160    pub(crate) intent_confirmation_setting: ::std::option::Option<crate::types::IntentConfirmationSetting>,
161    pub(crate) intent_closing_setting: ::std::option::Option<crate::types::IntentClosingSetting>,
162    pub(crate) input_contexts: ::std::option::Option<::std::vec::Vec<crate::types::InputContext>>,
163    pub(crate) output_contexts: ::std::option::Option<::std::vec::Vec<crate::types::OutputContext>>,
164    pub(crate) kendra_configuration: ::std::option::Option<crate::types::KendraConfiguration>,
165    pub(crate) bot_id: ::std::option::Option<::std::string::String>,
166    pub(crate) bot_version: ::std::option::Option<::std::string::String>,
167    pub(crate) locale_id: ::std::option::Option<::std::string::String>,
168    pub(crate) creation_date_time: ::std::option::Option<::aws_smithy_types::DateTime>,
169    pub(crate) initial_response_setting: ::std::option::Option<crate::types::InitialResponseSetting>,
170    pub(crate) qn_a_intent_configuration: ::std::option::Option<crate::types::QnAIntentConfiguration>,
171    pub(crate) q_in_connect_intent_configuration: ::std::option::Option<crate::types::QInConnectIntentConfiguration>,
172    _request_id: Option<String>,
173}
174impl CreateIntentOutputBuilder {
175    /// <p>A unique identifier for the intent.</p>
176    pub fn intent_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
177        self.intent_id = ::std::option::Option::Some(input.into());
178        self
179    }
180    /// <p>A unique identifier for the intent.</p>
181    pub fn set_intent_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182        self.intent_id = input;
183        self
184    }
185    /// <p>A unique identifier for the intent.</p>
186    pub fn get_intent_id(&self) -> &::std::option::Option<::std::string::String> {
187        &self.intent_id
188    }
189    /// <p>The name specified for the intent.</p>
190    pub fn intent_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
191        self.intent_name = ::std::option::Option::Some(input.into());
192        self
193    }
194    /// <p>The name specified for the intent.</p>
195    pub fn set_intent_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
196        self.intent_name = input;
197        self
198    }
199    /// <p>The name specified for the intent.</p>
200    pub fn get_intent_name(&self) -> &::std::option::Option<::std::string::String> {
201        &self.intent_name
202    }
203    /// <p>The display name specified for the intent.</p>
204    pub fn intent_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
205        self.intent_display_name = ::std::option::Option::Some(input.into());
206        self
207    }
208    /// <p>The display name specified for the intent.</p>
209    pub fn set_intent_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
210        self.intent_display_name = input;
211        self
212    }
213    /// <p>The display name specified for the intent.</p>
214    pub fn get_intent_display_name(&self) -> &::std::option::Option<::std::string::String> {
215        &self.intent_display_name
216    }
217    /// <p>The description specified for the intent.</p>
218    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
219        self.description = ::std::option::Option::Some(input.into());
220        self
221    }
222    /// <p>The description specified for the intent.</p>
223    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
224        self.description = input;
225        self
226    }
227    /// <p>The description specified for the intent.</p>
228    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
229        &self.description
230    }
231    /// <p>The signature of the parent intent specified for the intent.</p>
232    pub fn parent_intent_signature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
233        self.parent_intent_signature = ::std::option::Option::Some(input.into());
234        self
235    }
236    /// <p>The signature of the parent intent specified for the intent.</p>
237    pub fn set_parent_intent_signature(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
238        self.parent_intent_signature = input;
239        self
240    }
241    /// <p>The signature of the parent intent specified for the intent.</p>
242    pub fn get_parent_intent_signature(&self) -> &::std::option::Option<::std::string::String> {
243        &self.parent_intent_signature
244    }
245    /// Appends an item to `sample_utterances`.
246    ///
247    /// To override the contents of this collection use [`set_sample_utterances`](Self::set_sample_utterances).
248    ///
249    /// <p>The sample utterances specified for the intent.</p>
250    pub fn sample_utterances(mut self, input: crate::types::SampleUtterance) -> Self {
251        let mut v = self.sample_utterances.unwrap_or_default();
252        v.push(input);
253        self.sample_utterances = ::std::option::Option::Some(v);
254        self
255    }
256    /// <p>The sample utterances specified for the intent.</p>
257    pub fn set_sample_utterances(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::SampleUtterance>>) -> Self {
258        self.sample_utterances = input;
259        self
260    }
261    /// <p>The sample utterances specified for the intent.</p>
262    pub fn get_sample_utterances(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::SampleUtterance>> {
263        &self.sample_utterances
264    }
265    /// <p>The dialog Lambda function specified for the intent.</p>
266    pub fn dialog_code_hook(mut self, input: crate::types::DialogCodeHookSettings) -> Self {
267        self.dialog_code_hook = ::std::option::Option::Some(input);
268        self
269    }
270    /// <p>The dialog Lambda function specified for the intent.</p>
271    pub fn set_dialog_code_hook(mut self, input: ::std::option::Option<crate::types::DialogCodeHookSettings>) -> Self {
272        self.dialog_code_hook = input;
273        self
274    }
275    /// <p>The dialog Lambda function specified for the intent.</p>
276    pub fn get_dialog_code_hook(&self) -> &::std::option::Option<crate::types::DialogCodeHookSettings> {
277        &self.dialog_code_hook
278    }
279    /// <p>The fulfillment Lambda function specified for the intent.</p>
280    pub fn fulfillment_code_hook(mut self, input: crate::types::FulfillmentCodeHookSettings) -> Self {
281        self.fulfillment_code_hook = ::std::option::Option::Some(input);
282        self
283    }
284    /// <p>The fulfillment Lambda function specified for the intent.</p>
285    pub fn set_fulfillment_code_hook(mut self, input: ::std::option::Option<crate::types::FulfillmentCodeHookSettings>) -> Self {
286        self.fulfillment_code_hook = input;
287        self
288    }
289    /// <p>The fulfillment Lambda function specified for the intent.</p>
290    pub fn get_fulfillment_code_hook(&self) -> &::std::option::Option<crate::types::FulfillmentCodeHookSettings> {
291        &self.fulfillment_code_hook
292    }
293    /// <p>The confirmation setting specified for the intent.</p>
294    pub fn intent_confirmation_setting(mut self, input: crate::types::IntentConfirmationSetting) -> Self {
295        self.intent_confirmation_setting = ::std::option::Option::Some(input);
296        self
297    }
298    /// <p>The confirmation setting specified for the intent.</p>
299    pub fn set_intent_confirmation_setting(mut self, input: ::std::option::Option<crate::types::IntentConfirmationSetting>) -> Self {
300        self.intent_confirmation_setting = input;
301        self
302    }
303    /// <p>The confirmation setting specified for the intent.</p>
304    pub fn get_intent_confirmation_setting(&self) -> &::std::option::Option<crate::types::IntentConfirmationSetting> {
305        &self.intent_confirmation_setting
306    }
307    /// <p>The closing setting specified for the intent.</p>
308    pub fn intent_closing_setting(mut self, input: crate::types::IntentClosingSetting) -> Self {
309        self.intent_closing_setting = ::std::option::Option::Some(input);
310        self
311    }
312    /// <p>The closing setting specified for the intent.</p>
313    pub fn set_intent_closing_setting(mut self, input: ::std::option::Option<crate::types::IntentClosingSetting>) -> Self {
314        self.intent_closing_setting = input;
315        self
316    }
317    /// <p>The closing setting specified for the intent.</p>
318    pub fn get_intent_closing_setting(&self) -> &::std::option::Option<crate::types::IntentClosingSetting> {
319        &self.intent_closing_setting
320    }
321    /// Appends an item to `input_contexts`.
322    ///
323    /// To override the contents of this collection use [`set_input_contexts`](Self::set_input_contexts).
324    ///
325    /// <p>The list of input contexts specified for the intent.</p>
326    pub fn input_contexts(mut self, input: crate::types::InputContext) -> Self {
327        let mut v = self.input_contexts.unwrap_or_default();
328        v.push(input);
329        self.input_contexts = ::std::option::Option::Some(v);
330        self
331    }
332    /// <p>The list of input contexts specified for the intent.</p>
333    pub fn set_input_contexts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InputContext>>) -> Self {
334        self.input_contexts = input;
335        self
336    }
337    /// <p>The list of input contexts specified for the intent.</p>
338    pub fn get_input_contexts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InputContext>> {
339        &self.input_contexts
340    }
341    /// Appends an item to `output_contexts`.
342    ///
343    /// To override the contents of this collection use [`set_output_contexts`](Self::set_output_contexts).
344    ///
345    /// <p>The list of output contexts specified for the intent.</p>
346    pub fn output_contexts(mut self, input: crate::types::OutputContext) -> Self {
347        let mut v = self.output_contexts.unwrap_or_default();
348        v.push(input);
349        self.output_contexts = ::std::option::Option::Some(v);
350        self
351    }
352    /// <p>The list of output contexts specified for the intent.</p>
353    pub fn set_output_contexts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::OutputContext>>) -> Self {
354        self.output_contexts = input;
355        self
356    }
357    /// <p>The list of output contexts specified for the intent.</p>
358    pub fn get_output_contexts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::OutputContext>> {
359        &self.output_contexts
360    }
361    /// <p>Configuration for searching a Amazon Kendra index specified for the intent.</p>
362    pub fn kendra_configuration(mut self, input: crate::types::KendraConfiguration) -> Self {
363        self.kendra_configuration = ::std::option::Option::Some(input);
364        self
365    }
366    /// <p>Configuration for searching a Amazon Kendra index specified for the intent.</p>
367    pub fn set_kendra_configuration(mut self, input: ::std::option::Option<crate::types::KendraConfiguration>) -> Self {
368        self.kendra_configuration = input;
369        self
370    }
371    /// <p>Configuration for searching a Amazon Kendra index specified for the intent.</p>
372    pub fn get_kendra_configuration(&self) -> &::std::option::Option<crate::types::KendraConfiguration> {
373        &self.kendra_configuration
374    }
375    /// <p>The identifier of the bot associated with the intent.</p>
376    pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
377        self.bot_id = ::std::option::Option::Some(input.into());
378        self
379    }
380    /// <p>The identifier of the bot associated with the intent.</p>
381    pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
382        self.bot_id = input;
383        self
384    }
385    /// <p>The identifier of the bot associated with the intent.</p>
386    pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
387        &self.bot_id
388    }
389    /// <p>The version of the bot associated with the intent.</p>
390    pub fn bot_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
391        self.bot_version = ::std::option::Option::Some(input.into());
392        self
393    }
394    /// <p>The version of the bot associated with the intent.</p>
395    pub fn set_bot_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
396        self.bot_version = input;
397        self
398    }
399    /// <p>The version of the bot associated with the intent.</p>
400    pub fn get_bot_version(&self) -> &::std::option::Option<::std::string::String> {
401        &self.bot_version
402    }
403    /// <p>The locale that the intent is specified to use.</p>
404    pub fn locale_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
405        self.locale_id = ::std::option::Option::Some(input.into());
406        self
407    }
408    /// <p>The locale that the intent is specified to use.</p>
409    pub fn set_locale_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
410        self.locale_id = input;
411        self
412    }
413    /// <p>The locale that the intent is specified to use.</p>
414    pub fn get_locale_id(&self) -> &::std::option::Option<::std::string::String> {
415        &self.locale_id
416    }
417    /// <p>A timestamp of the date and time that the intent was created.</p>
418    pub fn creation_date_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
419        self.creation_date_time = ::std::option::Option::Some(input);
420        self
421    }
422    /// <p>A timestamp of the date and time that the intent was created.</p>
423    pub fn set_creation_date_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
424        self.creation_date_time = input;
425        self
426    }
427    /// <p>A timestamp of the date and time that the intent was created.</p>
428    pub fn get_creation_date_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
429        &self.creation_date_time
430    }
431    /// <p>Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.</p>
432    pub fn initial_response_setting(mut self, input: crate::types::InitialResponseSetting) -> Self {
433        self.initial_response_setting = ::std::option::Option::Some(input);
434        self
435    }
436    /// <p>Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.</p>
437    pub fn set_initial_response_setting(mut self, input: ::std::option::Option<crate::types::InitialResponseSetting>) -> Self {
438        self.initial_response_setting = input;
439        self
440    }
441    /// <p>Configuration settings for the response that is sent to the user at the beginning of a conversation, before eliciting slot values.</p>
442    pub fn get_initial_response_setting(&self) -> &::std::option::Option<crate::types::InitialResponseSetting> {
443        &self.initial_response_setting
444    }
445    /// <p>Details about the the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
446    pub fn qn_a_intent_configuration(mut self, input: crate::types::QnAIntentConfiguration) -> Self {
447        self.qn_a_intent_configuration = ::std::option::Option::Some(input);
448        self
449    }
450    /// <p>Details about the the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
451    pub fn set_qn_a_intent_configuration(mut self, input: ::std::option::Option<crate::types::QnAIntentConfiguration>) -> Self {
452        self.qn_a_intent_configuration = input;
453        self
454    }
455    /// <p>Details about the the configuration of the built-in <code>Amazon.QnAIntent</code>.</p>
456    pub fn get_qn_a_intent_configuration(&self) -> &::std::option::Option<crate::types::QnAIntentConfiguration> {
457        &self.qn_a_intent_configuration
458    }
459    /// <p>Qinconnect intent configuration details for the create intent response.</p>
460    pub fn q_in_connect_intent_configuration(mut self, input: crate::types::QInConnectIntentConfiguration) -> Self {
461        self.q_in_connect_intent_configuration = ::std::option::Option::Some(input);
462        self
463    }
464    /// <p>Qinconnect intent configuration details for the create intent response.</p>
465    pub fn set_q_in_connect_intent_configuration(mut self, input: ::std::option::Option<crate::types::QInConnectIntentConfiguration>) -> Self {
466        self.q_in_connect_intent_configuration = input;
467        self
468    }
469    /// <p>Qinconnect intent configuration details for the create intent response.</p>
470    pub fn get_q_in_connect_intent_configuration(&self) -> &::std::option::Option<crate::types::QInConnectIntentConfiguration> {
471        &self.q_in_connect_intent_configuration
472    }
473    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
474        self._request_id = Some(request_id.into());
475        self
476    }
477
478    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
479        self._request_id = request_id;
480        self
481    }
482    /// Consumes the builder and constructs a [`CreateIntentOutput`](crate::operation::create_intent::CreateIntentOutput).
483    pub fn build(self) -> crate::operation::create_intent::CreateIntentOutput {
484        crate::operation::create_intent::CreateIntentOutput {
485            intent_id: self.intent_id,
486            intent_name: self.intent_name,
487            intent_display_name: self.intent_display_name,
488            description: self.description,
489            parent_intent_signature: self.parent_intent_signature,
490            sample_utterances: self.sample_utterances,
491            dialog_code_hook: self.dialog_code_hook,
492            fulfillment_code_hook: self.fulfillment_code_hook,
493            intent_confirmation_setting: self.intent_confirmation_setting,
494            intent_closing_setting: self.intent_closing_setting,
495            input_contexts: self.input_contexts,
496            output_contexts: self.output_contexts,
497            kendra_configuration: self.kendra_configuration,
498            bot_id: self.bot_id,
499            bot_version: self.bot_version,
500            locale_id: self.locale_id,
501            creation_date_time: self.creation_date_time,
502            initial_response_setting: self.initial_response_setting,
503            qn_a_intent_configuration: self.qn_a_intent_configuration,
504            q_in_connect_intent_configuration: self.q_in_connect_intent_configuration,
505            _request_id: self._request_id,
506        }
507    }
508}