public RegisterImageRequest withBootMode(BootModeValues bootMode) {
        this.bootMode = bootMode.toString();
        return this;
    }
<p>
The boot mode of the AMI. A value of <code>uefi-preferred</code> indicates that the AMI supports both UEFI and
Legacy BIOS.
</p>
<note>
<p>
The operating system contained in the AMI must be configured to support the specified boot mode.
</p>
</note>
<p>
For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html">Boot
modes</a> in the <i>Amazon EC2 User Guide</i>.
</p>

@param bootMode
       The boot mode of the AMI. A value of <code>uefi-preferred</code> indicates that the AMI supports both UEFI
       and Legacy BIOS.</p> <note>
       <p>
       The operating system contained in the AMI must be configured to support the specified boot mode.
       </p>
       </note>
       <p>
       For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html">Boot
       modes</a> in the <i>Amazon EC2 User Guide</i>.
@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/RegisterImageRequest.java