aws-sdk-sagemaker 1.193.0

AWS SDK for Amazon SageMaker Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateMlflowAppInput {
    /// <p>The ARN of the MLflow App to update.</p>
    pub arn: ::std::option::Option<::std::string::String>,
    /// <p>The name of the MLflow App to update.</p>
    pub name: ::std::option::Option<::std::string::String>,
    /// <p>The new S3 URI for the general purpose bucket to use as the artifact store for the MLflow App.</p>
    pub artifact_store_uri: ::std::option::Option<::std::string::String>,
    /// <p>Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to <code>AutoModelRegistrationEnabled</code>. To disable automatic model registration, set this value to <code>AutoModelRegistrationDisabled</code>. If not specified, <code>AutomaticModelRegistration</code> defaults to <code>AutoModelRegistrationEnabled</code></p>
    pub model_registration_mode: ::std::option::Option<crate::types::ModelRegistrationMode>,
    /// <p>The new weekly maintenance window start day and time to update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30.</p>
    pub weekly_maintenance_window_start: ::std::option::Option<::std::string::String>,
    /// <p>List of SageMaker Domain IDs for which this MLflow App is the default.</p>
    pub default_domain_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    /// <p>Indicates whether this this MLflow App is the default for the account.</p>
    pub account_default_status: ::std::option::Option<crate::types::AccountDefaultStatus>,
}
impl UpdateMlflowAppInput {
    /// <p>The ARN of the MLflow App to update.</p>
    pub fn arn(&self) -> ::std::option::Option<&str> {
        self.arn.as_deref()
    }
    /// <p>The name of the MLflow App to update.</p>
    pub fn name(&self) -> ::std::option::Option<&str> {
        self.name.as_deref()
    }
    /// <p>The new S3 URI for the general purpose bucket to use as the artifact store for the MLflow App.</p>
    pub fn artifact_store_uri(&self) -> ::std::option::Option<&str> {
        self.artifact_store_uri.as_deref()
    }
    /// <p>Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to <code>AutoModelRegistrationEnabled</code>. To disable automatic model registration, set this value to <code>AutoModelRegistrationDisabled</code>. If not specified, <code>AutomaticModelRegistration</code> defaults to <code>AutoModelRegistrationEnabled</code></p>
    pub fn model_registration_mode(&self) -> ::std::option::Option<&crate::types::ModelRegistrationMode> {
        self.model_registration_mode.as_ref()
    }
    /// <p>The new weekly maintenance window start day and time to update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30.</p>
    pub fn weekly_maintenance_window_start(&self) -> ::std::option::Option<&str> {
        self.weekly_maintenance_window_start.as_deref()
    }
    /// <p>List of SageMaker Domain IDs for which this MLflow App is the default.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.default_domain_id_list.is_none()`.
    pub fn default_domain_id_list(&self) -> &[::std::string::String] {
        self.default_domain_id_list.as_deref().unwrap_or_default()
    }
    /// <p>Indicates whether this this MLflow App is the default for the account.</p>
    pub fn account_default_status(&self) -> ::std::option::Option<&crate::types::AccountDefaultStatus> {
        self.account_default_status.as_ref()
    }
}
impl UpdateMlflowAppInput {
    /// Creates a new builder-style object to manufacture [`UpdateMlflowAppInput`](crate::operation::update_mlflow_app::UpdateMlflowAppInput).
    pub fn builder() -> crate::operation::update_mlflow_app::builders::UpdateMlflowAppInputBuilder {
        crate::operation::update_mlflow_app::builders::UpdateMlflowAppInputBuilder::default()
    }
}

