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