public UpdateNotebookInstanceLifecycleConfigRequest withOnCreate(java.util.Collection<NotebookInstanceLifecycleHook> onCreate) {
        setOnCreate(onCreate);
        return this;
    }
<p>
The shell script that runs only once, when you create a notebook instance. The shell script must be a
base64-encoded string.
</p>

@param onCreate
       The shell script that runs only once, when you create a notebook instance. The shell script must be a
       base64-encoded string.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/UpdateNotebookInstanceLifecycleConfigRequest.java