public GenerateDataKeyRequest withKeyId(String keyId) {
        setKeyId(keyId);
        return this;
    }
<p>
Specifies the symmetric encryption KMS key that encrypts the data key. 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>

@param keyId
       Specifies the symmetric encryption KMS key that encrypts the data key. 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>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyRequest.java