/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace SageMaker { namespace Model { /** */ class UpdateNotebookInstanceRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API UpdateNotebookInstanceRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateNotebookInstance"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the notebook instance to update.

*/ inline const Aws::String& GetNotebookInstanceName() const{ return m_notebookInstanceName; } /** *

The name of the notebook instance to update.

*/ inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; } /** *

The name of the notebook instance to update.

*/ inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; } /** *

The name of the notebook instance to update.

*/ inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); } /** *

The name of the notebook instance to update.

*/ inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); } /** *

The name of the notebook instance to update.

*/ inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(const Aws::String& value) { SetNotebookInstanceName(value); return *this;} /** *

The name of the notebook instance to update.

*/ inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(Aws::String&& value) { SetNotebookInstanceName(std::move(value)); return *this;} /** *

The name of the notebook instance to update.

*/ inline UpdateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;} /** *

The Amazon ML compute instance type.

*/ inline const InstanceType& GetInstanceType() const{ return m_instanceType; } /** *

The Amazon ML compute instance type.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The Amazon ML compute instance type.

*/ inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The Amazon ML compute instance type.

*/ inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The Amazon ML compute instance type.

*/ inline UpdateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;} /** *

The Amazon ML compute instance type.

*/ inline UpdateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline UpdateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline UpdateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that SageMaker can assume to * access the notebook instance. For more information, see SageMaker * Roles.

To be able to pass this role to SageMaker, the caller * of this API must have the iam:PassRole permission.

