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 DocumentInfos.
14   **/
15  
16  @ApiModel(description = "Wrapper object for DocumentInfos.")
17  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
18  public class DocumentInfosWrapper {
19    @JsonProperty("documents")
20    private List<DocumentInfo> documents = new ArrayList<>();
21  
22    @JsonProperty("pagination")
23    private PaginationInfo pagination;
24  
25    /**
26     * Array of DocumentInfo objects.
27     **/
28    public DocumentInfosWrapper documents(List<DocumentInfo> documents) {
29      this.documents = documents;
30      return this;
31    }
32  
33    @ApiModelProperty(required = true, value = "Array of DocumentInfo objects.")
34    @JsonProperty("documents")
35    public List<DocumentInfo> getDocuments() {
36      return documents;
37    }
38  
39    public void setDocuments(List<DocumentInfo> documents) {
40      this.documents = documents;
41    }
42  
43    /**
44     **/
45    public DocumentInfosWrapper 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      DocumentInfosWrapper documentInfosWrapper = (DocumentInfosWrapper) o;
69      return Objects.equals(documents, documentInfosWrapper.documents) &&
70          Objects.equals(pagination, documentInfosWrapper.pagination);
71    }
72  
73    @Override
74    public int hashCode() {
75      return Objects.hash(documents, pagination);
76    }
77  
78    @Override
79    public String toString() {
80      StringBuilder sb = new StringBuilder();
81      sb.append("class DocumentInfosWrapper {\n");
82  
83      sb.append("    documents: ").append(toIndentedString(documents)).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  }