public CreateNotebookInstanceRequest withAcceleratorTypes(NotebookInstanceAcceleratorType... acceleratorTypes) {
        java.util.ArrayList<String> acceleratorTypesCopy = new java.util.ArrayList<String>(acceleratorTypes.length);
        for (NotebookInstanceAcceleratorType value : acceleratorTypes) {
            acceleratorTypesCopy.add(value.toString());
        }
        if (getAcceleratorTypes() == null) {
            setAcceleratorTypes(acceleratorTypesCopy);
        } else {
            getAcceleratorTypes().addAll(acceleratorTypesCopy);
        }
        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>

@param acceleratorTypes
       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>.
@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/CreateNotebookInstanceRequest.java