#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBotInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub bot_id: ::std::option::Option<::std::string::String>,
pub disabled: ::std::option::Option<bool>,
}
impl UpdateBotInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn bot_id(&self) -> ::std::option::Option<&str> {
self.bot_id.as_deref()
}
pub fn disabled(&self) -> ::std::option::Option<bool> {
self.disabled
}
}
impl UpdateBotInput {
pub fn builder() -> crate::operation::update_bot::builders::UpdateBotInputBuilder {
crate::operation::update_bot::builders::UpdateBotInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateBotInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) bot_id: ::std::option::Option<::std::string::String>,
pub(crate) disabled: ::std::option::Option<bool>,
}
impl UpdateBotInputBuilder {
pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.account_id
}
pub fn bot_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.bot_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_bot_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.bot_id = input;
self
}
pub fn get_bot_id(&self) -> &::std::option::Option<::std::string::String> {
&self.bot_id
}
pub fn disabled(mut self, input: bool) -> Self {
self.disabled = ::std::option::Option::Some(input);
self
}
pub fn set_disabled(mut self, input: ::std::option::Option<bool>) -> Self {
self.disabled = input;
self
}
pub fn get_disabled(&self) -> &::std::option::Option<bool> {
&self.disabled
}
pub fn build(self) -> ::std::result::Result<crate::operation::update_bot::UpdateBotInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_bot::UpdateBotInput {
account_id: self.account_id,
bot_id: self.bot_id,
disabled: self.disabled,
})
}
}