public Boolean isEncrypted() {
        return this.encrypted;
    }
<p>
Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for EBS is
used unless you specify a non-default KMS key using <code>KmsKeyId</code>. For more information, see <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS Encryption</a> in the
<i>Amazon Elastic Compute Cloud User Guide</i>.
</p>

@return Specifies whether the destination AMI of the imported image should be encrypted. The default KMS key for
        EBS is used unless you specify a non-default KMS key using <code>KmsKeyId</code>. For more information,
        see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSEncryption.html">Amazon EBS
        Encryption</a> in the <i>Amazon Elastic Compute Cloud User Guide</i>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ImportImageRequest.java