public CreateKeyRequest withXksKeyId(String xksKeyId) {
        setXksKeyId(xksKeyId);
        return this;
    }
<p>
Identifies the <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key">external
key</a> that serves as key material for the KMS key in an <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key store</a>.
Specify the ID that the <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy">external
key store proxy</a> uses to refer to the external key. For help, see the documentation for your external key
store proxy.
</p>
<p>
This parameter is required for a KMS key with an <code>Origin</code> value of <code>EXTERNAL_KEY_STORE</code>. It
is not valid for KMS keys with any other <code>Origin</code> value.
</p>
<p>
The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web Services
in an external key manager associated with the external key store specified by the <code>CustomKeyStoreId</code>
parameter. This key must be enabled and configured to perform encryption and decryption. Each KMS key in an
external key store must use a different external key. For details, see <a
href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a KMS key in an
external key store</a> in the <i>Key Management Service Developer Guide</i>.
</p>
<p>
Each KMS key in an external key store is associated two backing keys. One is key material that KMS generates. The
other is the external key specified by this parameter. When you use the KMS key in an external key store to
encrypt data, the encryption operation is performed first by KMS using the KMS key material, and then by the
external key manager using the specified external key, a process known as <i>double encryption</i>. For details,
see <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
>Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
</p>

@param xksKeyId
       Identifies the <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-external-key"
       >external key</a> that serves as key material for the KMS key in an <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html">external key
       store</a>. Specify the ID that the <a
       href="https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-xks-proxy"
       >external key store proxy</a> uses to refer to the external key. For help, see the documentation for your
       external key store proxy.</p>
       <p>
       This parameter is required for a KMS key with an <code>Origin</code> value of
       <code>EXTERNAL_KEY_STORE</code>. It is not valid for KMS keys with any other <code>Origin</code> value.
       </p>
       <p>
       The external key must be an existing 256-bit AES symmetric encryption key hosted outside of Amazon Web
       Services in an external key manager associated with the external key store specified by the
       <code>CustomKeyStoreId</code> parameter. This key must be enabled and configured to perform encryption and
       decryption. Each KMS key in an external key store must use a different external key. For details, see <a
       href="https://docs.aws.amazon.com/create-xks-keys.html#xks-key-requirements">Requirements for a KMS key in
       an external key store</a> in the <i>Key Management Service Developer Guide</i>.
       </p>
       <p>
       Each KMS key in an external key store is associated two backing keys. One is key material that KMS
       generates. The other is the external key specified by this parameter. When you use the KMS key in an
       external key store to encrypt data, the encryption operation is performed first by KMS using the KMS key
       material, and then by the external key manager using the specified external key, a process known as
       <i>double encryption</i>. For details, see <a href=
       "https://docs.aws.amazon.com/kms/latest/developerguide/keystore-external.html#concept-double-encryption"
       >Double encryption</a> in the <i>Key Management Service Developer Guide</i>.
@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/CreateKeyRequest.java