withQos method Null safety

MqttHeader withQos(
  1. MqttQos qos
)

Sets the Qos of the message header.

Implementation

MqttHeader withQos(MqttQos qos) {
  this.qos = qos;
  return this;
}