public void setKmsKeyId(String kmsKeyId) {
        this.kmsKeyId = kmsKeyId;
    }
<p>
Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name
prefixed by <code>alias/</code>, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally
unique identifier.
</p>
<important>
<p>
Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from
logging events to the event data store, and prevents users from querying the data in the event data store that
was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed
or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up
your event data store.
</p>
</important>
<p>
CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region
keys</a> in the <i>Key Management Service Developer Guide</i>.
</p>
<p>
Examples:
</p>
<ul>
<li>
<p>
<code>alias/MyAliasName</code>
</p>
</li>
<li>
<p>
<code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code>
</p>
</li>
<li>
<p>
<code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
</p>
</li>
<li>
<p>
<code>12345678-1234-1234-1234-123456789012</code>
</p>
</li>
</ul>

@param kmsKeyId
       Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias
       name prefixed by <code>alias/</code>, a fully specified ARN to an alias, a fully specified ARN to a key,
       or a globally unique identifier.</p> <important>
       <p>
       Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from
       logging events to the event data store, and prevents users from querying the data in the event data store
       that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key
       cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data
       store, delete or back up your event data store.
       </p>
       </important>
       <p>
       CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using
       multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.
       </p>
       <p>
       Examples:
       </p>
       <ul>
       <li>
       <p>
       <code>alias/MyAliasName</code>
       </p>
       </li>
       <li>
       <p>
       <code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code>
       </p>
       </li>
       <li>
       <p>
       <code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code>
       </p>
       </li>
       <li>
       <p>
       <code>12345678-1234-1234-1234-123456789012</code>
       </p>
       </li>
aws-java-sdk-cloudtrail/src/main/java/com/amazonaws/services/cloudtrail/model/CreateEventDataStoreRequest.java