*/ inline UpdateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; } /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; } /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; } /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); } /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); } /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(const Aws::String& value) { SetLifecycleConfigName(value); return *this;} /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(Aws::String&& value) { SetLifecycleConfigName(std::move(value)); return *this;} /** *

The name of a lifecycle configuration to associate with the notebook * instance. For information about lifestyle configurations, see Step * 2.1: (Optional) Customize a Notebook Instance.

*/ inline UpdateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;} /** *

Set to true 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.

*/ inline bool GetDisassociateLifecycleConfig() const{ return m_disassociateLifecycleConfig; } /** *

Set to true 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.

*/ inline bool DisassociateLifecycleConfigHasBeenSet() const { return m_disassociateLifecycleConfigHasBeenSet; } /** *

Set to true 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.

*/ inline void SetDisassociateLifecycleConfig(bool value) { m_disassociateLifecycleConfigHasBeenSet = true; m_disassociateLifecycleConfig = value; } /** *

Set to true 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.

*/ inline UpdateNotebookInstanceRequest& WithDisassociateLifecycleConfig(bool value) { SetDisassociateLifecycleConfig(value); return *this;} /** *

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 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.

*/ inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; } /** *

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 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.

*/ inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; } /** *

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 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.

*/ inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; } /** *

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 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.

*/ inline UpdateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(const Aws::String& value) { SetDefaultCodeRepository(value); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(Aws::String&& value) { SetDefaultCodeRepository(std::move(value)); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline const Aws::Vector& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline void SetAdditionalCodeRepositories(const Aws::Vector& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline void SetAdditionalCodeRepositories(Aws::Vector&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(const Aws::Vector& value) { SetAdditionalCodeRepositories(value); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& WithAdditionalCodeRepositories(Aws::Vector&& value) { SetAdditionalCodeRepositories(std::move(value)); return *this;} /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; } /** *

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 Amazon * Web Services CodeCommit 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 Associating * Git Repositories with SageMaker Notebook Instances.

*/ inline UpdateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline const Aws::Vector& GetAcceleratorTypes() const{ return m_acceleratorTypes; } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline void SetAcceleratorTypes(const Aws::Vector& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline void SetAcceleratorTypes(Aws::Vector&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline UpdateNotebookInstanceRequest& WithAcceleratorTypes(const Aws::Vector& value) { SetAcceleratorTypes(value); return *this;} /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline UpdateNotebookInstanceRequest& WithAcceleratorTypes(Aws::Vector&& value) { SetAcceleratorTypes(std::move(value)); return *this;} /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; } /** *

A list of the Elastic Inference (EI) instance types to associate with this * notebook instance. Currently only one EI instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

*/ inline UpdateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; } /** *

A list of the Elastic Inference (EI) instance types to remove from this * notebook instance. This operation is idempotent. If you specify an accelerator * type that is not associated with the notebook instance when you call this * method, it does not throw an error.

*/ inline bool GetDisassociateAcceleratorTypes() const{ return m_disassociateAcceleratorTypes; } /** *

A list of the Elastic Inference (EI) instance types to remove from this * notebook instance. This operation is idempotent. If you specify an accelerator * type that is not associated with the notebook instance when you call this * method, it does not throw an error.

*/ inline bool DisassociateAcceleratorTypesHasBeenSet() const { return m_disassociateAcceleratorTypesHasBeenSet; } /** *

A list of the Elastic Inference (EI) instance types to remove from this * notebook instance. This operation is idempotent. If you specify an accelerator * type that is not associated with the notebook instance when you call this * method, it does not throw an error.

*/ inline void SetDisassociateAcceleratorTypes(bool value) { m_disassociateAcceleratorTypesHasBeenSet = true; m_disassociateAcceleratorTypes = value; } /** *

A list of the Elastic Inference (EI) instance types to remove from this * notebook instance. This operation is idempotent. If you specify an accelerator * type that is not associated with the notebook instance when you call this * method, it does not throw an error.

*/ inline UpdateNotebookInstanceRequest& WithDisassociateAcceleratorTypes(bool value) { SetDisassociateAcceleratorTypes(value); return *this;} /** *

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.

*/ inline bool GetDisassociateDefaultCodeRepository() const{ return m_disassociateDefaultCodeRepository; } /** *

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.

*/ inline bool DisassociateDefaultCodeRepositoryHasBeenSet() const { return m_disassociateDefaultCodeRepositoryHasBeenSet; } /** *

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.

*/ inline void SetDisassociateDefaultCodeRepository(bool value) { m_disassociateDefaultCodeRepositoryHasBeenSet = true; m_disassociateDefaultCodeRepository = value; } /** *

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.

*/ inline UpdateNotebookInstanceRequest& WithDisassociateDefaultCodeRepository(bool value) { SetDisassociateDefaultCodeRepository(value); return *this;} /** *

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.

*/ inline bool GetDisassociateAdditionalCodeRepositories() const{ return m_disassociateAdditionalCodeRepositories; } /** *

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.

*/ inline bool DisassociateAdditionalCodeRepositoriesHasBeenSet() const { return m_disassociateAdditionalCodeRepositoriesHasBeenSet; } /** *

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.

*/ inline void SetDisassociateAdditionalCodeRepositories(bool value) { m_disassociateAdditionalCodeRepositoriesHasBeenSet = true; m_disassociateAdditionalCodeRepositories = value; } /** *

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.

*/ inline UpdateNotebookInstanceRequest& WithDisassociateAdditionalCodeRepositories(bool value) { SetDisassociateAdditionalCodeRepositories(value); return *this;} /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline const RootAccess& GetRootAccess() const{ return m_rootAccess; } /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; } /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; } /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); } /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline UpdateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;} /** *

Whether root access is enabled or disabled for users of the notebook * instance. The default value is Enabled.

If you set * this to Disabled, users don't have root access on the notebook * instance, but lifecycle configuration scripts still run with root * permissions.

*/ inline UpdateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;} /** *

Information on the IMDS configuration of the notebook instance

*/ inline const InstanceMetadataServiceConfiguration& GetInstanceMetadataServiceConfiguration() const{ return m_instanceMetadataServiceConfiguration; } /** *

Information on the IMDS configuration of the notebook instance

*/ inline bool InstanceMetadataServiceConfigurationHasBeenSet() const { return m_instanceMetadataServiceConfigurationHasBeenSet; } /** *

Information on the IMDS configuration of the notebook instance

*/ inline void SetInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = value; } /** *

Information on the IMDS configuration of the notebook instance

*/ inline void SetInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration&& value) { m_instanceMetadataServiceConfigurationHasBeenSet = true; m_instanceMetadataServiceConfiguration = std::move(value); } /** *

Information on the IMDS configuration of the notebook instance

*/ inline UpdateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(const InstanceMetadataServiceConfiguration& value) { SetInstanceMetadataServiceConfiguration(value); return *this;} /** *

Information on the IMDS configuration of the notebook instance

*/ inline UpdateNotebookInstanceRequest& WithInstanceMetadataServiceConfiguration(InstanceMetadataServiceConfiguration&& value) { SetInstanceMetadataServiceConfiguration(std::move(value)); return *this;} private: Aws::String m_notebookInstanceName; bool m_notebookInstanceNameHasBeenSet = false; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::String m_lifecycleConfigName; bool m_lifecycleConfigNameHasBeenSet = false; bool m_disassociateLifecycleConfig; bool m_disassociateLifecycleConfigHasBeenSet = false; int m_volumeSizeInGB; bool m_volumeSizeInGBHasBeenSet = false; Aws::String m_defaultCodeRepository; bool m_defaultCodeRepositoryHasBeenSet = false; Aws::Vector m_additionalCodeRepositories; bool m_additionalCodeRepositoriesHasBeenSet = false; Aws::Vector m_acceleratorTypes; bool m_acceleratorTypesHasBeenSet = false; bool m_disassociateAcceleratorTypes; bool m_disassociateAcceleratorTypesHasBeenSet = false; bool m_disassociateDefaultCodeRepository; bool m_disassociateDefaultCodeRepositoryHasBeenSet = false; bool m_disassociateAdditionalCodeRepositories; bool m_disassociateAdditionalCodeRepositoriesHasBeenSet = false; RootAccess m_rootAccess; bool m_rootAccessHasBeenSet = false; InstanceMetadataServiceConfiguration m_instanceMetadataServiceConfiguration; bool m_instanceMetadataServiceConfigurationHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws