public InstanceRequirementsRequest withAcceleratorTypes(AcceleratorType... acceleratorTypes) {
        com.amazonaws.internal.SdkInternalList<String> acceleratorTypesCopy = new com.amazonaws.internal.SdkInternalList<String>(acceleratorTypes.length);
        for (AcceleratorType value : acceleratorTypes) {
            acceleratorTypesCopy.add(value.toString());
        }
        if (getAcceleratorTypes() == null) {
            setAcceleratorTypes(acceleratorTypesCopy);
        } else {
            getAcceleratorTypes().addAll(acceleratorTypesCopy);
        }
        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>

@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