#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct FlywheelSummary {
pub flywheel_arn: ::std::option::Option<::std::string::String>,
pub active_model_arn: ::std::option::Option<::std::string::String>,
pub data_lake_s3_uri: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::FlywheelStatus>,
pub model_type: ::std::option::Option<crate::types::ModelType>,
pub message: ::std::option::Option<::std::string::String>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
}
impl FlywheelSummary {
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()
}
pub fn data_lake_s3_uri(&self) -> ::std::option::Option<&str> {
self.data_lake_s3_uri.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::FlywheelStatus> {
self.status.as_ref()
}
pub fn model_type(&self) -> ::std::option::Option<&crate::types::ModelType> {
self.model_type.as_ref()
}
pub fn message(&self) -> ::std::option::Option<&str> {
self.message.as_deref()
}
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
pub fn latest_flywheel_iteration(&self) -> ::std::option::Option<&str> {
self.latest_flywheel_iteration.as_deref()
}
}
impl FlywheelSummary {
pub fn builder() -> crate::types::builders::FlywheelSummaryBuilder {
crate::types::builders::FlywheelSummaryBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct FlywheelSummaryBuilder {
pub(crate) flywheel_arn: ::std::option::Option<::std::string::String>,
pub(crate) active_model_arn: ::std::option::Option<::std::string::String>,
pub(crate) data_lake_s3_uri: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::FlywheelStatus>,
pub(crate) model_type: ::std::option::Option<crate::types::ModelType>,
pub(crate) message: ::std::option::Option<::std::string::String>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) latest_flywheel_iteration: ::std::option::Option<::std::string::String>,
}
impl FlywheelSummaryBuilder {
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 active_model_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.active_model_arn = ::std::option::Option::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 fn get_active_model_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.active_model_arn
}
pub fn data_lake_s3_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_lake_s3_uri = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_lake_s3_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_lake_s3_uri = input;
self
}
pub fn get_data_lake_s3_uri(&self) -> &::std::option::Option<::std::string::String> {
&self.data_lake_s3_uri
}
pub fn status(mut self, input: crate::types::FlywheelStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::FlywheelStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::FlywheelStatus> {
&self.status
}
pub fn model_type(mut self, input: crate::types::ModelType) -> Self {
self.model_type = ::std::option::Option::Some(input);
self
}
pub fn set_model_type(mut self, input: ::std::option::Option<crate::types::ModelType>) -> Self {
self.model_type = input;
self
}
pub fn get_model_type(&self) -> &::std::option::Option<crate::types::ModelType> {
&self.model_type
}
pub fn message(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.message = ::std::option::Option::Some(input.into());
self
}
pub fn set_message(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.message = input;
self
}
pub fn get_message(&self) -> &::std::option::Option<::std::string::String> {
&self.message
}
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
pub fn latest_flywheel_iteration(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_flywheel_iteration = ::std::option::Option::Some(input.into());
self
}
pub fn set_latest_flywheel_iteration(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_flywheel_iteration = input;
self
}
pub fn get_latest_flywheel_iteration(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_flywheel_iteration
}
pub fn build(self) -> crate::types::FlywheelSummary {
crate::types::FlywheelSummary {
flywheel_arn: self.flywheel_arn,
active_model_arn: self.active_model_arn,
data_lake_s3_uri: self.data_lake_s3_uri,
status: self.status,
model_type: self.model_type,
message: self.message,
creation_time: self.creation_time,
last_modified_time: self.last_modified_time,
latest_flywheel_iteration: self.latest_flywheel_iteration,
}
}
}