1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[deprecated(note = "Amazon Lex V1 is deprecated. Use Amazon Lex V2 instead.", since = "2025-09-08")]
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetUtterancesViewInput {
/// <p>The name of the bot for which utterance information should be returned.</p>
pub bot_name: ::std::option::Option<::std::string::String>,
/// <p>An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.</p>
pub bot_versions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>To return utterances that were recognized and handled, use <code>Detected</code>. To return utterances that were not recognized, use <code>Missed</code>.</p>
pub status_type: ::std::option::Option<crate::types::StatusType>,
}
impl GetUtterancesViewInput {
/// <p>The name of the bot for which utterance information should be returned.</p>
pub fn bot_name(&self) -> ::std::option::Option<&str> {
self.bot_name.as_deref()
}
/// <p>An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.</p>
///
/// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.bot_versions.is_none()`.
pub fn bot_versions(&self) -> &[::std::string::String] {
self.bot_versions.as_deref().unwrap_or_default()
}
/// <p>To return utterances that were recognized and handled, use <code>Detected</code>. To return utterances that were not recognized, use <code>Missed</code>.</p>
pub fn status_type(&self) -> ::std::option::Option<&crate::types::StatusType> {
self.status_type.as_ref()
}
}
impl GetUtterancesViewInput {
/// Creates a new builder-style object to manufacture [`GetUtterancesViewInput`](crate::operation::get_utterances_view::GetUtterancesViewInput).
pub fn builder() -> crate::operation::get_utterances_view::builders::GetUtterancesViewInputBuilder {
crate::operation::get_utterances_view::builders::GetUtterancesViewInputBuilder::default()
}
}
/// A builder for [`GetUtterancesViewInput`](crate::operation::get_utterances_view::GetUtterancesViewInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetUtterancesViewInputBuilder {
pub(crate) bot_name: ::std::option::Option<::std::string::String>,
pub(crate) bot_versions: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) status_type: ::std::option::Option<crate::types::StatusType>,
}
impl GetUtterancesViewInputBuilder {
/// <p>The name of the bot for which utterance information should be returned.</p>
/// This field is required.
pub fn bot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bot_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the bot for which utterance information should be returned.</p>
pub fn set_bot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_name = input;
self
}
/// <p>The name of the bot for which utterance information should be returned.</p>
pub fn get_bot_name(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_name
}
/// Appends an item to `bot_versions`.
///
/// To override the contents of this collection use [`set_bot_versions`](Self::set_bot_versions).
///
/// <p>An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.</p>
pub fn bot_versions(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.bot_versions.unwrap_or_default();
v.push(input.into());
self.bot_versions = ::std::option::Option::Some(v);
self
}
/// <p>An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.</p>
pub fn set_bot_versions(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.bot_versions = input;
self
}
/// <p>An array of bot versions for which utterance information should be returned. The limit is 5 versions per request.</p>
pub fn get_bot_versions(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.bot_versions
}
/// <p>To return utterances that were recognized and handled, use <code>Detected</code>. To return utterances that were not recognized, use <code>Missed</code>.</p>
/// This field is required.
pub fn status_type(mut self, input: crate::types::StatusType) -> Self {
self.status_type = ::std::option::Option::Some(input);
self
}
/// <p>To return utterances that were recognized and handled, use <code>Detected</code>. To return utterances that were not recognized, use <code>Missed</code>.</p>
pub fn set_status_type(mut self, input: ::std::option::Option<crate::types::StatusType>) -> Self {
self.status_type = input;
self
}
/// <p>To return utterances that were recognized and handled, use <code>Detected</code>. To return utterances that were not recognized, use <code>Missed</code>.</p>
pub fn get_status_type(&self) -> &::std::option::Option<crate::types::StatusType> {
&self.status_type
}
/// Consumes the builder and constructs a [`GetUtterancesViewInput`](crate::operation::get_utterances_view::GetUtterancesViewInput).
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_utterances_view::GetUtterancesViewInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_utterances_view::GetUtterancesViewInput {
bot_name: self.bot_name,
bot_versions: self.bot_versions,
status_type: self.status_type,
})
}
}