public String getKeySpec() {
        return this.keySpec;
    }
<p>
Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
<code>AES_256</code> to generate a 256-bit symmetric key.
</p>
<p>
You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not both) in
every <code>GenerateDataKey</code> request.
</p>

@return Specifies the length of the data key. Use <code>AES_128</code> to generate a 128-bit symmetric key, or
        <code>AES_256</code> to generate a 256-bit symmetric key.</p>
        <p>
        You must specify either the <code>KeySpec</code> or the <code>NumberOfBytes</code> parameter (but not
        both) in every <code>GenerateDataKey</code> request.
@see DataKeySpec
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyRequest.java