code: public CreateNotebookInstanceRequest 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;
      }
docs: <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="http://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 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="http://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