public String getOrigin() {
        return this.origin;
    }
<p>
The source of the key material for the KMS key. You cannot change the origin after you create the KMS key. The
default is <code>AWS_KMS</code>, which means that KMS creates the key material.
</p>
<p>
To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create a KMS
key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>. For more
information about importing key material into KMS, see <a
href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key Material</a> in
the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value is valid only for
symmetric KMS keys.
</p>
<p>
To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS key in
an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this value to
<code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to identify the CloudHSM
key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
</p>
<p>
To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key in an
external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
<code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
parameter to identify the associated external key. The <code>KeySpec</code> value must be
<code>SYMMETRIC_DEFAULT</code>.
</p>

@return The source of the key material for the KMS key. You cannot change the origin after you create the KMS
        key. The default is <code>AWS_KMS</code>, which means that KMS creates the key material.</p>
        <p>
        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys-create-cmk.html">create
        a KMS key with no key material</a> (for imported key material), set this value to <code>EXTERNAL</code>.
        For more information about importing key material into KMS, see <a
        href="https://docs.aws.amazon.com/kms/latest/developerguide/importing-keys.html">Importing Key
        Material</a> in the <i>Key Management Service Developer Guide</i>. The <code>EXTERNAL</code> origin value
        is valid only for symmetric KMS keys.
        </p>
        <p>
        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-cmk-keystore.html">create a KMS
        key in an CloudHSM key store</a> and create its key material in the associated CloudHSM cluster, set this
        value to <code>AWS_CLOUDHSM</code>. You must also use the <code>CustomKeyStoreId</code> parameter to
        identify the CloudHSM key store. The <code>KeySpec</code> value must be <code>SYMMETRIC_DEFAULT</code>.
        </p>
        <p>
        To <a href="https://docs.aws.amazon.com/kms/latest/developerguide/create-xks-keys.html">create a KMS key
        in an external key store</a>, set this value to <code>EXTERNAL_KEY_STORE</code>. You must also use the
        <code>CustomKeyStoreId</code> parameter to identify the external key store and the <code>XksKeyId</code>
        parameter to identify the associated external key. The <code>KeySpec</code> value must be
        <code>SYMMETRIC_DEFAULT</code>.
@see OriginType
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/CreateKeyRequest.java