public void setKeySpec(String keySpec) {
        this.keySpec = keySpec;
    }
<p>
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>

@param keySpec
       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.
@see DataKeySpec
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyWithoutPlaintextRequest.java