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.ApiModel;
8   import io.swagger.annotations.ApiModelProperty;
9   
10  /**
11   * Wrapper object for a single DocumentSegment.
12   **/
13  
14  @ApiModel(description = "Wrapper object for a single DocumentSegment.")
15  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
16  public class DocumentSegmentWrapper {
17    @JsonProperty("document_segment")
18    private DocumentSegment documentSegment;
19  
20    /**
21     **/
22    public DocumentSegmentWrapper documentSegment(DocumentSegment documentSegment) {
23      this.documentSegment = documentSegment;
24      return this;
25    }
26  
27    @ApiModelProperty(required = true, value = "")
28    @JsonProperty("document_segment")
29    public DocumentSegment getDocumentSegment() {
30      return documentSegment;
31    }
32  
33    public void setDocumentSegment(DocumentSegment documentSegment) {
34      this.documentSegment = documentSegment;
35    }
36  
37    @Override
38    public boolean equals(Object o) {
39      if (this == o) {
40        return true;
41      }
42      if (o == null || getClass() != o.getClass()) {
43        return false;
44      }
45      DocumentSegmentWrapper documentSegmentWrapper = (DocumentSegmentWrapper) o;
46      return Objects.equals(documentSegment, documentSegmentWrapper.documentSegment);
47    }
48  
49    @Override
50    public int hashCode() {
51      return Objects.hash(documentSegment);
52    }
53  
54    @Override
55    public String toString() {
56      StringBuilder sb = new StringBuilder();
57      sb.append("class DocumentSegmentWrapper {\n");
58  
59      sb.append("    documentSegment: ").append(toIndentedString(documentSegment)).append("\n");
60      sb.append("}");
61      return sb.toString();
62    }
63  
64    /**
65     * Convert the given object to string with each line indented by 4 spaces
66     * (except the first line).
67     */
68    private String toIndentedString(Object o) {
69      if (o == null) {
70        return "null";
71      }
72      return o.toString().replace("\n", "\n    ");
73    }
74  }