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 ImportCompletedStatusResponse {
15    /**
16     * Document import completed successfully
17     */
18    public enum StatusEnum {
19      IMPORT_COMPLETED("IMPORT_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("export_url")
54    private String exportUrl;
55  
56    /**
57     * Document import completed successfully
58     **/
59    public ImportCompletedStatusResponse status(StatusEnum status) {
60      this.status = status;
61      return this;
62    }
63  
64    @ApiModelProperty(example = "IMPORT_COMPLETED", required = true, value = "Document import 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 ImportCompletedStatusResponse 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 import completed
94     **/
95    public ImportCompletedStatusResponse completedAt(Date completedAt) {
96      this.completedAt = completedAt;
97      return this;
98    }
99  
100   @ApiModelProperty(example = "2025-10-10T14:30Z", required = true, value = "Timestamp when import 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 trigger export generation
112    **/
113   public ImportCompletedStatusResponse exportUrl(String exportUrl) {
114     this.exportUrl = exportUrl;
115     return this;
116   }
117 
118   @ApiModelProperty(example = "/document/550e8400-e29b-41d4-a716-446655440000/export", value = "URL to trigger export generation")
119   @JsonProperty("export_url")
120   public String getExportUrl() {
121     return exportUrl;
122   }
123 
124   public void setExportUrl(String exportUrl) {
125     this.exportUrl = exportUrl;
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     ImportCompletedStatusResponse importCompletedStatusResponse = (ImportCompletedStatusResponse) o;
137     return Objects.equals(status, importCompletedStatusResponse.status) &&
138         Objects.equals(docId, importCompletedStatusResponse.docId) &&
139         Objects.equals(completedAt, importCompletedStatusResponse.completedAt) &&
140         Objects.equals(exportUrl, importCompletedStatusResponse.exportUrl);
141   }
142 
143   @Override
144   public int hashCode() {
145     return Objects.hash(status, docId, completedAt, exportUrl);
146   }
147 
148   @Override
149   public String toString() {
150     StringBuilder sb = new StringBuilder();
151     sb.append("class ImportCompletedStatusResponse {\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("    exportUrl: ").append(toIndentedString(exportUrl)).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 }