public void setNumberOfBytes(Integer numberOfBytes) {
        this.numberOfBytes = numberOfBytes;
    }
<p>
Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data key (64
bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the <code>KeySpec</code>
parameter.
</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>

@param numberOfBytes
       Specifies the length of the data key in bytes. For example, use the value 64 to generate a 512-bit data
       key (64 bytes is 512 bits). For 128-bit (16-byte) and 256-bit (32-byte) data keys, use the
       <code>KeySpec</code> parameter.</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.
aws-java-sdk-kms/src/main/java/com/amazonaws/services/kms/model/GenerateDataKeyRequest.java