public String getKmsKeyId() {
        return this.kmsKeyId;
    }
<p>
An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only required
if you want to use a non-default KMS key; if this parameter is not specified, the default KMS key for EBS is
used. If a <code>KmsKeyId</code> is specified, the <code>Encrypted</code> flag must also be set.
</p>
<p>
The KMS key identifier may be provided in any of the following formats:
</p>
<ul>
<li>
<p>
Key ID
</p>
</li>
<li>
<p>
Key alias
</p>
</li>
<li>
<p>
ARN using key ID. The ID ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the key,
the Amazon Web Services account ID of the key owner, the <code>key</code> namespace, and then the key ID. For
example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:key/<i>abcd1234-a123-456a-a12b-a123b4cd56ef</i>.
</p>
</li>
<li>
<p>
ARN using key alias. The alias ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of the
key, the Amazon Web Services account ID of the key owner, the <code>alias</code> namespace, and then the key
alias. For example, arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:alias/<i>ExampleAlias</i>.
</p>
</li>
</ul>
<p>
Amazon Web Services parses <code>KmsKeyId</code> asynchronously, meaning that the action you call may appear to
complete even though you provided an invalid identifier. This action will eventually report failure.
</p>
<p>
The specified KMS key must exist in the Region that the AMI is being copied to.
</p>
<p>
Amazon EBS does not support asymmetric KMS keys.
</p>

@return An identifier for the symmetric KMS key to use when creating the encrypted AMI. This parameter is only
        required if you want to use a non-default KMS key; if this parameter is not specified, the default KMS
        key for EBS is used. If a <code>KmsKeyId</code> is specified, the <code>Encrypted</code> flag must also
        be set. </p>
        <p>
        The KMS key identifier may be provided in any of the following formats:
        </p>
        <ul>
        <li>
        <p>
        Key ID
        </p>
        </li>
        <li>
        <p>
        Key alias
        </p>
        </li>
        <li>
        <p>
        ARN using key ID. The ID ARN contains the <code>arn:aws:kms</code> namespace, followed by the Region of
        the key, the Amazon Web Services account ID of the key owner, the <code>key</code> namespace, and then
        the key ID. For example,
        arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:key/<i>abcd1234-a123-456a-a12b-a123b4cd56ef</i>.
        </p>
        </li>
        <li>
        <p>
        ARN using key alias. The alias ARN contains the <code>arn:aws:kms</code> namespace, followed by the
        Region of the key, the Amazon Web Services account ID of the key owner, the <code>alias</code> namespace,
        and then the key alias. For example,
        arn:aws:kms:<i>us-east-1</i>:<i>012345678910</i>:alias/<i>ExampleAlias</i>.
        </p>
        </li>
        </ul>
        <p>
        Amazon Web Services parses <code>KmsKeyId</code> asynchronously, meaning that the action you call may
        appear to complete even though you provided an invalid identifier. This action will eventually report
        failure.
        </p>
        <p>
        The specified KMS key must exist in the Region that the AMI is being copied to.
        </p>
        <p>
        Amazon EBS does not support asymmetric KMS keys.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ImportImageRequest.java