/** * 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 #include namespace Aws { namespace SageMaker { namespace Model { /** */ class AWS_SAGEMAKER_API CreateNotebookInstanceRequest : public SageMakerRequest { public: CreateNotebookInstanceRequest(); // 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 "CreateNotebookInstance"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The name of the new notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The type of ML compute instance to launch for the notebook instance.

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

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline const Aws::String& GetSubnetId() const{ return m_subnetId; } /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; } /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; } /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); } /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); } /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline CreateNotebookInstanceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;} /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline CreateNotebookInstanceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;} /** *

The ID of the subnet in a VPC to which you would like to have a connectivity * from your ML compute instance.

*/ inline CreateNotebookInstanceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;} /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline CreateNotebookInstanceRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline CreateNotebookInstanceRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline CreateNotebookInstanceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must * be for the same VPC as specified in the subnet.

*/ inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

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

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

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

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

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

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * 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; } /** *

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * 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); } /** *

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

To be able to pass this role to Amazon * 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); } /** *

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

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

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

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

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

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

When you send any requests to AWS resources from the notebook instance, * Amazon SageMaker assumes this role to perform tasks on your behalf. You must * grant this role necessary permissions so Amazon SageMaker can perform these * tasks. The policy must allow the Amazon SageMaker service principal * (sagemaker.amazonaws.com) permissions to assume this role. For more information, * see Amazon * SageMaker Roles.

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

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

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline CreateNotebookInstanceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline CreateNotebookInstanceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a AWS Key Management Service key that * Amazon SageMaker uses to encrypt data on the storage volume attached to your * notebook instance. The KMS key you provide must be enabled. For information, see * Enabling * and Disabling Keys in the AWS Key Management Service Developer * Guide.

*/ inline CreateNotebookInstanceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline CreateNotebookInstanceRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline CreateNotebookInstanceRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline CreateNotebookInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tags to associate with the notebook instance. You can add tags * later by using the CreateTags API.

*/ inline CreateNotebookInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(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 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 CreateNotebookInstanceRequest& 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 CreateNotebookInstanceRequest& 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 CreateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;} /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline const DirectInternetAccess& GetDirectInternetAccess() const{ return m_directInternetAccess; } /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; } /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline void SetDirectInternetAccess(const DirectInternetAccess& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; } /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline void SetDirectInternetAccess(DirectInternetAccess&& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = std::move(value); } /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline CreateNotebookInstanceRequest& WithDirectInternetAccess(const DirectInternetAccess& value) { SetDirectInternetAccess(value); return *this;} /** *

Sets whether Amazon SageMaker provides internet access to the notebook * instance. If you set this to Disabled this notebook instance will * be able to access resources only in your VPC, and will not be able to connect to * Amazon SageMaker training and endpoint services unless your configure a NAT * Gateway in your VPC.

For more information, see Notebook * Instances Are Internet-Enabled by Default. You can set the value of this * parameter to Disabled only if you set a value for the * SubnetId parameter.

*/ inline CreateNotebookInstanceRequest& WithDirectInternetAccess(DirectInternetAccess&& value) { SetDirectInternetAccess(std::move(value)); return *this;} /** *

The size, in GB, of the ML storage volume to attach to the notebook instance. * The default value is 5 GB.

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

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

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

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

A list of Elastic Inference (EI) instance types to associate with this * notebook instance. Currently, only one 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 Elastic Inference (EI) instance types to associate with this * notebook instance. Currently, only one 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 Elastic Inference (EI) instance types to associate with this * notebook instance. Currently, only one 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 Elastic Inference (EI) instance types to associate with this * notebook instance. Currently, only one 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 Elastic Inference (EI) instance types to associate with this * notebook instance. Currently, only one instance type can be associated with a * notebook instance. For more information, see Using Elastic * Inference in Amazon SageMaker.

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

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

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

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

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

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

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

A 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 AWS * 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 Amazon SageMaker Notebook Instances.

*/ inline CreateNotebookInstanceRequest& 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 AWS * 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 Amazon 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 AWS * 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 Amazon 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 AWS * 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 Amazon 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 AWS * 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 Amazon 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 AWS * 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 Amazon SageMaker Notebook Instances.

*/ inline CreateNotebookInstanceRequest& 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 AWS * 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 Amazon SageMaker Notebook Instances.

*/ inline CreateNotebookInstanceRequest& 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 AWS * 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 Amazon SageMaker Notebook Instances.

*/ inline CreateNotebookInstanceRequest& 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 AWS * 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 Amazon SageMaker Notebook Instances.

*/ inline CreateNotebookInstanceRequest& 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 AWS * 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 Amazon SageMaker Notebook Instances.

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

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

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

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

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

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

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

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

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

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

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

* */ inline CreateNotebookInstanceRequest& 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.

Lifecycle * configurations need root access to be able to set up a notebook instance. * Because of this, lifecycle configurations associated with a notebook instance * always run with root access even if you disable root access for users.

* */ inline CreateNotebookInstanceRequest& WithRootAccess(RootAccess&& value) { SetRootAccess(std::move(value)); return *this;} private: Aws::String m_notebookInstanceName; bool m_notebookInstanceNameHasBeenSet; InstanceType m_instanceType; bool m_instanceTypeHasBeenSet; Aws::String m_subnetId; bool m_subnetIdHasBeenSet; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet; Aws::String m_roleArn; bool m_roleArnHasBeenSet; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; Aws::String m_lifecycleConfigName; bool m_lifecycleConfigNameHasBeenSet; DirectInternetAccess m_directInternetAccess; bool m_directInternetAccessHasBeenSet; int m_volumeSizeInGB; bool m_volumeSizeInGBHasBeenSet; Aws::Vector m_acceleratorTypes; bool m_acceleratorTypesHasBeenSet; Aws::String m_defaultCodeRepository; bool m_defaultCodeRepositoryHasBeenSet; Aws::Vector m_additionalCodeRepositories; bool m_additionalCodeRepositoriesHasBeenSet; RootAccess m_rootAccess; bool m_rootAccessHasBeenSet; }; } // namespace Model } // namespace SageMaker } // namespace Aws