public UpdateNotebookInstanceLifecycleConfigRequest withOnStart(NotebookInstanceLifecycleHook... onStart) {
        if (this.onStart == null) {
            setOnStart(new java.util.ArrayList<NotebookInstanceLifecycleHook>(onStart.length));
        }
        for (NotebookInstanceLifecycleHook ele : onStart) {
            this.onStart.add(ele);
        }
        return this;
    }
<p>
The shell script that runs every time you start a notebook instance, including when you create the notebook
instance. The shell script must be a base64-encoded string.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setOnStart(java.util.Collection)} or {@link #withOnStart(java.util.Collection)} if you want to override
the existing values.
</p>

@param onStart
       The shell script that runs every time you start a notebook instance, including when you create the
       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