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.ApiModelProperty;
8   
9   @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
10  public class GetDocumentSegment200Response {
11    @JsonProperty("code")
12    private Integer code = 200;
13  
14    @JsonProperty("message")
15    private String message;
16  
17    @JsonProperty("document_segment")
18    private DocumentSegment documentSegment;
19  
20    /**
21     * minimum: 100
22     * maximum: 600
23     **/
24    public GetDocumentSegment200Response code(Integer code) {
25      this.code = code;
26      return this;
27    }
28  
29    @ApiModelProperty(required = true, value = "")
30    @JsonProperty("code")
31    public Integer getCode() {
32      return code;
33    }
34  
35    public void setCode(Integer code) {
36      this.code = code;
37    }
38  
39    /**
40     **/
41    public GetDocumentSegment200Response message(String message) {
42      this.message = message;
43      return this;
44    }
45  
46    @ApiModelProperty(required = true, value = "")
47    @JsonProperty("message")
48    public String getMessage() {
49      return message;
50    }
51  
52    public void setMessage(String message) {
53      this.message = message;
54    }
55  
56    /**
57     **/
58    public GetDocumentSegment200Response documentSegment(DocumentSegment documentSegment) {
59      this.documentSegment = documentSegment;
60      return this;
61    }
62  
63    @ApiModelProperty(required = true, value = "")
64    @JsonProperty("document_segment")
65    public DocumentSegment getDocumentSegment() {
66      return documentSegment;
67    }
68  
69    public void setDocumentSegment(DocumentSegment documentSegment) {
70      this.documentSegment = documentSegment;
71    }
72  
73    @Override
74    public boolean equals(Object o) {
75      if (this == o) {
76        return true;
77      }
78      if (o == null || getClass() != o.getClass()) {
79        return false;
80      }
81      GetDocumentSegment200Response getDocumentSegment200Response = (GetDocumentSegment200Response) o;
82      return Objects.equals(code, getDocumentSegment200Response.code) &&
83          Objects.equals(message, getDocumentSegment200Response.message) &&
84          Objects.equals(documentSegment, getDocumentSegment200Response.documentSegment);
85    }
86  
87    @Override
88    public int hashCode() {
89      return Objects.hash(code, message, documentSegment);
90    }
91  
92    @Override
93    public String toString() {
94      StringBuilder sb = new StringBuilder();
95      sb.append("class GetDocumentSegment200Response {\n");
96  
97      sb.append("    code: ").append(toIndentedString(code)).append("\n");
98      sb.append("    message: ").append(toIndentedString(message)).append("\n");
99      sb.append("    documentSegment: ").append(toIndentedString(documentSegment)).append("\n");
100     sb.append("}");
101     return sb.toString();
102   }
103 
104   /**
105    * Convert the given object to string with each line indented by 4 spaces
106    * (except the first line).
107    */
108   private String toIndentedString(Object o) {
109     if (o == null) {
110       return "null";
111     }
112     return o.toString().replace("\n", "\n    ");
113   }
114 }