#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RebootBrokerInput {
#[doc(hidden)]
pub broker_id: std::option::Option<std::string::String>,
}
impl RebootBrokerInput {
pub fn broker_id(&self) -> std::option::Option<&str> {
self.broker_id.as_deref()
}
}
impl RebootBrokerInput {
pub fn builder() -> crate::operation::reboot_broker::builders::RebootBrokerInputBuilder {
crate::operation::reboot_broker::builders::RebootBrokerInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct RebootBrokerInputBuilder {
pub(crate) broker_id: std::option::Option<std::string::String>,
}
impl RebootBrokerInputBuilder {
pub fn broker_id(mut self, input: impl Into<std::string::String>) -> Self {
self.broker_id = Some(input.into());
self
}
pub fn set_broker_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.broker_id = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::reboot_broker::RebootBrokerInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::reboot_broker::RebootBrokerInput {
broker_id: self.broker_id,
})
}
}