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