public DeriveSharedSecretRequest withKeyId(String keyId) {
        setKeyId(keyId);
        return this;
    }
<p>
Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private key in
the specified key pair to derive the shared secret. The key usage of the KMS key must be
<code>KEY_AGREEMENT</code>. To find the <code>KeyUsage</code> of a 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
       Identifies an asymmetric NIST-recommended ECC or SM2 (China Regions only) KMS key. KMS uses the private
       key in the specified key pair to derive the shared secret. The key usage of the KMS key must be
       <code>KEY_AGREEMENT</code>. To find the <code>KeyUsage</code> of a 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/DeriveSharedSecretRequest.java