1 package com.acumenvelocity.ath.model;
2
3 import java.util.Date;
4 import java.util.Objects;
5 import java.util.UUID;
6
7 import com.fasterxml.jackson.annotation.JsonCreator;
8 import com.fasterxml.jackson.annotation.JsonProperty;
9 import com.fasterxml.jackson.annotation.JsonValue;
10
11 import io.swagger.annotations.ApiModelProperty;
12
13 @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
14 public class ProcessingStatusResponse {
15
16
17
18 public enum StatusEnum {
19 IMPORTING("IMPORTING"),
20
21 EXPORTING("EXPORTING");
22
23 private String value;
24
25 StatusEnum(String value) {
26 this.value = value;
27 }
28
29 @Override
30 @JsonValue
31 public String toString() {
32 return String.valueOf(value);
33 }
34
35 @JsonCreator
36 public static StatusEnum fromValue(String text) {
37 for (StatusEnum b : StatusEnum.values()) {
38 if (String.valueOf(b.value).equals(text)) {
39 return b;
40 }
41 }
42 throw new IllegalArgumentException("Unexpected value '" + text + "'");
43 }
44 }
45
46 @JsonProperty("status")
47 private StatusEnum status;
48
49 @JsonProperty("doc_id")
50 private UUID docId;
51
52 @JsonProperty("progress")
53 private Integer progress;
54
55 @JsonProperty("started_at")
56 private Date startedAt;
57
58
59
60
61 public ProcessingStatusResponse status(StatusEnum status) {
62 this.status = status;
63 return this;
64 }
65
66 @ApiModelProperty(example = "IMPORTING", required = true, value = "Current status of the document")
67 @JsonProperty("status")
68 public StatusEnum getStatus() {
69 return status;
70 }
71
72 public void setStatus(StatusEnum status) {
73 this.status = status;
74 }
75
76
77
78
79 public ProcessingStatusResponse docId(UUID docId) {
80 this.docId = docId;
81 return this;
82 }
83
84 @ApiModelProperty(example = "550e8400-e29b-41d4-a716-446655440000", required = true, value = "Unique identifier of the document")
85 @JsonProperty("doc_id")
86 public UUID getDocId() {
87 return docId;
88 }
89
90 public void setDocId(UUID docId) {
91 this.docId = docId;
92 }
93
94
95
96
97
98
99 public ProcessingStatusResponse progress(Integer progress) {
100 this.progress = progress;
101 return this;
102 }
103
104 @ApiModelProperty(example = "45", value = "Processing progress percentage (optional)")
105 @JsonProperty("progress")
106 public Integer getProgress() {
107 return progress;
108 }
109
110 public void setProgress(Integer progress) {
111 this.progress = progress;
112 }
113
114
115
116
117 public ProcessingStatusResponse startedAt(Date startedAt) {
118 this.startedAt = startedAt;
119 return this;
120 }
121
122 @ApiModelProperty(example = "2025-10-10T14:00Z", value = "Timestamp when processing started")
123 @JsonProperty("started_at")
124 public Date getStartedAt() {
125 return startedAt;
126 }
127
128 public void setStartedAt(Date startedAt) {
129 this.startedAt = startedAt;
130 }
131
132 @Override
133 public boolean equals(Object o) {
134 if (this == o) {
135 return true;
136 }
137 if (o == null || getClass() != o.getClass()) {
138 return false;
139 }
140 ProcessingStatusResponse processingStatusResponse = (ProcessingStatusResponse) o;
141 return Objects.equals(status, processingStatusResponse.status) &&
142 Objects.equals(docId, processingStatusResponse.docId) &&
143 Objects.equals(progress, processingStatusResponse.progress) &&
144 Objects.equals(startedAt, processingStatusResponse.startedAt);
145 }
146
147 @Override
148 public int hashCode() {
149 return Objects.hash(status, docId, progress, startedAt);
150 }
151
152 @Override
153 public String toString() {
154 StringBuilder sb = new StringBuilder();
155 sb.append("class ProcessingStatusResponse {\n");
156
157 sb.append(" status: ").append(toIndentedString(status)).append("\n");
158 sb.append(" docId: ").append(toIndentedString(docId)).append("\n");
159 sb.append(" progress: ").append(toIndentedString(progress)).append("\n");
160 sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n");
161 sb.append("}");
162 return sb.toString();
163 }
164
165
166
167
168
169 private String toIndentedString(Object o) {
170 if (o == null) {
171 return "null";
172 }
173 return o.toString().replace("\n", "\n ");
174 }
175 }