Set duration property.
The total duration in nanoseconds of the data stream. If the total duration is known, it is recommended to configure it with this property.
Builder instance for fluent chaining
Set duration property.