#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateFlywheelInput {
pub flywheel_arn: ::std::option::Option<::std::string::String>,
pub active_model_arn: ::std::option::Option<::std::string::String>,
pub data_access_role_arn: ::std::option::Option<::std::string::String>,
pub data_security_config: ::std::option::Option<crate::types::UpdateDataSecurityConfig>,
}
impl UpdateFlywheelInput {
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_access_role_arn(&self) -> ::std::option::Option<&str> {
self.data_access_role_arn.as_deref()
}
pub fn data_security_config(&self) -> ::std::option::Option<&crate::types::UpdateDataSecurityConfig> {
self.data_security_config.as_ref()
}
}
impl UpdateFlywheelInput {
pub fn builder() -> crate::operation::update_flywheel::builders::UpdateFlywheelInputBuilder {
crate::operation::update_flywheel::builders::UpdateFlywheelInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateFlywheelInputBuilder {
pub(crate) flywheel_arn: ::std::option::Option<::std::string::String>,
pub(crate) active_model_arn: ::std::option::Option<::std::string::String>,
pub(crate) data_access_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) data_security_config: ::std::option::Option<crate::types::UpdateDataSecurityConfig>,
}
impl UpdateFlywheelInputBuilder {
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_access_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_access_role_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_access_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_access_role_arn = input;
self
}
pub fn get_data_access_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.data_access_role_arn
}
pub fn data_security_config(mut self, input: crate::types::UpdateDataSecurityConfig) -> Self {
self.data_security_config = ::std::option::Option::Some(input);
self
}
pub fn set_data_security_config(mut self, input: ::std::option::Option<crate::types::UpdateDataSecurityConfig>) -> Self {
self.data_security_config = input;
self
}
pub fn get_data_security_config(&self) -> &::std::option::Option<crate::types::UpdateDataSecurityConfig> {
&self.data_security_config
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_flywheel::UpdateFlywheelInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::update_flywheel::UpdateFlywheelInput {
flywheel_arn: self.flywheel_arn,
active_model_arn: self.active_model_arn,
data_access_role_arn: self.data_access_role_arn,
data_security_config: self.data_security_config,
})
}
}