|
| 1 | +// -------------------------------------------------------------------------------------------------------------------- |
| 2 | +// <copyright company="Aspose" file="Code128Params.java"> |
| 3 | +// Copyright (c) 2023 Aspose.BarCode for Cloud |
| 4 | +// </copyright> |
| 5 | +// <summary> |
| 6 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | +// of this software and associated documentation files (the "Software"), to deal |
| 8 | +// in the Software without restriction, including without limitation the rights |
| 9 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 10 | +// copies of the Software, and to permit persons to whom the Software is |
| 11 | +// furnished to do so, subject to the following conditions: |
| 12 | +// |
| 13 | +// The above copyright notice and this permission notice shall be included in all |
| 14 | +// copies or substantial portions of the Software. |
| 15 | +// |
| 16 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | +// SOFTWARE. |
| 23 | +// </summary> |
| 24 | +// -------------------------------------------------------------------------------------------------------------------- |
| 25 | + |
| 26 | +package com.aspose.barcode.cloud.model; |
| 27 | + |
| 28 | +import com.google.gson.annotations.SerializedName; |
| 29 | + |
| 30 | +import io.swagger.annotations.ApiModel; |
| 31 | +import io.swagger.annotations.ApiModelProperty; |
| 32 | + |
| 33 | +import java.util.Objects; |
| 34 | + |
| 35 | +/** Code128 params. */ |
| 36 | +@ApiModel(description = "Code128 params.") |
| 37 | +public class Code128Params { |
| 38 | + @SerializedName(value = "encodeMode") |
| 39 | + private Code128EncodeMode encodeMode = null; |
| 40 | + |
| 41 | + /** |
| 42 | + * Encoding mode for Code128 barcodes. Code 128 specification Default value: |
| 43 | + * Code128EncodeMode.Auto. |
| 44 | + * |
| 45 | + * @return encodeMode |
| 46 | + */ |
| 47 | + @ApiModelProperty( |
| 48 | + value = |
| 49 | + "Encoding mode for Code128 barcodes. Code 128 specification Default value: Code128EncodeMode.Auto.") |
| 50 | + public Code128EncodeMode getEncodeMode() { |
| 51 | + return encodeMode; |
| 52 | + } |
| 53 | + |
| 54 | + public void setEncodeMode(Code128EncodeMode encodeMode) { |
| 55 | + this.encodeMode = encodeMode; |
| 56 | + } |
| 57 | + |
| 58 | + @Override |
| 59 | + public boolean equals(java.lang.Object o) { |
| 60 | + if (this == o) { |
| 61 | + return true; |
| 62 | + } |
| 63 | + if (o == null || getClass() != o.getClass()) { |
| 64 | + return false; |
| 65 | + } |
| 66 | + Code128Params code128Params = (Code128Params) o; |
| 67 | + return Objects.equals(this.encodeMode, code128Params.encodeMode); |
| 68 | + } |
| 69 | + |
| 70 | + @Override |
| 71 | + public int hashCode() { |
| 72 | + return Objects.hash(encodeMode); |
| 73 | + } |
| 74 | + |
| 75 | + @Override |
| 76 | + public String toString() { |
| 77 | + StringBuilder sb = new StringBuilder(); |
| 78 | + sb.append("class Code128Params {\n"); |
| 79 | + |
| 80 | + sb.append(" encodeMode: ").append(toIndentedString(encodeMode)).append("\n"); |
| 81 | + sb.append("}"); |
| 82 | + return sb.toString(); |
| 83 | + } |
| 84 | + |
| 85 | + /** |
| 86 | + * Convert the given object to string with each line indented by 4 spaces (except the first |
| 87 | + * line). |
| 88 | + */ |
| 89 | + private String toIndentedString(java.lang.Object o) { |
| 90 | + if (o == null) { |
| 91 | + return "null"; |
| 92 | + } |
| 93 | + return o.toString().replace("\n", "\n "); |
| 94 | + } |
| 95 | +} |
0 commit comments