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 ExportTranslationMemory200Response {
11    @JsonProperty("code")
12    private Integer code = 200;
13  
14    @JsonProperty("message")
15    private String message;
16  
17    /**
18     * minimum: 100
19     * maximum: 600
20     **/
21    public ExportTranslationMemory200Response code(Integer code) {
22      this.code = code;
23      return this;
24    }
25  
26    @ApiModelProperty(required = true, value = "")
27    @JsonProperty("code")
28    public Integer getCode() {
29      return code;
30    }
31  
32    public void setCode(Integer code) {
33      this.code = code;
34    }
35  
36    /**
37     **/
38    public ExportTranslationMemory200Response message(String message) {
39      this.message = message;
40      return this;
41    }
42  
43    @ApiModelProperty(required = true, value = "")
44    @JsonProperty("message")
45    public String getMessage() {
46      return message;
47    }
48  
49    public void setMessage(String message) {
50      this.message = message;
51    }
52  
53    @Override
54    public boolean equals(Object o) {
55      if (this == o) {
56        return true;
57      }
58      if (o == null || getClass() != o.getClass()) {
59        return false;
60      }
61      ExportTranslationMemory200Response exportTranslationMemory200Response = (ExportTranslationMemory200Response) o;
62      return Objects.equals(code, exportTranslationMemory200Response.code) &&
63          Objects.equals(message, exportTranslationMemory200Response.message);
64    }
65  
66    @Override
67    public int hashCode() {
68      return Objects.hash(code, message);
69    }
70  
71    @Override
72    public String toString() {
73      StringBuilder sb = new StringBuilder();
74      sb.append("class ExportTranslationMemory200Response {\n");
75  
76      sb.append("    code: ").append(toIndentedString(code)).append("\n");
77      sb.append("    message: ").append(toIndentedString(message)).append("\n");
78      sb.append("}");
79      return sb.toString();
80    }
81  
82    /**
83     * Convert the given object to string with each line indented by 4 spaces
84     * (except the first line).
85     */
86    private String toIndentedString(Object o) {
87      if (o == null) {
88        return "null";
89      }
90      return o.toString().replace("\n", "\n    ");
91    }
92  }