#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateBotOutput {
#[doc(hidden)]
pub bot: std::option::Option<crate::types::Bot>,
_request_id: Option<String>,
}
impl UpdateBotOutput {
pub fn bot(&self) -> std::option::Option<&crate::types::Bot> {
self.bot.as_ref()
}
}
impl aws_http::request_id::RequestId for UpdateBotOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateBotOutput {
pub fn builder() -> crate::operation::update_bot::builders::UpdateBotOutputBuilder {
crate::operation::update_bot::builders::UpdateBotOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateBotOutputBuilder {
pub(crate) bot: std::option::Option<crate::types::Bot>,
_request_id: Option<String>,
}
impl UpdateBotOutputBuilder {
pub fn bot(mut self, input: crate::types::Bot) -> Self {
self.bot = Some(input);
self
}
pub fn set_bot(mut self, input: std::option::Option<crate::types::Bot>) -> Self {
self.bot = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::update_bot::UpdateBotOutput {
crate::operation::update_bot::UpdateBotOutput {
bot: self.bot,
_request_id: self._request_id,
}
}
}