1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
// 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,
})
}
}