|
| 1 | +package us.kbase.common.service; |
| 2 | + |
| 3 | +import java.util.HashMap; |
| 4 | +import java.util.List; |
| 5 | +import java.util.Map; |
| 6 | +import javax.annotation.Generated; |
| 7 | +import com.fasterxml.jackson.annotation.JsonAnyGetter; |
| 8 | +import com.fasterxml.jackson.annotation.JsonAnySetter; |
| 9 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 10 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 11 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 12 | + |
| 13 | + |
| 14 | +// NOTE: This class is not used in this repo, but is required for kb_sdk[_plus] Java async clients. |
| 15 | + |
| 16 | +/** |
| 17 | + * <p>Original spec-file type: JobState</p> |
| 18 | + * <pre> |
| 19 | + * finished - indicates whether job is done (including error cases) or not, |
| 20 | + * if the value is true then either of 'returned_data' or 'detailed_error' |
| 21 | + * should be defined; |
| 22 | + * ujs_url - url of UserAndJobState service used by job service |
| 23 | + * status - tuple returned by UserAndJobState.get_job_status method |
| 24 | + * result - keeps exact copy of what original server method puts |
| 25 | + * in result block of JSON RPC response; |
| 26 | + * error - keeps exact copy of what original server method puts |
| 27 | + * in error block of JSON RPC response. |
| 28 | + * </pre> |
| 29 | + * |
| 30 | + */ |
| 31 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 32 | +@Generated("com.googlecode.jsonschema2pojo") |
| 33 | +@JsonPropertyOrder({ |
| 34 | + "finished", |
| 35 | + "ujs_url", |
| 36 | + "status", |
| 37 | + "result", |
| 38 | + "error" |
| 39 | +}) |
| 40 | +public class JobState<T> { |
| 41 | + |
| 42 | + @JsonProperty("finished") |
| 43 | + private Long finished; |
| 44 | + @JsonProperty("ujs_url") |
| 45 | + private String ujsUrl; |
| 46 | + @JsonProperty("status") |
| 47 | + private List<Object> status; |
| 48 | + @JsonProperty("result") |
| 49 | + private T result; |
| 50 | + private Map<String, Object> additionalProperties = new HashMap<String, Object>(); |
| 51 | + |
| 52 | + @JsonProperty("finished") |
| 53 | + public Long getFinished() { |
| 54 | + return finished; |
| 55 | + } |
| 56 | + |
| 57 | + @JsonProperty("finished") |
| 58 | + public void setFinished(Long finished) { |
| 59 | + this.finished = finished; |
| 60 | + } |
| 61 | + |
| 62 | + @JsonProperty("ujs_url") |
| 63 | + public String getUjsUrl() { |
| 64 | + return ujsUrl; |
| 65 | + } |
| 66 | + |
| 67 | + @JsonProperty("ujs_url") |
| 68 | + public void setUjsUrl(String ujsUrl) { |
| 69 | + this.ujsUrl = ujsUrl; |
| 70 | + } |
| 71 | + |
| 72 | + @JsonProperty("status") |
| 73 | + public List<Object> getStatus() { |
| 74 | + return status; |
| 75 | + } |
| 76 | + |
| 77 | + @JsonProperty("status") |
| 78 | + public void setStatus(List<Object> status) { |
| 79 | + this.status = status; |
| 80 | + } |
| 81 | + |
| 82 | + @JsonProperty("result") |
| 83 | + public T getResult() { |
| 84 | + return result; |
| 85 | + } |
| 86 | + |
| 87 | + @JsonProperty("result") |
| 88 | + public void setResult(T result) { |
| 89 | + this.result = result; |
| 90 | + } |
| 91 | + |
| 92 | + @JsonAnyGetter |
| 93 | + public Map<String, Object> getAdditionalProperties() { |
| 94 | + return this.additionalProperties; |
| 95 | + } |
| 96 | + |
| 97 | + @JsonAnySetter |
| 98 | + public void setAdditionalProperties(String name, Object value) { |
| 99 | + this.additionalProperties.put(name, value); |
| 100 | + } |
| 101 | + |
| 102 | + @Override |
| 103 | + public String toString() { |
| 104 | + return ((((((((((("JobState"+" [finished=")+ finished)+", ujsUrl=")+ ujsUrl)+", status=")+ status)+", result=")+ result)+", additionalProperties=")+ additionalProperties)+"]"); |
| 105 | + } |
| 106 | +} |
| 107 | + |
0 commit comments