public UpdateNotebookInstanceRequest withAcceleratorTypes(String... acceleratorTypes) {
        if (this.acceleratorTypes == null) {
            setAcceleratorTypes(new java.util.ArrayList<String>(acceleratorTypes.length));
        }
        for (String ele : acceleratorTypes) {
            this.acceleratorTypes.add(ele);
        }
        return this;
    }
<p>
A list of the Elastic Inference (EI) instance types to associate with this notebook instance. Currently only one
EI 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>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAcceleratorTypes(java.util.Collection)} or {@link #withAcceleratorTypes(java.util.Collection)} if you
want to override the existing values.
</p>

@param acceleratorTypes
       A list of the Elastic Inference (EI) instance types to associate with this notebook instance. Currently
       only one EI 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>.
@return Returns a reference to this object so that method calls can be chained together.
@see NotebookInstanceAcceleratorType
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/UpdateNotebookInstanceRequest.java