#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateBotInput {
pub account_id: ::std::option::Option<::std::string::String>,
pub display_name: ::std::option::Option<::std::string::String>,
pub domain: ::std::option::Option<::std::string::String>,
}
impl CreateBotInput {
pub fn account_id(&self) -> ::std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn domain(&self) -> ::std::option::Option<&str> {
self.domain.as_deref()
}
}
impl ::std::fmt::Debug for CreateBotInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateBotInput");
formatter.field("account_id", &self.account_id);
formatter.field("display_name", &"*** Sensitive Data Redacted ***");
formatter.field("domain", &self.domain);
formatter.finish()
}
}
impl CreateBotInput {
pub fn builder() -> crate::operation::create_bot::builders::CreateBotInputBuilder {
crate::operation::create_bot::builders::CreateBotInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
pub struct CreateBotInputBuilder {
pub(crate) account_id: ::std::option::Option<::std::string::String>,
pub(crate) display_name: ::std::option::Option<::std::string::String>,
pub(crate) domain: ::std::option::Option<::std::string::String>,
}
impl CreateBotInputBuilder {
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 display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
pub fn domain(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain = input;
self
}
pub fn get_domain(&self) -> &::std::option::Option<::std::string::String> {
&self.domain
}
pub fn build(self) -> ::std::result::Result<crate::operation::create_bot::CreateBotInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_bot::CreateBotInput {
account_id: self.account_id,
display_name: self.display_name,
domain: self.domain,
})
}
}
impl ::std::fmt::Debug for CreateBotInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateBotInputBuilder");
formatter.field("account_id", &self.account_id);
formatter.field("display_name", &"*** Sensitive Data Redacted ***");
formatter.field("domain", &self.domain);
formatter.finish()
}
}