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