#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CreateFlywheelOutput {
#[doc(hidden)]
pub flywheel_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub active_model_arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateFlywheelOutput {
pub fn flywheel_arn(&self) -> std::option::Option<&str> {
self.flywheel_arn.as_deref()
}
pub fn active_model_arn(&self) -> std::option::Option<&str> {
self.active_model_arn.as_deref()
}
}
impl aws_http::request_id::RequestId for CreateFlywheelOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateFlywheelOutput {
pub fn builder() -> crate::operation::create_flywheel::builders::CreateFlywheelOutputBuilder {
crate::operation::create_flywheel::builders::CreateFlywheelOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct CreateFlywheelOutputBuilder {
pub(crate) flywheel_arn: std::option::Option<std::string::String>,
pub(crate) active_model_arn: std::option::Option<std::string::String>,
_request_id: Option<String>,
}
impl CreateFlywheelOutputBuilder {
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 active_model_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.active_model_arn = Some(input.into());
self
}
pub fn set_active_model_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.active_model_arn = 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::create_flywheel::CreateFlywheelOutput {
crate::operation::create_flywheel::CreateFlywheelOutput {
flywheel_arn: self.flywheel_arn,
active_model_arn: self.active_model_arn,
_request_id: self._request_id,
}
}
}