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