/** * Value that identifies the encryption algorithm and key size to generate a data key for. * Currently this can be AES_128 or AES_256. * * <p>Returns a reference to this object so that method calls can be chained together. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>AES_256, AES_128 * * @param keySpec Value that identifies the encryption algorithm and key size to generate a data * key for. Currently this can be AES_128 or AES_256. * @return A reference to this updated object so that method calls can be chained together. * @see DataKeySpec */ public GenerateDataKeyRequest withKeySpec(DataKeySpec keySpec) { this.keySpec = keySpec.toString(); return this; }
/** * Value that identifies the encryption algorithm and key size to generate a data key for. * Currently this can be AES_128 or AES_256. * * <p><b>Constraints:</b><br> * <b>Allowed Values: </b>AES_256, AES_128 * * @param keySpec Value that identifies the encryption algorithm and key size to generate a data * key for. Currently this can be AES_128 or AES_256. * @see DataKeySpec */ public void setKeySpec(DataKeySpec keySpec) { this.keySpec = keySpec.toString(); }