public FpgaImage withInstanceTypes(java.util.Collection<String> instanceTypes) {
        setInstanceTypes(instanceTypes);
        return this;
    }
<p>
The instance types supported by the AFI.
</p>

@param instanceTypes
       The instance types supported by the AFI.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/FpgaImage.java