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