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 TmSegment.
12   **/
13  
14  @ApiModel(description = "Wrapper object for a single TmSegment.")
15  @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaInflectorServerCodegen", comments = "Generator version: 7.15.0")
16  public class TmSegmentWrapper {
17    @JsonProperty("tm_segment")
18    private TmSegment tmSegment;
19  
20    /**
21     **/
22    public TmSegmentWrapper tmSegment(TmSegment tmSegment) {
23      this.tmSegment = tmSegment;
24      return this;
25    }
26  
27    @ApiModelProperty(required = true, value = "")
28    @JsonProperty("tm_segment")
29    public TmSegment getTmSegment() {
30      return tmSegment;
31    }
32  
33    public void setTmSegment(TmSegment tmSegment) {
34      this.tmSegment = tmSegment;
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      TmSegmentWrapper tmSegmentWrapper = (TmSegmentWrapper) o;
46      return Objects.equals(tmSegment, tmSegmentWrapper.tmSegment);
47    }
48  
49    @Override
50    public int hashCode() {
51      return Objects.hash(tmSegment);
52    }
53  
54    @Override
55    public String toString() {
56      StringBuilder sb = new StringBuilder();
57      sb.append("class TmSegmentWrapper {\n");
58  
59      sb.append("    tmSegment: ").append(toIndentedString(tmSegment)).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  }