aboutsummaryrefslogtreecommitdiffstats
path: root/documentapi/src/vespa/documentapi/messagebus/messages/wrongdistributionreply.h
blob: fef191e287ed1cd8ff6460d269ba0d54c5da5464 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "documentreply.h"

namespace documentapi {

class WrongDistributionReply : public DocumentReply {
private:
    string _systemState;

public:
    using UP = std::unique_ptr<WrongDistributionReply>;
    using SP = std::shared_ptr<WrongDistributionReply>;

    WrongDistributionReply();
    WrongDistributionReply(const string &systemState);
    ~WrongDistributionReply();
    const string &getSystemState() const { return _systemState; };
    void setSystemState(const string &state) { _systemState = state; };
    string toString() const override { return "wrongdistributionreply"; }
};

}