#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescribeFlywheelOutput {
#[doc(hidden)]
pub flywheel_properties: std::option::Option<crate::types::FlywheelProperties>,
_request_id: Option<String>,
}
impl DescribeFlywheelOutput {
pub fn flywheel_properties(&self) -> std::option::Option<&crate::types::FlywheelProperties> {
self.flywheel_properties.as_ref()
}
}
impl aws_http::request_id::RequestId for DescribeFlywheelOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeFlywheelOutput {
pub fn builder() -> crate::operation::describe_flywheel::builders::DescribeFlywheelOutputBuilder
{
crate::operation::describe_flywheel::builders::DescribeFlywheelOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct DescribeFlywheelOutputBuilder {
pub(crate) flywheel_properties: std::option::Option<crate::types::FlywheelProperties>,
_request_id: Option<String>,
}
impl DescribeFlywheelOutputBuilder {
pub fn flywheel_properties(mut self, input: crate::types::FlywheelProperties) -> Self {
self.flywheel_properties = Some(input);
self
}
pub fn set_flywheel_properties(
mut self,
input: std::option::Option<crate::types::FlywheelProperties>,
) -> Self {
self.flywheel_properties = input;
self
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::describe_flywheel::DescribeFlywheelOutput {
crate::operation::describe_flywheel::DescribeFlywheelOutput {
flywheel_properties: self.flywheel_properties,
_request_id: self._request_id,
}
}
}