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.ApiModelProperty;
10  
11  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
12  public class ModifiedSegmentsWrapper {
13    @JsonProperty("mod_segments")
14    private List<DocumentSegment> modSegments = new ArrayList<>();
15  
16    @JsonProperty("pagination")
17    private PaginationInfo pagination;
18  
19    /**
20     **/
21    public ModifiedSegmentsWrapper modSegments(List<DocumentSegment> modSegments) {
22      this.modSegments = modSegments;
23      return this;
24    }
25  
26    @ApiModelProperty(required = true, value = "")
27    @JsonProperty("mod_segments")
28    public List<DocumentSegment> getModSegments() {
29      return modSegments;
30    }
31  
32    public void setModSegments(List<DocumentSegment> modSegments) {
33      this.modSegments = modSegments;
34    }
35  
36    /**
37     **/
38    public ModifiedSegmentsWrapper pagination(PaginationInfo pagination) {
39      this.pagination = pagination;
40      return this;
41    }
42  
43    @ApiModelProperty(required = true, value = "")
44    @JsonProperty("pagination")
45    public PaginationInfo getPagination() {
46      return pagination;
47    }
48  
49    public void setPagination(PaginationInfo pagination) {
50      this.pagination = pagination;
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      ModifiedSegmentsWrapper modifiedSegmentsWrapper = (ModifiedSegmentsWrapper) o;
62      return Objects.equals(modSegments, modifiedSegmentsWrapper.modSegments) &&
63          Objects.equals(pagination, modifiedSegmentsWrapper.pagination);
64    }
65  
66    @Override
67    public int hashCode() {
68      return Objects.hash(modSegments, pagination);
69    }
70  
71    @Override
72    public String toString() {
73      StringBuilder sb = new StringBuilder();
74      sb.append("class ModifiedSegmentsWrapper {\n");
75  
76      sb.append("    modSegments: ").append(toIndentedString(modSegments)).append("\n");
77      sb.append("    pagination: ").append(toIndentedString(pagination)).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  }