@Override
    public ImportInstanceResult importInstance(ImportInstanceRequest request) {
        request = beforeClientExecution(request);
        return executeImportInstance(request);
    }
<note>
<p>
We recommend that you use the <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportImage.html"> <code>ImportImage</code> </a>
API. For more information, see <a
href="https://docs.aws.amazon.com/vm-import/latest/userguide/vmimport-image-import.html">Importing a VM as an
image using VM Import/Export</a> in the <i>VM Import/Export User Guide</i>.
</p>
</note>
<p>
Creates an import instance task using metadata from the specified disk image.
</p>
<p>
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2
CLI, which is deprecated, see <a
href="https://awsdocs.s3.amazonaws.com/EC2/ec2-clt.pdf#UsingVirtualMachinesinAmazonEC2">Importing a VM to Amazon
EC2</a> in the <i>Amazon EC2 CLI Reference</i> PDF file.
</p>
<p>
This API action supports only single-volume VMs. To import multi-volume VMs, use <a>ImportImage</a> instead.
</p>
<p>
For information about the import manifest referenced by this API action, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/manifest.html">VM Import Manifest</a>.
</p>

@param importInstanceRequest
@return Result of the ImportInstance operation returned by the service.
@sample AmazonEC2.ImportInstance
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ImportInstance" target="_top">AWS API
     Documentation</a>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/AmazonEC2Client.java