#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetBotAliasInput {
pub name: ::std::option::Option<::std::string::String>,
pub bot_name: ::std::option::Option<::std::string::String>,
}
impl GetBotAliasInput {
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
pub fn bot_name(&self) -> ::std::option::Option<&str> {
self.bot_name.as_deref()
}
}
impl GetBotAliasInput {
pub fn builder() -> crate::operation::get_bot_alias::builders::GetBotAliasInputBuilder {
crate::operation::get_bot_alias::builders::GetBotAliasInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct GetBotAliasInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) bot_name: ::std::option::Option<::std::string::String>,
}
impl GetBotAliasInputBuilder {
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 bot_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bot_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_bot_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_name = input;
self
}
pub fn get_bot_name(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_name
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_bot_alias::GetBotAliasInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_bot_alias::GetBotAliasInput {
name: self.name,
bot_name: self.bot_name,
})
}
}