class MqttPubReplyMessageVariableHeader extends MqttMessageIdVariableHeader {

    private final byte reasonCode;
    private final MqttProperties properties;

    public static final byte REASON_CODE_OK = 0;

    public MqttPubReplyMessageVariableHeader(int messageId, byte reasonCode, MqttProperties properties) {
        super(messageId);
        if (messageId < 1 || messageId > 0xffff) {
            throw new IllegalArgumentException("messageId: " + messageId + " (expected: 1 ~ 65535)");
        }
        this.reasonCode = reasonCode;
        this.properties = MqttProperties.withEmptyDefaults(properties);
    }

    public byte reasonCode() {
        return reasonCode;
    }

    public MqttProperties properties() {
        return properties;
    }

    @Override
    public String toString() {<FILL_FUNCTION_BODY>}
}

        return StringUtil.simpleClassName(this) + "[" +
                "messageId=" + messageId() +
                ", reasonCode=" + reasonCode +
                ", properties=" + properties +
                ']';
    
<methods>public static io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader from(int) ,public int messageId() ,public java.lang.String toString() ,public io.netty.handler.codec.mqtt.MqttMessageIdAndPropertiesVariableHeader withEmptyProperties() <variables>private final non-sealed int messageId