1 package com.acumenvelocity.ath.model;
2
3 import java.util.ArrayList;
4 import java.util.List;
5 import java.util.Objects;
6
7 import com.fasterxml.jackson.annotation.JsonProperty;
8
9 import io.swagger.annotations.ApiModelProperty;
10
11 @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
12 public class GetTranslationMemorySegments200Response {
13 @JsonProperty("code")
14 private Integer code = 200;
15
16 @JsonProperty("message")
17 private String message;
18
19 @JsonProperty("tm_segments")
20 private List<TmSegment> tmSegments = new ArrayList<>();
21
22
23
24
25
26 public GetTranslationMemorySegments200Response code(Integer code) {
27 this.code = code;
28 return this;
29 }
30
31 @ApiModelProperty(required = true, value = "")
32 @JsonProperty("code")
33 public Integer getCode() {
34 return code;
35 }
36
37 public void setCode(Integer code) {
38 this.code = code;
39 }
40
41
42
43 public GetTranslationMemorySegments200Response message(String message) {
44 this.message = message;
45 return this;
46 }
47
48 @ApiModelProperty(required = true, value = "")
49 @JsonProperty("message")
50 public String getMessage() {
51 return message;
52 }
53
54 public void setMessage(String message) {
55 this.message = message;
56 }
57
58
59
60
61 public GetTranslationMemorySegments200Response tmSegments(List<TmSegment> tmSegments) {
62 this.tmSegments = tmSegments;
63 return this;
64 }
65
66 @ApiModelProperty(required = true, value = "Array of TmSegment objects.")
67 @JsonProperty("tm_segments")
68 public List<TmSegment> getTmSegments() {
69 return tmSegments;
70 }
71
72 public void setTmSegments(List<TmSegment> tmSegments) {
73 this.tmSegments = tmSegments;
74 }
75
76 @Override
77 public boolean equals(Object o) {
78 if (this == o) {
79 return true;
80 }
81 if (o == null || getClass() != o.getClass()) {
82 return false;
83 }
84 GetTranslationMemorySegments200Response getTranslationMemorySegments200Response = (GetTranslationMemorySegments200Response) o;
85 return Objects.equals(code, getTranslationMemorySegments200Response.code) &&
86 Objects.equals(message, getTranslationMemorySegments200Response.message) &&
87 Objects.equals(tmSegments, getTranslationMemorySegments200Response.tmSegments);
88 }
89
90 @Override
91 public int hashCode() {
92 return Objects.hash(code, message, tmSegments);
93 }
94
95 @Override
96 public String toString() {
97 StringBuilder sb = new StringBuilder();
98 sb.append("class GetTranslationMemorySegments200Response {\n");
99
100 sb.append(" code: ").append(toIndentedString(code)).append("\n");
101 sb.append(" message: ").append(toIndentedString(message)).append("\n");
102 sb.append(" tmSegments: ").append(toIndentedString(tmSegments)).append("\n");
103 sb.append("}");
104 return sb.toString();
105 }
106
107
108
109
110
111 private String toIndentedString(Object o) {
112 if (o == null) {
113 return "null";
114 }
115 return o.toString().replace("\n", "\n ");
116 }
117 }