public String getKeyId() {
        return this.keyId;
    }
<p>
Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot specify
an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS key, use the
<a>DescribeKey</a> operation.
</p>
<p>
To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix it with
<code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must use the key ARN
or alias ARN.
</p>
<p>
For example:
</p>
<ul>
<li>
<p>
Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
<li>
<p>
Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
</p>
</li>
<li>
<p>
Alias name: <code>alias/ExampleAlias</code>
</p>
</li>
<li>
<p>
Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
</p>
</li>
</ul>
<p>
To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias name and
alias ARN, use <a>ListAliases</a>.
</p>

@return Specifies the symmetric encryption KMS key that encrypts the private key in the data key pair. You cannot
        specify an asymmetric KMS key or a KMS key in a custom key store. To get the type and origin of your KMS
        key, use the <a>DescribeKey</a> operation.</p>
        <p>
        To specify a KMS key, use its key ID, key ARN, alias name, or alias ARN. When using an alias name, prefix
        it with <code>"alias/"</code>. To specify a KMS key in a different Amazon Web Services account, you must
        use the key ARN or alias ARN.
        </p>
        <p>
        For example:
        </p>
        <ul>
        <li>
        <p>
        Key ID: <code>1234abcd-12ab-34cd-56ef-1234567890ab</code>
        </p>
        </li>
        <li>
        <p>
        Key ARN: <code>arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>
        </p>
        </li>
        <li>
        <p>
        Alias name: <code>alias/ExampleAlias</code>
        </p>
        </li>
        <li>
        <p>
        Alias ARN: <code>arn:aws:kms:us-east-2:111122223333:alias/ExampleAlias</code>
        </p>
        </li>
        </ul>
        <p>
        To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>. To get the alias
        name and alias ARN, use <a>ListAliases</a>.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyPairRequest.java