public void setTargetKeyId(String targetKeyId) {
        this.targetKeyId = targetKeyId;
    }
<p>
Identifies the <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed key</a>
to associate with the alias. You don't have permission to associate an alias with an <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web Services
managed key</a>.
</p>
<p>
The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target KMS key
must be the same type as the current target KMS key (both symmetric or both asymmetric or both HMAC) and they
must have the same key usage.
</p>
<p>
Specify the key ID or key ARN of the KMS key.
</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>
</ul>
<p>
To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
</p>
<p>
To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
</p>

@param targetKeyId
       Identifies the <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#customer-cmk">customer managed
       key</a> to associate with the alias. You don't have permission to associate an alias with an <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#aws-managed-cmk">Amazon Web
       Services managed key</a>.</p>
       <p>
       The KMS key must be in the same Amazon Web Services account and Region as the alias. Also, the new target
       KMS key must be the same type as the current target KMS key (both symmetric or both asymmetric or both
       HMAC) and they must have the same key usage.
       </p>
       <p>
       Specify the key ID or key ARN of the KMS key.
       </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>
       </ul>
       <p>
       To get the key ID and key ARN for a KMS key, use <a>ListKeys</a> or <a>DescribeKey</a>.
       </p>
       <p>
       To verify that the alias is mapped to the correct KMS key, use <a>ListAliases</a>.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/UpdateAliasRequest.java