summaryrefslogtreecommitdiffstats
path: root/storage/src/vespa/storageapi/messageapi/maintenancecommand.h
blob: 6bb36d0d32f1930a891a49e07b6d30afe28a4ef1 (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
25
26
27
28
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once

#include "bucketinfocommand.h"

namespace storage {
namespace api {

class MaintenanceCommand : public BucketInfoCommand
{
public:
    MaintenanceCommand(const MessageType& type, const document::Bucket &bucket)
        : BucketInfoCommand(type, bucket)
    {}
    MaintenanceCommand(const MaintenanceCommand &) = default;
    MaintenanceCommand(MaintenanceCommand &&) = default;
    MaintenanceCommand & operator = (const MaintenanceCommand &) = delete;
    MaintenanceCommand & operator = (MaintenanceCommand &&) = delete;
    ~MaintenanceCommand();

    const vespalib::string& getReason() const { return _reason; };
    void setReason(vespalib::stringref reason) { _reason = reason; };
protected:
    vespalib::string _reason;
};

}
}