This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sagemaker/include/aws/sagemaker/model/CreateNotebookInstanceRequest.h

1043 lines
54 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sagemaker/SageMaker_EXPORTS.h>
#include <aws/sagemaker/SageMakerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/sagemaker/model/InstanceType.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/sagemaker/model/DirectInternetAccess.h>
#include <aws/sagemaker/model/RootAccess.h>
#include <aws/sagemaker/model/Tag.h>
#include <aws/sagemaker/model/NotebookInstanceAcceleratorType.h>
#include <utility>
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;
/**
* <p>The name of the new notebook instance.</p>
*/
inline const Aws::String& GetNotebookInstanceName() const{ return m_notebookInstanceName; }
/**
* <p>The name of the new notebook instance.</p>
*/
inline bool NotebookInstanceNameHasBeenSet() const { return m_notebookInstanceNameHasBeenSet; }
/**
* <p>The name of the new notebook instance.</p>
*/
inline void SetNotebookInstanceName(const Aws::String& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = value; }
/**
* <p>The name of the new notebook instance.</p>
*/
inline void SetNotebookInstanceName(Aws::String&& value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName = std::move(value); }
/**
* <p>The name of the new notebook instance.</p>
*/
inline void SetNotebookInstanceName(const char* value) { m_notebookInstanceNameHasBeenSet = true; m_notebookInstanceName.assign(value); }
/**
* <p>The name of the new notebook instance.</p>
*/
inline CreateNotebookInstanceRequest& WithNotebookInstanceName(const Aws::String& value) { SetNotebookInstanceName(value); return *this;}
/**
* <p>The name of the new notebook instance.</p>
*/
inline CreateNotebookInstanceRequest& WithNotebookInstanceName(Aws::String&& value) { SetNotebookInstanceName(std::move(value)); return *this;}
/**
* <p>The name of the new notebook instance.</p>
*/
inline CreateNotebookInstanceRequest& WithNotebookInstanceName(const char* value) { SetNotebookInstanceName(value); return *this;}
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline CreateNotebookInstanceRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
/**
* <p>The type of ML compute instance to launch for the notebook instance.</p>
*/
inline CreateNotebookInstanceRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline const Aws::String& GetSubnetId() const{ return m_subnetId; }
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline bool SubnetIdHasBeenSet() const { return m_subnetIdHasBeenSet; }
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline void SetSubnetId(const Aws::String& value) { m_subnetIdHasBeenSet = true; m_subnetId = value; }
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline void SetSubnetId(Aws::String&& value) { m_subnetIdHasBeenSet = true; m_subnetId = std::move(value); }
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline void SetSubnetId(const char* value) { m_subnetIdHasBeenSet = true; m_subnetId.assign(value); }
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline CreateNotebookInstanceRequest& WithSubnetId(const Aws::String& value) { SetSubnetId(value); return *this;}
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline CreateNotebookInstanceRequest& WithSubnetId(Aws::String&& value) { SetSubnetId(std::move(value)); return *this;}
/**
* <p>The ID of the subnet in a VPC to which you would like to have a connectivity
* from your ML compute instance. </p>
*/
inline CreateNotebookInstanceRequest& WithSubnetId(const char* value) { SetSubnetId(value); return *this;}
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline const Aws::Vector<Aws::String>& GetSecurityGroupIds() const{ return m_securityGroupIds; }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline void SetSecurityGroupIds(const Aws::Vector<Aws::String>& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline void SetSecurityGroupIds(Aws::Vector<Aws::String>&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline CreateNotebookInstanceRequest& WithSecurityGroupIds(const Aws::Vector<Aws::String>& value) { SetSecurityGroupIds(value); return *this;}
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline CreateNotebookInstanceRequest& WithSecurityGroupIds(Aws::Vector<Aws::String>&& value) { SetSecurityGroupIds(std::move(value)); return *this;}
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline CreateNotebookInstanceRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; }
/**
* <p>The VPC security group IDs, in the form sg-xxxxxxxx. The security groups must
* be for the same VPC as specified in the subnet. </p>
*/
inline CreateNotebookInstanceRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline CreateNotebookInstanceRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline CreateNotebookInstanceRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p> 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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html">Amazon
* SageMaker Roles</a>. </p> <p>To be able to pass this role to Amazon
* SageMaker, the caller of this API must have the <code>iam:PassRole</code>
* permission.</p>
*/
inline CreateNotebookInstanceRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline CreateNotebookInstanceRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline CreateNotebookInstanceRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
/**
* <p>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
* <a
* href="https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html">Enabling
* and Disabling Keys</a> in the <i>AWS Key Management Service Developer
* Guide</i>.</p>
*/
inline CreateNotebookInstanceRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline CreateNotebookInstanceRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline CreateNotebookInstanceRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline CreateNotebookInstanceRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>A list of tags to associate with the notebook instance. You can add tags
* later by using the <code>CreateTags</code> API.</p>
*/
inline CreateNotebookInstanceRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <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>
*/
inline const Aws::String& GetLifecycleConfigName() const{ return m_lifecycleConfigName; }
/**
* <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>
*/
inline bool LifecycleConfigNameHasBeenSet() const { return m_lifecycleConfigNameHasBeenSet; }
/**
* <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>
*/
inline void SetLifecycleConfigName(const Aws::String& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = value; }
/**
* <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>
*/
inline void SetLifecycleConfigName(Aws::String&& value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName = std::move(value); }
/**
* <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>
*/
inline void SetLifecycleConfigName(const char* value) { m_lifecycleConfigNameHasBeenSet = true; m_lifecycleConfigName.assign(value); }
/**
* <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>
*/
inline CreateNotebookInstanceRequest& WithLifecycleConfigName(const Aws::String& value) { SetLifecycleConfigName(value); return *this;}
/**
* <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>
*/
inline CreateNotebookInstanceRequest& WithLifecycleConfigName(Aws::String&& value) { SetLifecycleConfigName(std::move(value)); return *this;}
/**
* <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>
*/
inline CreateNotebookInstanceRequest& WithLifecycleConfigName(const char* value) { SetLifecycleConfigName(value); return *this;}
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline const DirectInternetAccess& GetDirectInternetAccess() const{ return m_directInternetAccess; }
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline bool DirectInternetAccessHasBeenSet() const { return m_directInternetAccessHasBeenSet; }
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline void SetDirectInternetAccess(const DirectInternetAccess& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = value; }
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline void SetDirectInternetAccess(DirectInternetAccess&& value) { m_directInternetAccessHasBeenSet = true; m_directInternetAccess = std::move(value); }
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline CreateNotebookInstanceRequest& WithDirectInternetAccess(const DirectInternetAccess& value) { SetDirectInternetAccess(value); return *this;}
/**
* <p>Sets whether Amazon SageMaker provides internet access to the notebook
* instance. If you set this to <code>Disabled</code> 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.</p> <p>For more information, see <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access">Notebook
* Instances Are Internet-Enabled by Default</a>. You can set the value of this
* parameter to <code>Disabled</code> only if you set a value for the
* <code>SubnetId</code> parameter.</p>
*/
inline CreateNotebookInstanceRequest& WithDirectInternetAccess(DirectInternetAccess&& value) { SetDirectInternetAccess(std::move(value)); return *this;}
/**
* <p>The size, in GB, of the ML storage volume to attach to the notebook instance.
* The default value is 5 GB.</p>
*/
inline int GetVolumeSizeInGB() const{ return m_volumeSizeInGB; }
/**
* <p>The size, in GB, of the ML storage volume to attach to the notebook instance.
* The default value is 5 GB.</p>
*/
inline bool VolumeSizeInGBHasBeenSet() const { return m_volumeSizeInGBHasBeenSet; }
/**
* <p>The size, in GB, of the ML storage volume to attach to the notebook instance.
* The default value is 5 GB.</p>
*/
inline void SetVolumeSizeInGB(int value) { m_volumeSizeInGBHasBeenSet = true; m_volumeSizeInGB = value; }
/**
* <p>The size, in GB, of the ML storage volume to attach to the notebook instance.
* The default value is 5 GB.</p>
*/
inline CreateNotebookInstanceRequest& WithVolumeSizeInGB(int value) { SetVolumeSizeInGB(value); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline const Aws::Vector<NotebookInstanceAcceleratorType>& GetAcceleratorTypes() const{ return m_acceleratorTypes; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline bool AcceleratorTypesHasBeenSet() const { return m_acceleratorTypesHasBeenSet; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline void SetAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = value; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline void SetAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes = std::move(value); }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithAcceleratorTypes(const Aws::Vector<NotebookInstanceAcceleratorType>& value) { SetAcceleratorTypes(value); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithAcceleratorTypes(Aws::Vector<NotebookInstanceAcceleratorType>&& value) { SetAcceleratorTypes(std::move(value)); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline CreateNotebookInstanceRequest& AddAcceleratorTypes(const NotebookInstanceAcceleratorType& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(value); return *this; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html">Using Elastic
* Inference in Amazon SageMaker</a>.</p>
*/
inline CreateNotebookInstanceRequest& AddAcceleratorTypes(NotebookInstanceAcceleratorType&& value) { m_acceleratorTypesHasBeenSet = true; m_acceleratorTypes.push_back(std::move(value)); return *this; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline const Aws::String& GetDefaultCodeRepository() const{ return m_defaultCodeRepository; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline bool DefaultCodeRepositoryHasBeenSet() const { return m_defaultCodeRepositoryHasBeenSet; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline void SetDefaultCodeRepository(const Aws::String& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = value; }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline void SetDefaultCodeRepository(Aws::String&& value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository = std::move(value); }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline void SetDefaultCodeRepository(const char* value) { m_defaultCodeRepositoryHasBeenSet = true; m_defaultCodeRepository.assign(value); }
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(const Aws::String& value) { SetDefaultCodeRepository(value); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(Aws::String&& value) { SetDefaultCodeRepository(std::move(value)); return *this;}
/**
* <p>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 <a
* href="https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithDefaultCodeRepository(const char* value) { SetDefaultCodeRepository(value); return *this;}
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline const Aws::Vector<Aws::String>& GetAdditionalCodeRepositories() const{ return m_additionalCodeRepositories; }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline bool AdditionalCodeRepositoriesHasBeenSet() const { return m_additionalCodeRepositoriesHasBeenSet; }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline void SetAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = value; }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline void SetAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories = std::move(value); }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(const Aws::Vector<Aws::String>& value) { SetAdditionalCodeRepositories(value); return *this;}
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& WithAdditionalCodeRepositories(Aws::Vector<Aws::String>&& value) { SetAdditionalCodeRepositories(std::move(value)); return *this;}
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const Aws::String& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(Aws::String&& value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(std::move(value)); return *this; }
/**
* <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">AWS
* 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 Amazon SageMaker Notebook Instances</a>.</p>
*/
inline CreateNotebookInstanceRequest& AddAdditionalCodeRepositories(const char* value) { m_additionalCodeRepositoriesHasBeenSet = true; m_additionalCodeRepositories.push_back(value); return *this; }
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
inline const RootAccess& GetRootAccess() const{ return m_rootAccess; }
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
inline bool RootAccessHasBeenSet() const { return m_rootAccessHasBeenSet; }
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
inline void SetRootAccess(const RootAccess& value) { m_rootAccessHasBeenSet = true; m_rootAccess = value; }
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
inline void SetRootAccess(RootAccess&& value) { m_rootAccessHasBeenSet = true; m_rootAccess = std::move(value); }
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
inline CreateNotebookInstanceRequest& WithRootAccess(const RootAccess& value) { SetRootAccess(value); return *this;}
/**
* <p>Whether root access is enabled or disabled for users of the notebook
* instance. The default value is <code>Enabled</code>.</p> <p>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.</p>
*
*/
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<Aws::String> m_securityGroupIds;
bool m_securityGroupIdsHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::String m_kmsKeyId;
bool m_kmsKeyIdHasBeenSet;
Aws::Vector<Tag> 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<NotebookInstanceAcceleratorType> m_acceleratorTypes;
bool m_acceleratorTypesHasBeenSet;
Aws::String m_defaultCodeRepository;
bool m_defaultCodeRepositoryHasBeenSet;
Aws::Vector<Aws::String> m_additionalCodeRepositories;
bool m_additionalCodeRepositoriesHasBeenSet;
RootAccess m_rootAccess;
bool m_rootAccessHasBeenSet;
};
} // namespace Model
} // namespace SageMaker
} // namespace Aws