#[allow(missing_docs)] #[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 GetBuiltinIntentOutput {
pub signature: ::std::option::Option<::std::string::String>,
pub supported_locales: ::std::option::Option<::std::vec::Vec<crate::types::Locale>>,
pub slots: ::std::option::Option<::std::vec::Vec<crate::types::BuiltinIntentSlot>>,
_request_id: Option<String>,
}
impl GetBuiltinIntentOutput {
pub fn signature(&self) -> ::std::option::Option<&str> {
self.signature.as_deref()
}
pub fn supported_locales(&self) -> &[crate::types::Locale] {
self.supported_locales.as_deref().unwrap_or_default()
}
pub fn slots(&self) -> &[crate::types::BuiltinIntentSlot] {
self.slots.as_deref().unwrap_or_default()
}
}
impl ::aws_types::request_id::RequestId for GetBuiltinIntentOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl GetBuiltinIntentOutput {
pub fn builder() -> crate::operation::get_builtin_intent::builders::GetBuiltinIntentOutputBuilder {
crate::operation::get_builtin_intent::builders::GetBuiltinIntentOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBuiltinIntentOutputBuilder {
pub(crate) signature: ::std::option::Option<::std::string::String>,
pub(crate) supported_locales: ::std::option::Option<::std::vec::Vec<crate::types::Locale>>,
pub(crate) slots: ::std::option::Option<::std::vec::Vec<crate::types::BuiltinIntentSlot>>,
_request_id: Option<String>,
}
impl GetBuiltinIntentOutputBuilder {
pub fn signature(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.signature = ::std::option::Option::Some(input.into());
self
}
pub fn set_signature(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.signature = input;
self
}
pub fn get_signature(&self) -> &::std::option::Option<::std::string::String> {
&self.signature
}
pub fn supported_locales(mut self, input: crate::types::Locale) -> Self {
let mut v = self.supported_locales.unwrap_or_default();
v.push(input);
self.supported_locales = ::std::option::Option::Some(v);
self
}
pub fn set_supported_locales(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Locale>>) -> Self {
self.supported_locales = input;
self
}
pub fn get_supported_locales(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Locale>> {
&self.supported_locales
}
pub fn slots(mut self, input: crate::types::BuiltinIntentSlot) -> Self {
let mut v = self.slots.unwrap_or_default();
v.push(input);
self.slots = ::std::option::Option::Some(v);
self
}
pub fn set_slots(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::BuiltinIntentSlot>>) -> Self {
self.slots = input;
self
}
pub fn get_slots(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::BuiltinIntentSlot>> {
&self.slots
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::get_builtin_intent::GetBuiltinIntentOutput {
crate::operation::get_builtin_intent::GetBuiltinIntentOutput {
signature: self.signature,
supported_locales: self.supported_locales,
slots: self.slots,
_request_id: self._request_id,
}
}
}