|
| 1 | +package dev.tomr.hcloud.http.model; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 4 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 5 | +import com.fasterxml.jackson.annotation.JsonRootName; |
| 6 | +import dev.tomr.hcloud.http.HetznerJsonObject; |
| 7 | +import dev.tomr.hcloud.http.model.enums.Status; |
| 8 | + |
| 9 | +import java.util.List; |
| 10 | + |
| 11 | +@JsonIgnoreProperties(ignoreUnknown = true) |
| 12 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 13 | +@JsonRootName("action") |
| 14 | +public class Action extends HetznerJsonObject { |
| 15 | + |
| 16 | + private String command; |
| 17 | + private String finished; |
| 18 | + private Integer id; |
| 19 | + private Integer progress; |
| 20 | + private String started; |
| 21 | + private Error error; |
| 22 | + private Status status; |
| 23 | + private List<Resource> resources; |
| 24 | + |
| 25 | + public Action(String command, String finished, Integer id, Integer progress, String started, Error error, Status status, List<Resource> resources) { |
| 26 | + this.command = command; |
| 27 | + this.finished = finished; |
| 28 | + this.id = id; |
| 29 | + this.progress = progress; |
| 30 | + this.started = started; |
| 31 | + this.error = error; |
| 32 | + this.status = status; |
| 33 | + this.resources = resources; |
| 34 | + } |
| 35 | + |
| 36 | + public Action() { |
| 37 | + } |
| 38 | + |
| 39 | + public String getCommand() { |
| 40 | + return command; |
| 41 | + } |
| 42 | + |
| 43 | + public void setCommand(String command) { |
| 44 | + this.command = command; |
| 45 | + } |
| 46 | + |
| 47 | + public String getFinished() { |
| 48 | + return finished; |
| 49 | + } |
| 50 | + |
| 51 | + public void setFinished(String finished) { |
| 52 | + this.finished = finished; |
| 53 | + } |
| 54 | + |
| 55 | + public Integer getId() { |
| 56 | + return id; |
| 57 | + } |
| 58 | + |
| 59 | + public void setId(Integer id) { |
| 60 | + this.id = id; |
| 61 | + } |
| 62 | + |
| 63 | + public Integer getProgress() { |
| 64 | + return progress; |
| 65 | + } |
| 66 | + |
| 67 | + public void setProgress(Integer progress) { |
| 68 | + this.progress = progress; |
| 69 | + } |
| 70 | + |
| 71 | + public String getStarted() { |
| 72 | + return started; |
| 73 | + } |
| 74 | + |
| 75 | + public void setStarted(String started) { |
| 76 | + this.started = started; |
| 77 | + } |
| 78 | + |
| 79 | + public Error getError() { |
| 80 | + return error; |
| 81 | + } |
| 82 | + |
| 83 | + public void setError(Error error) { |
| 84 | + this.error = error; |
| 85 | + } |
| 86 | + |
| 87 | + public Status getStatus() { |
| 88 | + return status; |
| 89 | + } |
| 90 | + |
| 91 | + public void setStatus(Status status) { |
| 92 | + this.status = status; |
| 93 | + } |
| 94 | + |
| 95 | + public List<Resource> getResources() { |
| 96 | + return resources; |
| 97 | + } |
| 98 | + |
| 99 | + public void setResources(List<Resource> resources) { |
| 100 | + this.resources = resources; |
| 101 | + } |
| 102 | +} |
0 commit comments