class MqttReasonCodeAndPropertiesVariableHeader {

    private final byte reasonCode;
    private final MqttProperties properties;

    public static final byte REASON_CODE_OK = 0;

    public MqttReasonCodeAndPropertiesVariableHeader(byte reasonCode,
                                                     MqttProperties properties) {
        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 new StringBuilder(StringUtil.simpleClassName(this))
            .append('[')
            .append("reasonCode=").append(reasonCode)
            .append(", properties=").append(properties)
            .append(']')
            .toString();
    
<no_super_class>