/// A builder for [`UpdateMlflowAppInput`](crate::operation::update_mlflow_app::UpdateMlflowAppInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateMlflowAppInputBuilder {
    pub(crate) arn: ::std::option::Option<::std::string::String>,
    pub(crate) name: ::std::option::Option<::std::string::String>,
    pub(crate) artifact_store_uri: ::std::option::Option<::std::string::String>,
    pub(crate) model_registration_mode: ::std::option::Option<crate::types::ModelRegistrationMode>,
    pub(crate) weekly_maintenance_window_start: ::std::option::Option<::std::string::String>,
    pub(crate) default_domain_id_list: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
    pub(crate) account_default_status: ::std::option::Option<crate::types::AccountDefaultStatus>,
}
impl UpdateMlflowAppInputBuilder {
    /// <p>The ARN of the MLflow App to update.</p>
    /// This field is required.
    pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ARN of the MLflow App to update.</p>
    pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.arn = input;
        self
    }
    /// <p>The ARN of the MLflow App to update.</p>
    pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.arn
    }
    /// <p>The name of the MLflow App to update.</p>
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the MLflow App to update.</p>
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.name = input;
        self
    }
    /// <p>The name of the MLflow App to update.</p>
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.name
    }
    /// <p>The new S3 URI for the general purpose bucket to use as the artifact store for the MLflow App.</p>
    pub fn artifact_store_uri(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.artifact_store_uri = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new S3 URI for the general purpose bucket to use as the artifact store for the MLflow App.</p>
    pub fn set_artifact_store_uri(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.artifact_store_uri = input;
        self
    }
    /// <p>The new S3 URI for the general purpose bucket to use as the artifact store for the MLflow App.</p>
    pub fn get_artifact_store_uri(&self) -> &::std::option::Option<::std::string::String> {
        &self.artifact_store_uri
    }
    /// <p>Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to <code>AutoModelRegistrationEnabled</code>. To disable automatic model registration, set this value to <code>AutoModelRegistrationDisabled</code>. If not specified, <code>AutomaticModelRegistration</code> defaults to <code>AutoModelRegistrationEnabled</code></p>
    pub fn model_registration_mode(mut self, input: crate::types::ModelRegistrationMode) -> Self {
        self.model_registration_mode = ::std::option::Option::Some(input);
        self
    }
    /// <p>Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to <code>AutoModelRegistrationEnabled</code>. To disable automatic model registration, set this value to <code>AutoModelRegistrationDisabled</code>. If not specified, <code>AutomaticModelRegistration</code> defaults to <code>AutoModelRegistrationEnabled</code></p>
    pub fn set_model_registration_mode(mut self, input: ::std::option::Option<crate::types::ModelRegistrationMode>) -> Self {
        self.model_registration_mode = input;
        self
    }
    /// <p>Whether to enable or disable automatic registration of new MLflow models to the SageMaker Model Registry. To enable automatic model registration, set this value to <code>AutoModelRegistrationEnabled</code>. To disable automatic model registration, set this value to <code>AutoModelRegistrationDisabled</code>. If not specified, <code>AutomaticModelRegistration</code> defaults to <code>AutoModelRegistrationEnabled</code></p>
    pub fn get_model_registration_mode(&self) -> &::std::option::Option<crate::types::ModelRegistrationMode> {
        &self.model_registration_mode
    }
    /// <p>The new weekly maintenance window start day and time to update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30.</p>
    pub fn weekly_maintenance_window_start(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.weekly_maintenance_window_start = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The new weekly maintenance window start day and time to update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30.</p>
    pub fn set_weekly_maintenance_window_start(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.weekly_maintenance_window_start = input;
        self
    }
    /// <p>The new weekly maintenance window start day and time to update. The maintenance window day and time should be in Coordinated Universal Time (UTC) 24-hour standard time. For example: TUE:03:30.</p>
    pub fn get_weekly_maintenance_window_start(&self) -> &::std::option::Option<::std::string::String> {
        &self.weekly_maintenance_window_start
    }
    /// Appends an item to `default_domain_id_list`.
    ///
    /// To override the contents of this collection use [`set_default_domain_id_list`](Self::set_default_domain_id_list).
    ///
    /// <p>List of SageMaker Domain IDs for which this MLflow App is the default.</p>
    pub fn default_domain_id_list(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        let mut v = self.default_domain_id_list.unwrap_or_default();
        v.push(input.into());
        self.default_domain_id_list = ::std::option::Option::Some(v);
        self
    }
    /// <p>List of SageMaker Domain IDs for which this MLflow App is the default.</p>
    pub fn set_default_domain_id_list(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
        self.default_domain_id_list = input;
        self
    }
    /// <p>List of SageMaker Domain IDs for which this MLflow App is the default.</p>
    pub fn get_default_domain_id_list(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
        &self.default_domain_id_list
    }
    /// <p>Indicates whether this this MLflow App is the default for the account.</p>
    pub fn account_default_status(mut self, input: crate::types::AccountDefaultStatus) -> Self {
        self.account_default_status = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether this this MLflow App is the default for the account.</p>
    pub fn set_account_default_status(mut self, input: ::std::option::Option<crate::types::AccountDefaultStatus>) -> Self {
        self.account_default_status = input;
        self
    }
    /// <p>Indicates whether this this MLflow App is the default for the account.</p>
    pub fn get_account_default_status(&self) -> &::std::option::Option<crate::types::AccountDefaultStatus> {
        &self.account_default_status
    }
    /// Consumes the builder and constructs a [`UpdateMlflowAppInput`](crate::operation::update_mlflow_app::UpdateMlflowAppInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_mlflow_app::UpdateMlflowAppInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_mlflow_app::UpdateMlflowAppInput {
            arn: self.arn,
            name: self.name,
            artifact_store_uri: self.artifact_store_uri,
            model_registration_mode: self.model_registration_mode,
            weekly_maintenance_window_start: self.weekly_maintenance_window_start,
            default_domain_id_list: self.default_domain_id_list,
            account_default_status: self.account_default_status,
        })
    }
}