#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeFlywheelInput {
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 ::std::convert::Into<::std::string::String>) -> Self {
self.flywheel_arn = ::std::option::Option::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 get_flywheel_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.flywheel_arn
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::describe_flywheel::DescribeFlywheelInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::describe_flywheel::DescribeFlywheelInput {
flywheel_arn: self.flywheel_arn,
})
}
}