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