View Javadoc
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 ExportCompletedStatusResponse {
15    /**
16     * Document export completed successfully
17     */
18    public enum StatusEnum {
19      EXPORT_COMPLETED("EXPORT_COMPLETED");
20  
21      private String value;
22  
23      StatusEnum(String value) {
24        this.value = value;
25      }
26  
27      @Override
28      @JsonValue
29      public String toString() {
30        return String.valueOf(value);
31      }
32  
33      @JsonCreator
34      public static StatusEnum fromValue(String text) {
35        for (StatusEnum b : StatusEnum.values()) {
36          if (String.valueOf(b.value).equals(text)) {
37            return b;
38          }
39        }
40        throw new IllegalArgumentException("Unexpected value '" + text + "'");
41      }
42    }
43  
44    @JsonProperty("status")
45    private StatusEnum status;
46  
47    @JsonProperty("doc_id")
48    private UUID docId;
49  
50    @JsonProperty("completed_at")
51    private Date completedAt;
52  
53    @JsonProperty("download_url")
54    private String downloadUrl;
55  
56    /**
57     * Document export completed successfully
58     **/
59    public ExportCompletedStatusResponse status(StatusEnum status) {
60      this.status = status;
61      return this;
62    }
63  
64    @ApiModelProperty(example = "EXPORT_COMPLETED", required = true, value = "Document export completed successfully")
65    @JsonProperty("status")
66    public StatusEnum getStatus() {
67      return status;
68    }
69  
70    public void setStatus(StatusEnum status) {
71      this.status = status;
72    }
73  
74    /**
75     * Unique identifier of the document
76     **/
77    public ExportCompletedStatusResponse docId(UUID docId) {
78      this.docId = docId;
79      return this;
80    }
81  
82    @ApiModelProperty(example = "550e8400-e29b-41d4-a716-446655440000", required = true, value = "Unique identifier of the document")
83    @JsonProperty("doc_id")
84    public UUID getDocId() {
85      return docId;
86    }
87  
88    public void setDocId(UUID docId) {
89      this.docId = docId;
90    }
91  
92    /**
93     * Timestamp when export completed
94     **/
95    public ExportCompletedStatusResponse completedAt(Date completedAt) {
96      this.completedAt = completedAt;
97      return this;
98    }
99  
100   @ApiModelProperty(example = "2025-10-10T15:00Z", required = true, value = "Timestamp when export completed")
101   @JsonProperty("completed_at")
102   public Date getCompletedAt() {
103     return completedAt;
104   }
105 
106   public void setCompletedAt(Date completedAt) {
107     this.completedAt = completedAt;
108   }
109 
110   /**
111    * URL to download the translated document
112    **/
113   public ExportCompletedStatusResponse downloadUrl(String downloadUrl) {
114     this.downloadUrl = downloadUrl;
115     return this;
116   }
117 
118   @ApiModelProperty(example = "/document/550e8400-e29b-41d4-a716-446655440000", value = "URL to download the translated document")
119   @JsonProperty("download_url")
120   public String getDownloadUrl() {
121     return downloadUrl;
122   }
123 
124   public void setDownloadUrl(String downloadUrl) {
125     this.downloadUrl = downloadUrl;
126   }
127 
128   @Override
129   public boolean equals(Object o) {
130     if (this == o) {
131       return true;
132     }
133     if (o == null || getClass() != o.getClass()) {
134       return false;
135     }
136     ExportCompletedStatusResponse exportCompletedStatusResponse = (ExportCompletedStatusResponse) o;
137     return Objects.equals(status, exportCompletedStatusResponse.status) &&
138         Objects.equals(docId, exportCompletedStatusResponse.docId) &&
139         Objects.equals(completedAt, exportCompletedStatusResponse.completedAt) &&
140         Objects.equals(downloadUrl, exportCompletedStatusResponse.downloadUrl);
141   }
142 
143   @Override
144   public int hashCode() {
145     return Objects.hash(status, docId, completedAt, downloadUrl);
146   }
147 
148   @Override
149   public String toString() {
150     StringBuilder sb = new StringBuilder();
151     sb.append("class ExportCompletedStatusResponse {\n");
152 
153     sb.append("    status: ").append(toIndentedString(status)).append("\n");
154     sb.append("    docId: ").append(toIndentedString(docId)).append("\n");
155     sb.append("    completedAt: ").append(toIndentedString(completedAt)).append("\n");
156     sb.append("    downloadUrl: ").append(toIndentedString(downloadUrl)).append("\n");
157     sb.append("}");
158     return sb.toString();
159   }
160 
161   /**
162    * Convert the given object to string with each line indented by 4 spaces
163    * (except the first line).
164    */
165   private String toIndentedString(Object o) {
166     if (o == null) {
167       return "null";
168     }
169     return o.toString().replace("\n", "\n    ");
170   }
171 }