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