aws_sdk_sagemaker/operation/update_notebook_instance/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::update_notebook_instance::_update_notebook_instance_output::UpdateNotebookInstanceOutputBuilder;
3
4pub use crate::operation::update_notebook_instance::_update_notebook_instance_input::UpdateNotebookInstanceInputBuilder;
5
6impl crate::operation::update_notebook_instance::builders::UpdateNotebookInstanceInputBuilder {
7    /// Sends a request with this input using the given client.
8    pub async fn send_with(
9        self,
10        client: &crate::Client,
11    ) -> ::std::result::Result<
12        crate::operation::update_notebook_instance::UpdateNotebookInstanceOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::update_notebook_instance::UpdateNotebookInstanceError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.update_notebook_instance();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `UpdateNotebookInstance`.
24///
25/// <p>Updates a notebook instance. NotebookInstance updates include upgrading or downgrading the ML compute instance used for your notebook instance to accommodate changes in your workload requirements.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct UpdateNotebookInstanceFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::update_notebook_instance::builders::UpdateNotebookInstanceInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::update_notebook_instance::UpdateNotebookInstanceOutput,
35        crate::operation::update_notebook_instance::UpdateNotebookInstanceError,
36    > for UpdateNotebookInstanceFluentBuilder
37{
38    fn send(
39        self,
40        config_override: crate::config::Builder,
41    ) -> crate::client::customize::internal::BoxFuture<
42        crate::client::customize::internal::SendResult<
43            crate::operation::update_notebook_instance::UpdateNotebookInstanceOutput,
44            crate::operation::update_notebook_instance::UpdateNotebookInstanceError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl UpdateNotebookInstanceFluentBuilder {
51    /// Creates a new `UpdateNotebookInstanceFluentBuilder`.
52    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53        Self {
54            handle,
55            inner: ::std::default::Default::default(),
56            config_override: ::std::option::Option::None,
57        }
58    }
59    /// Access the UpdateNotebookInstance as a reference.
60    pub fn as_input(&self) -> &crate::operation::update_notebook_instance::builders::UpdateNotebookInstanceInputBuilder {
61        &self.inner
62    }
63    /// Sends the request and returns the response.
64    ///
65    /// If an error occurs, an `SdkError` will be returned with additional details that
66    /// can be matched against.
67    ///
68    /// By default, any retryable failures will be retried twice. Retry behavior
69    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70    /// set when configuring the client.
71    pub async fn send(
72        self,
73    ) -> ::std::result::Result<
74        crate::operation::update_notebook_instance::UpdateNotebookInstanceOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::update_notebook_instance::UpdateNotebookInstanceError,
77            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78        >,
79    > {
80        let input = self
81            .inner
82            .build()
83            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84        let runtime_plugins = crate::operation::update_notebook_instance::UpdateNotebookInstance::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::update_notebook_instance::UpdateNotebookInstance::orchestrate(&runtime_plugins, input).await
90    }
91
92    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93    pub fn customize(
94        self,
95    ) -> crate::client::customize::CustomizableOperation<
96        crate::operation::update_notebook_instance::UpdateNotebookInstanceOutput,
97        crate::operation::update_notebook_instance::UpdateNotebookInstanceError,
98        Self,
99    > {
100        crate::client::customize::CustomizableOperation::new(self)
101    }
102    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103        self.set_config_override(::std::option::Option::Some(config_override.into()));
104        self
105    }
106
107    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108        self.config_override = config_override;
109        self
110    }
111    /// <p>The name of the notebook instance to update.</p>
112    pub fn notebook_instance_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.notebook_instance_name(input.into());
114        self
115    }
116    /// <p>The name of the notebook instance to update.</p>
117    pub fn set_notebook_instance_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_notebook_instance_name(input);
119        self
120    }
121    /// <p>The name of the notebook instance to update.</p>
122    pub fn get_notebook_instance_name(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_notebook_instance_name()
124    }
125    /// <p>The Amazon ML compute instance type.</p>
126    pub fn instance_type(mut self, input: crate::types::InstanceType) -> Self {
127        self.inner = self.inner.instance_type(input);
128        self
129    }
130    /// <p>The Amazon ML compute instance type.</p>
131    pub fn set_instance_type(mut self, input: ::std::option::Option<crate::types::InstanceType>) -> Self {
132        self.inner = self.inner.set_instance_type(input);
133        self
134    }
135    /// <p>The Amazon ML compute instance type.</p>
136    pub fn get_instance_type(&self) -> &::std::option::Option<crate::types::InstanceType> {
137        self.inner.get_instance_type()
138    }
139    /// <p>The IP address type for the notebook instance. Specify <code>ipv4</code> for IPv4-only connectivity or <code>dualstack</code> for both IPv4 and IPv6 connectivity. The notebook instance must be stopped before updating this setting. When you specify <code>dualstack</code>, the subnet must support IPv6 addressing.</p>
140    pub fn ip_address_type(mut self, input: crate::types::IpAddressType) -> Self {
141        self.inner = self.inner.ip_address_type(input);
142        self
143    }
144    /// <p>The IP address type for the notebook instance. Specify <code>ipv4</code> for IPv4-only connectivity or <code>dualstack</code> for both IPv4 and IPv6 connectivity. The notebook instance must be stopped before updating this setting. When you specify <code>dualstack</code>, the subnet must support IPv6 addressing.</p>
145    pub fn set_ip_address_type(mut self, input: ::std::option::Option<crate::types::IpAddressType>) -> Self {
146        self.inner = self.inner.set_ip_address_type(input);
147        self
148    }
149    /// <p>The IP address type for the notebook instance. Specify <code>ipv4</code> for IPv4-only connectivity or <code>dualstack</code> for both IPv4 and IPv6 connectivity. The notebook instance must be stopped before updating this setting. When you specify <code>dualstack</code>, the subnet must support IPv6 addressing.</p>
150    pub fn get_ip_address_type(&self) -> &::std::option::Option<crate::types::IpAddressType> {
151        self.inner.get_ip_address_type()
152    }
153    /// <p>The Amazon Resource Name (ARN) of the IAM role that SageMaker AI can assume to access the notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">SageMaker AI Roles</a>.</p><note>
154    /// <p>To be able to pass this role to SageMaker AI, the caller of this API must have the <code>iam:PassRole</code> permission.</p>
155    /// </note>
156    pub fn role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
157        self.inner = self.inner.role_arn(input.into());
158        self
159    }
160    /// <p>The Amazon Resource Name (ARN) of the IAM role that SageMaker AI can assume to access the notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">SageMaker AI Roles</a>.</p><note>
161    /// <p>To be able to pass this role to SageMaker AI, the caller of this API must have the <code>iam:PassRole</code> permission.</p>
162    /// </note>
163    pub fn set_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
164        self.inner = self.inner.set_role_arn(input);
165        self
166    }
167    /// <p>The Amazon Resource Name (ARN) of the IAM role that SageMaker AI can assume to access the notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">SageMaker AI Roles</a>.</p><note>
168    /// <p>To be able to pass this role to SageMaker AI, the caller of this API must have the <code>iam:PassRole</code> permission.</p>
169    /// </note>
170    pub fn get_role_arn(&self) -> &::std::option::Option<::std::string::String> {
171        self.inner.get_role_arn()
172    }
173    /// <p>The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html">Step 2.1: (Optional) Customize a Notebook Instance</a>.</p>
174    pub fn lifecycle_config_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
175        self.inner = self.inner.lifecycle_config_name(input.into());
176        self
177    }
178    /// <p>The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html">Step 2.1: (Optional) Customize a Notebook Instance</a>.</p>
179    pub fn set_lifecycle_config_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
180        self.inner = self.inner.set_lifecycle_config_name(input);
181        self
182    }
183    /// <p>The name of a lifecycle configuration to associate with the notebook instance. For information about lifestyle configurations, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html">Step 2.1: (Optional) Customize a Notebook Instance</a>.</p>
184    pub fn get_lifecycle_config_name(&self) -> &::std::option::Option<::std::string::String> {
185        self.inner.get_lifecycle_config_name()
186    }
187    /// <p>Set to <code>true</code> to remove the notebook instance lifecycle configuration currently associated with the notebook instance. This operation is idempotent. If you specify a lifecycle configuration that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
188    pub fn disassociate_lifecycle_config(mut self, input: bool) -> Self {
189        self.inner = self.inner.disassociate_lifecycle_config(input);
190        self
191    }
192    /// <p>Set to <code>true</code> to remove the notebook instance lifecycle configuration currently associated with the notebook instance. This operation is idempotent. If you specify a lifecycle configuration that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
193    pub fn set_disassociate_lifecycle_config(mut self, input: ::std::option::Option<bool>) -> Self {
194        self.inner = self.inner.set_disassociate_lifecycle_config(input);
195        self
196    }
197    /// <p>Set to <code>true</code> to remove the notebook instance lifecycle configuration currently associated with the notebook instance. This operation is idempotent. If you specify a lifecycle configuration that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
198    pub fn get_disassociate_lifecycle_config(&self) -> &::std::option::Option<bool> {
199        self.inner.get_disassociate_lifecycle_config()
200    }
201    /// <p>The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. ML storage volumes are encrypted, so SageMaker AI can't determine the amount of available free space on the volume. Because of this, you can increase the volume size when you update a notebook instance, but you can't decrease the volume size. If you want to decrease the size of the ML storage volume in use, create a new notebook instance with the desired size.</p>
202    pub fn volume_size_in_gb(mut self, input: i32) -> Self {
203        self.inner = self.inner.volume_size_in_gb(input);
204        self
205    }
206    /// <p>The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. ML storage volumes are encrypted, so SageMaker AI can't determine the amount of available free space on the volume. Because of this, you can increase the volume size when you update a notebook instance, but you can't decrease the volume size. If you want to decrease the size of the ML storage volume in use, create a new notebook instance with the desired size.</p>
207    pub fn set_volume_size_in_gb(mut self, input: ::std::option::Option<i32>) -> Self {
208        self.inner = self.inner.set_volume_size_in_gb(input);
209        self
210    }
211    /// <p>The size, in GB, of the ML storage volume to attach to the notebook instance. The default value is 5 GB. ML storage volumes are encrypted, so SageMaker AI can't determine the amount of available free space on the volume. Because of this, you can increase the volume size when you update a notebook instance, but you can't decrease the volume size. If you want to decrease the size of the ML storage volume in use, create a new notebook instance with the desired size.</p>
212    pub fn get_volume_size_in_gb(&self) -> &::std::option::Option<i32> {
213        self.inner.get_volume_size_in_gb()
214    }
215    /// <p>The Git repository to associate with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
216    pub fn default_code_repository(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
217        self.inner = self.inner.default_code_repository(input.into());
218        self
219    }
220    /// <p>The Git repository to associate with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
221    pub fn set_default_code_repository(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
222        self.inner = self.inner.set_default_code_repository(input);
223        self
224    }
225    /// <p>The Git repository to associate with the notebook instance as its default code repository. This can be either the name of a Git repository stored as a resource in your account, or the URL of a Git repository in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. When you open a notebook instance, it opens in the directory that contains this repository. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
226    pub fn get_default_code_repository(&self) -> &::std::option::Option<::std::string::String> {
227        self.inner.get_default_code_repository()
228    }
229    ///
230    /// Appends an item to `AdditionalCodeRepositories`.
231    ///
232    /// To override the contents of this collection use [`set_additional_code_repositories`](Self::set_additional_code_repositories).
233    ///
234    /// <p>An array of up to three Git repositories to associate with the notebook instance. These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
235    pub fn additional_code_repositories(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
236        self.inner = self.inner.additional_code_repositories(input.into());
237        self
238    }
239    /// <p>An array of up to three Git repositories to associate with the notebook instance. These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
240    pub fn set_additional_code_repositories(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
241        self.inner = self.inner.set_additional_code_repositories(input);
242        self
243    }
244    /// <p>An array of up to three Git repositories to associate with the notebook instance. These can be either the names of Git repositories stored as resources in your account, or the URL of Git repositories in <a href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">Amazon Web Services CodeCommit</a> or in any other Git repository. These repositories are cloned at the same level as the default repository of your notebook instance. For more information, see <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html">Associating Git Repositories with SageMaker AI Notebook Instances</a>.</p>
245    pub fn get_additional_code_repositories(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
246        self.inner.get_additional_code_repositories()
247    }
248    ///
249    /// Appends an item to `AcceleratorTypes`.
250    ///
251    /// To override the contents of this collection use [`set_accelerator_types`](Self::set_accelerator_types).
252    ///
253    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
254    /// <p>This parameter was used to specify a list of the EI instance types to associate with this notebook instance.</p>
255    pub fn accelerator_types(mut self, input: crate::types::NotebookInstanceAcceleratorType) -> Self {
256        self.inner = self.inner.accelerator_types(input);
257        self
258    }
259    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
260    /// <p>This parameter was used to specify a list of the EI instance types to associate with this notebook instance.</p>
261    pub fn set_accelerator_types(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NotebookInstanceAcceleratorType>>) -> Self {
262        self.inner = self.inner.set_accelerator_types(input);
263        self
264    }
265    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
266    /// <p>This parameter was used to specify a list of the EI instance types to associate with this notebook instance.</p>
267    pub fn get_accelerator_types(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NotebookInstanceAcceleratorType>> {
268        self.inner.get_accelerator_types()
269    }
270    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
271    /// <p>This parameter was used to specify a list of the EI instance types to remove from this notebook instance.</p>
272    pub fn disassociate_accelerator_types(mut self, input: bool) -> Self {
273        self.inner = self.inner.disassociate_accelerator_types(input);
274        self
275    }
276    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
277    /// <p>This parameter was used to specify a list of the EI instance types to remove from this notebook instance.</p>
278    pub fn set_disassociate_accelerator_types(mut self, input: ::std::option::Option<bool>) -> Self {
279        self.inner = self.inner.set_disassociate_accelerator_types(input);
280        self
281    }
282    /// <p>This parameter is no longer supported. Elastic Inference (EI) is no longer available.</p>
283    /// <p>This parameter was used to specify a list of the EI instance types to remove from this notebook instance.</p>
284    pub fn get_disassociate_accelerator_types(&self) -> &::std::option::Option<bool> {
285        self.inner.get_disassociate_accelerator_types()
286    }
287    /// <p>The name or URL of the default Git repository to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
288    pub fn disassociate_default_code_repository(mut self, input: bool) -> Self {
289        self.inner = self.inner.disassociate_default_code_repository(input);
290        self
291    }
292    /// <p>The name or URL of the default Git repository to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
293    pub fn set_disassociate_default_code_repository(mut self, input: ::std::option::Option<bool>) -> Self {
294        self.inner = self.inner.set_disassociate_default_code_repository(input);
295        self
296    }
297    /// <p>The name or URL of the default Git repository to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
298    pub fn get_disassociate_default_code_repository(&self) -> &::std::option::Option<bool> {
299        self.inner.get_disassociate_default_code_repository()
300    }
301    /// <p>A list of names or URLs of the default Git repositories to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
302    pub fn disassociate_additional_code_repositories(mut self, input: bool) -> Self {
303        self.inner = self.inner.disassociate_additional_code_repositories(input);
304        self
305    }
306    /// <p>A list of names or URLs of the default Git repositories to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
307    pub fn set_disassociate_additional_code_repositories(mut self, input: ::std::option::Option<bool>) -> Self {
308        self.inner = self.inner.set_disassociate_additional_code_repositories(input);
309        self
310    }
311    /// <p>A list of names or URLs of the default Git repositories to remove from this notebook instance. This operation is idempotent. If you specify a Git repository that is not associated with the notebook instance when you call this method, it does not throw an error.</p>
312    pub fn get_disassociate_additional_code_repositories(&self) -> &::std::option::Option<bool> {
313        self.inner.get_disassociate_additional_code_repositories()
314    }
315    /// <p>Whether root access is enabled or disabled for users of the notebook instance. The default value is <code>Enabled</code>.</p><note>
316    /// <p>If you set this to <code>Disabled</code>, users don't have root access on the notebook instance, but lifecycle configuration scripts still run with root permissions.</p>
317    /// </note>
318    pub fn root_access(mut self, input: crate::types::RootAccess) -> Self {
319        self.inner = self.inner.root_access(input);
320        self
321    }
322    /// <p>Whether root access is enabled or disabled for users of the notebook instance. The default value is <code>Enabled</code>.</p><note>
323    /// <p>If you set this to <code>Disabled</code>, users don't have root access on the notebook instance, but lifecycle configuration scripts still run with root permissions.</p>
324    /// </note>
325    pub fn set_root_access(mut self, input: ::std::option::Option<crate::types::RootAccess>) -> Self {
326        self.inner = self.inner.set_root_access(input);
327        self
328    }
329    /// <p>Whether root access is enabled or disabled for users of the notebook instance. The default value is <code>Enabled</code>.</p><note>
330    /// <p>If you set this to <code>Disabled</code>, users don't have root access on the notebook instance, but lifecycle configuration scripts still run with root permissions.</p>
331    /// </note>
332    pub fn get_root_access(&self) -> &::std::option::Option<crate::types::RootAccess> {
333        self.inner.get_root_access()
334    }
335    /// <p>Information on the IMDS configuration of the notebook instance</p>
336    pub fn instance_metadata_service_configuration(mut self, input: crate::types::InstanceMetadataServiceConfiguration) -> Self {
337        self.inner = self.inner.instance_metadata_service_configuration(input);
338        self
339    }
340    /// <p>Information on the IMDS configuration of the notebook instance</p>
341    pub fn set_instance_metadata_service_configuration(
342        mut self,
343        input: ::std::option::Option<crate::types::InstanceMetadataServiceConfiguration>,
344    ) -> Self {
345        self.inner = self.inner.set_instance_metadata_service_configuration(input);
346        self
347    }
348    /// <p>Information on the IMDS configuration of the notebook instance</p>
349    pub fn get_instance_metadata_service_configuration(&self) -> &::std::option::Option<crate::types::InstanceMetadataServiceConfiguration> {
350        self.inner.get_instance_metadata_service_configuration()
351    }
352}