public InstanceRequirementsRequest withAcceleratorTypes(String... acceleratorTypes) {
        if (this.acceleratorTypes == null) {
            setAcceleratorTypes(new com.amazonaws.internal.SdkInternalList<String>(acceleratorTypes.length));
        }
        for (String ele : acceleratorTypes) {
            this.acceleratorTypes.add(ele);
        }
        return this;
    }
<p>
The accelerator types that must be on the instance type.
</p>
<ul>
<li>
<p>
To include instance types with GPU hardware, specify <code>gpu</code>.
</p>
</li>
<li>
<p>
To include instance types with FPGA hardware, specify <code>fpga</code>.
</p>
</li>
<li>
<p>
To include instance types with inference hardware, specify <code>inference</code>.
</p>
</li>
</ul>
<p>
Default: Any accelerator type
</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
       The accelerator types that must be on the instance type.</p>
       <ul>
       <li>
       <p>
       To include instance types with GPU hardware, specify <code>gpu</code>.
       </p>
       </li>
       <li>
       <p>
       To include instance types with FPGA hardware, specify <code>fpga</code>.
       </p>
       </li>
       <li>
       <p>
       To include instance types with inference hardware, specify <code>inference</code>.
       </p>
       </li>
       </ul>
       <p>
       Default: Any accelerator type
@return Returns a reference to this object so that method calls can be chained together.
@see AcceleratorType
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/InstanceRequirementsRequest.java