public ImportImageRequest withBootMode(String bootMode) {
        setBootMode(bootMode);
        return this;
    }
<p>
The boot mode of the virtual machine.
</p>
<note>
<p>
The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more information, see <a
href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">Boot
modes</a> in the <i>VM Import/Export User Guide</i>.
</p>
</note>

@param bootMode
       The boot mode of the virtual machine.</p> <note>
       <p>
       The <code>uefi-preferred</code> boot mode isn't supported for importing images. For more information, see
       <a href="https://docs.aws.amazon.com/vm-import/latest/userguide/prerequisites.html#vmimport-boot-modes">
       Boot modes</a> in the <i>VM Import/Export User Guide</i>.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
@see BootModeValues
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ImportImageRequest.java