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.JsonProperty;
8
9 import io.swagger.annotations.ApiModel;
10 import io.swagger.annotations.ApiModelProperty;
11
12
13
14
15
16 @ApiModel(description = "Translation Memory information.")
17 @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
18 public class TranslationMemoryInfo {
19 @JsonProperty("tm_id")
20 private UUID tmId;
21
22 @JsonProperty("tm_file_name")
23 private String tmFileName;
24
25 @JsonProperty("src_lang")
26 private String srcLang;
27
28 @JsonProperty("trg_lang")
29 private String trgLang;
30
31 @JsonProperty("segments_count")
32 private Long segmentsCount;
33
34 @JsonProperty("created_by")
35 private UUID createdBy;
36
37 @JsonProperty("created_at")
38 private Date createdAt;
39
40 @JsonProperty("updated_by")
41 private UUID updatedBy;
42
43 @JsonProperty("updated_at")
44 private Date updatedAt;
45
46
47
48
49 public TranslationMemoryInfo tmId(UUID tmId) {
50 this.tmId = tmId;
51 return this;
52 }
53
54 @ApiModelProperty(required = true, value = "UUID of the Translation Memory")
55 @JsonProperty("tm_id")
56 public UUID getTmId() {
57 return tmId;
58 }
59
60 public void setTmId(UUID tmId) {
61 this.tmId = tmId;
62 }
63
64
65
66
67 public TranslationMemoryInfo tmFileName(String tmFileName) {
68 this.tmFileName = tmFileName;
69 return this;
70 }
71
72 @ApiModelProperty(required = true, value = "Name of the translation memory file")
73 @JsonProperty("tm_file_name")
74 public String getTmFileName() {
75 return tmFileName;
76 }
77
78 public void setTmFileName(String tmFileName) {
79 this.tmFileName = tmFileName;
80 }
81
82
83
84
85 public TranslationMemoryInfo srcLang(String srcLang) {
86 this.srcLang = srcLang;
87 return this;
88 }
89
90 @ApiModelProperty(required = true, value = "Source language ISO code")
91 @JsonProperty("src_lang")
92 public String getSrcLang() {
93 return srcLang;
94 }
95
96 public void setSrcLang(String srcLang) {
97 this.srcLang = srcLang;
98 }
99
100
101
102
103 public TranslationMemoryInfo trgLang(String trgLang) {
104 this.trgLang = trgLang;
105 return this;
106 }
107
108 @ApiModelProperty(required = true, value = "Target language ISO code")
109 @JsonProperty("trg_lang")
110 public String getTrgLang() {
111 return trgLang;
112 }
113
114 public void setTrgLang(String trgLang) {
115 this.trgLang = trgLang;
116 }
117
118
119
120
121 public TranslationMemoryInfo segmentsCount(Long segmentsCount) {
122 this.segmentsCount = segmentsCount;
123 return this;
124 }
125
126 @ApiModelProperty(required = true, value = "Number of translation segments in the TM")
127 @JsonProperty("segments_count")
128 public Long getSegmentsCount() {
129 return segmentsCount;
130 }
131
132 public void setSegmentsCount(Long segmentsCount) {
133 this.segmentsCount = segmentsCount;
134 }
135
136
137
138
139 public TranslationMemoryInfo createdBy(UUID createdBy) {
140 this.createdBy = createdBy;
141 return this;
142 }
143
144 @ApiModelProperty(required = true, value = "UUID of the user who created the TM")
145 @JsonProperty("created_by")
146 public UUID getCreatedBy() {
147 return createdBy;
148 }
149
150 public void setCreatedBy(UUID createdBy) {
151 this.createdBy = createdBy;
152 }
153
154
155
156
157 public TranslationMemoryInfo createdAt(Date createdAt) {
158 this.createdAt = createdAt;
159 return this;
160 }
161
162 @ApiModelProperty(required = true, value = "Creation timestamp")
163 @JsonProperty("created_at")
164 public Date getCreatedAt() {
165 return createdAt;
166 }
167
168 public void setCreatedAt(Date createdAt) {
169 this.createdAt = createdAt;
170 }
171
172
173
174
175 public TranslationMemoryInfo updatedBy(UUID updatedBy) {
176 this.updatedBy = updatedBy;
177 return this;
178 }
179
180 @ApiModelProperty(required = true, value = "UUID of the user who updated the TM")
181 @JsonProperty("updated_by")
182 public UUID getUpdatedBy() {
183 return updatedBy;
184 }
185
186 public void setUpdatedBy(UUID updatedBy) {
187 this.updatedBy = updatedBy;
188 }
189
190
191
192
193 public TranslationMemoryInfo updatedAt(Date updatedAt) {
194 this.updatedAt = updatedAt;
195 return this;
196 }
197
198 @ApiModelProperty(required = true, value = "Last update timestamp")
199 @JsonProperty("updated_at")
200 public Date getUpdatedAt() {
201 return updatedAt;
202 }
203
204 public void setUpdatedAt(Date updatedAt) {
205 this.updatedAt = updatedAt;
206 }
207
208 @Override
209 public boolean equals(Object o) {
210 if (this == o) {
211 return true;
212 }
213 if (o == null || getClass() != o.getClass()) {
214 return false;
215 }
216 TranslationMemoryInfo translationMemoryInfo = (TranslationMemoryInfo) o;
217 return Objects.equals(tmId, translationMemoryInfo.tmId) &&
218 Objects.equals(tmFileName, translationMemoryInfo.tmFileName) &&
219 Objects.equals(srcLang, translationMemoryInfo.srcLang) &&
220 Objects.equals(trgLang, translationMemoryInfo.trgLang) &&
221 Objects.equals(segmentsCount, translationMemoryInfo.segmentsCount) &&
222 Objects.equals(createdBy, translationMemoryInfo.createdBy) &&
223 Objects.equals(createdAt, translationMemoryInfo.createdAt) &&
224 Objects.equals(updatedBy, translationMemoryInfo.updatedBy) &&
225 Objects.equals(updatedAt, translationMemoryInfo.updatedAt);
226 }
227
228 @Override
229 public int hashCode() {
230 return Objects.hash(tmId, tmFileName, srcLang, trgLang, segmentsCount, createdBy, createdAt,
231 updatedBy, updatedAt);
232 }
233
234 @Override
235 public String toString() {
236 StringBuilder sb = new StringBuilder();
237 sb.append("class TranslationMemoryInfo {\n");
238
239 sb.append(" tmId: ").append(toIndentedString(tmId)).append("\n");
240 sb.append(" tmFileName: ").append(toIndentedString(tmFileName)).append("\n");
241 sb.append(" srcLang: ").append(toIndentedString(srcLang)).append("\n");
242 sb.append(" trgLang: ").append(toIndentedString(trgLang)).append("\n");
243 sb.append(" segmentsCount: ").append(toIndentedString(segmentsCount)).append("\n");
244 sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n");
245 sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
246 sb.append(" updatedBy: ").append(toIndentedString(updatedBy)).append("\n");
247 sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n");
248 sb.append("}");
249 return sb.toString();
250 }
251
252
253
254
255
256 private String toIndentedString(Object o) {
257 if (o == null) {
258 return "null";
259 }
260 return o.toString().replace("\n", "\n ");
261 }
262 }