public EncryptionConfiguration withKeyId(String keyId) {
        setKeyId(keyId);
        return this;
    }
<p>
The ID of the Amazon Web Services Key Management Service (KMS) customer managed key. You can use any of the key
identifiers that KMS supports, unless you're using a key that's managed by another account. If you're using a key
managed by another account, then specify the key ARN. For more information, see <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id">Key ID</a> in the <i>Amazon Web
Services KMS Developer Guide</i>.
</p>

@param keyId
       The ID of the Amazon Web Services Key Management Service (KMS) customer managed key. You can use any of
       the key identifiers that KMS supports, unless you're using a key that's managed by another account. If
       you're using a key managed by another account, then specify the key ARN. For more information, see <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/concepts.html#key-id">Key ID</a> in the
       <i>Amazon Web Services KMS Developer Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/EncryptionConfiguration.java