Setting vtenc_h264 bitrate

I am using a pipeline that uses the gstreamer element vtenc_h264. I would like to set its bitrate to a value B that is derived in some function (not a constant). When I tried this “vtenc_h264 bitrate=B” it gave a pipeline error. How does one set the bitrate for vtenc_h264 in this case ?