code: public DescribeNotebookInstanceResult 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;
      }
docs: <p>
  A list of the Elastic Inference (EI) instance types associated with this notebook instance. Currently only one EI
  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>
  
  @param acceleratorTypes
  A list of the Elastic Inference (EI) instance types associated with this notebook instance. Currently only
  one EI 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