-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProtection.java
More file actions
40 lines (31 loc) · 862 Bytes
/
Protection.java
File metadata and controls
40 lines (31 loc) · 862 Bytes
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
36
37
38
39
40
package dev.tomr.hcloud.resources.common;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Protection{
private boolean delete;
private boolean rebuild;
public Protection(boolean delete, boolean rebuild) {
this.delete = delete;
this.rebuild = rebuild;
}
public Protection() {}
public boolean isDelete() {
return delete;
}
public void setDelete(boolean delete) {
this.delete = delete;
}
public boolean isRebuild() {
return rebuild;
}
public void setRebuild(boolean rebuild) {
this.rebuild = rebuild;
}
@Override
public String toString() {
return "Protection{" +
"delete=" + delete +
", rebuild=" + rebuild +
'}';
}
}