View Javadoc
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.ApiModel;
10  import io.swagger.annotations.ApiModelProperty;
11  
12  /**
13   * Wrapper object for TranslationMemoryInfos.
14   **/
15  
16  @ApiModel(description = "Wrapper object for TranslationMemoryInfos.")
17  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
18  public class TranslationMemoryInfosWrapper {
19    @JsonProperty("translation_memories")
20    private List<TranslationMemoryInfo> translationMemories = new ArrayList<>();
21  
22    @JsonProperty("pagination")
23    private PaginationInfo pagination;
24  
25    /**
26     * Array of TranslationMemoryInfo objects.
27     **/
28    public TranslationMemoryInfosWrapper translationMemories(
29        List<TranslationMemoryInfo> translationMemories) {
30      this.translationMemories = translationMemories;
31      return this;
32    }
33  
34    @ApiModelProperty(required = true, value = "Array of TranslationMemoryInfo objects.")
35    @JsonProperty("translation_memories")
36    public List<TranslationMemoryInfo> getTranslationMemories() {
37      return translationMemories;
38    }
39  
40    public void setTranslationMemories(List<TranslationMemoryInfo> translationMemories) {
41      this.translationMemories = translationMemories;
42    }
43  
44    /**
45     **/
46    public TranslationMemoryInfosWrapper pagination(PaginationInfo pagination) {
47      this.pagination = pagination;
48      return this;
49    }
50  
51    @ApiModelProperty(required = true, value = "")
52    @JsonProperty("pagination")
53    public PaginationInfo getPagination() {
54      return pagination;
55    }
56  
57    public void setPagination(PaginationInfo pagination) {
58      this.pagination = pagination;
59    }
60  
61    @Override
62    public boolean equals(Object o) {
63      if (this == o) {
64        return true;
65      }
66      if (o == null || getClass() != o.getClass()) {
67        return false;
68      }
69      TranslationMemoryInfosWrapper translationMemoryInfosWrapper = (TranslationMemoryInfosWrapper) o;
70      return Objects.equals(translationMemories, translationMemoryInfosWrapper.translationMemories) &&
71          Objects.equals(pagination, translationMemoryInfosWrapper.pagination);
72    }
73  
74    @Override
75    public int hashCode() {
76      return Objects.hash(translationMemories, pagination);
77    }
78  
79    @Override
80    public String toString() {
81      StringBuilder sb = new StringBuilder();
82      sb.append("class TranslationMemoryInfosWrapper {\n");
83  
84      sb.append("    translationMemories: ").append(toIndentedString(translationMemories))
85          .append("\n");
86      sb.append("    pagination: ").append(toIndentedString(pagination)).append("\n");
87      sb.append("}");
88      return sb.toString();
89    }
90  
91    /**
92     * Convert the given object to string with each line indented by 4 spaces
93     * (except the first line).
94     */
95    private String toIndentedString(Object o) {
96      if (o == null) {
97        return "null";
98      }
99      return o.toString().replace("\n", "\n    ");
100   }
101 }