mirror of https://github.com/micromata/borgbackup-butler.git

Kai Reinhard
19.14.2022 725909255d81bccf67bac844fcd8fe2e978cae9a
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
29
30
31
32
33
34
35
package de.micromata.borgbutler.jobs;
 
public class JobResult<T> {
    public Status getStatus() {
        return this.status;
    }
 
    public T getResultObject() {
        return this.resultObject;
    }
 
    public String getErrorString() {
        return this.errorString;
    }
 
    public JobResult<T> setStatus(Status status) {
        this.status = status;
        return this;
    }
 
    public JobResult<T> setResultObject(T resultObject) {
        this.resultObject = resultObject;
        return this;
    }
 
    public JobResult<T> setErrorString(String errorString) {
        this.errorString = errorString;
        return this;
    }
 
    public enum Status {OK, ERROR}
    private Status status;
    private T resultObject;
    private String errorString;
}