#[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 DeleteIntentVersionInput {
pub name: ::std::option::Option<::std::string::String>,
pub version: ::std::option::Option<::std::string::String>,
}
impl DeleteIntentVersionInput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
}
impl DeleteIntentVersionInput {
pub fn builder() -> crate::operation::delete_intent_version::builders::DeleteIntentVersionInputBuilder {
crate::operation::delete_intent_version::builders::DeleteIntentVersionInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteIntentVersionInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) version: ::std::option::Option<::std::string::String>,
}
impl DeleteIntentVersionInputBuilder {
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_intent_version::DeleteIntentVersionInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_intent_version::DeleteIntentVersionInput {
name: self.name,
version: self.version,
})
}
}