public void setDirectInternetAccess(String directInternetAccess) {
        this.directInternetAccess = directInternetAccess;
    }
<p>
Sets whether SageMaker provides internet access to the notebook instance. If you set this to
<code>Disabled</code> this notebook instance is able to access resources only in your VPC, and is not be able to
connect to SageMaker training and endpoint services unless you 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>

@param directInternetAccess
       Sets whether SageMaker provides internet access to the notebook instance. If you set this to
       <code>Disabled</code> this notebook instance is able to access resources only in your VPC, and is not be
       able to connect to SageMaker training and endpoint services unless you 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.
@see DirectInternetAccess
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/CreateNotebookInstanceRequest.java