|
| 1 | +/* |
| 2 | + * -------------------------------------------------------------------------------- |
| 3 | + * <copyright company="Aspose" file="Azw3SaveOptionsData.java"> |
| 4 | + * Copyright (c) 2024 Aspose.Words for Cloud |
| 5 | + * </copyright> |
| 6 | + * <summary> |
| 7 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 8 | + * of this software and associated documentation files (the "Software"), to deal |
| 9 | + * in the Software without restriction, including without limitation the rights |
| 10 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 11 | + * copies of the Software, and to permit persons to whom the Software is |
| 12 | + * furnished to do so, subject to the following conditions: |
| 13 | + * |
| 14 | + * The above copyright notice and this permission notice shall be included in all |
| 15 | + * copies or substantial portions of the Software. |
| 16 | + * |
| 17 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 18 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 19 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 20 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 21 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 22 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 23 | + * SOFTWARE. |
| 24 | + * </summary> |
| 25 | + * -------------------------------------------------------------------------------- |
| 26 | + */ |
| 27 | + |
| 28 | +package com.aspose.words.cloud.model; |
| 29 | + |
| 30 | +import java.util.Objects; |
| 31 | +import java.util.Arrays; |
| 32 | +import java.util.ArrayList; |
| 33 | +import java.util.List; |
| 34 | +import java.io.IOException; |
| 35 | +import org.threeten.bp.OffsetDateTime; |
| 36 | +import com.aspose.words.cloud.ApiException; |
| 37 | +import com.aspose.words.cloud.model.*; |
| 38 | +import com.google.gson.TypeAdapter; |
| 39 | +import com.google.gson.annotations.JsonAdapter; |
| 40 | +import com.google.gson.annotations.SerializedName; |
| 41 | +import com.google.gson.stream.JsonReader; |
| 42 | +import com.google.gson.stream.JsonWriter; |
| 43 | +import io.swagger.annotations.ApiModel; |
| 44 | +import io.swagger.annotations.ApiModelProperty; |
| 45 | + |
| 46 | +/** |
| 47 | + * Container class for azw3 save options. |
| 48 | + */ |
| 49 | +@ApiModel(description = "Container class for azw3 save options.") |
| 50 | +public class Azw3SaveOptionsData extends HtmlSaveOptionsData { |
| 51 | + @SerializedName("NavigationMapLevel") |
| 52 | + protected Integer navigationMapLevel; |
| 53 | + /** |
| 54 | + * Gets or sets the maximum level of headings populated to the navigation map when exporting. |
| 55 | + * @return navigationMapLevel |
| 56 | + **/ |
| 57 | + @ApiModelProperty(value = "Gets or sets the maximum level of headings populated to the navigation map when exporting.") |
| 58 | + public Integer getNavigationMapLevel() { |
| 59 | + return navigationMapLevel; |
| 60 | + } |
| 61 | + |
| 62 | + public Azw3SaveOptionsData navigationMapLevel(Integer navigationMapLevel) { |
| 63 | + this.navigationMapLevel = navigationMapLevel; |
| 64 | + return this; |
| 65 | + } |
| 66 | + |
| 67 | + public void setNavigationMapLevel(Integer navigationMapLevel) { |
| 68 | + this.navigationMapLevel = navigationMapLevel; |
| 69 | + } |
| 70 | + |
| 71 | + |
| 72 | + public Azw3SaveOptionsData() { |
| 73 | + super(); |
| 74 | + this.navigationMapLevel = null; |
| 75 | + this.saveFormat = "azw3"; |
| 76 | + } |
| 77 | + |
| 78 | + /* |
| 79 | + * Gets files content. |
| 80 | + * |
| 81 | + * @param resultFilesContent List<FileReference> instance. |
| 82 | + */ |
| 83 | + @Override |
| 84 | + public void getFilesContent(List<FileReference> resultFilesContent) { |
| 85 | + } |
| 86 | + |
| 87 | + /* |
| 88 | + * Validate required properties. |
| 89 | + * |
| 90 | + * @throws ApiException If fails to validate required properties. |
| 91 | + */ |
| 92 | + @Override |
| 93 | + public void validate() throws ApiException { |
| 94 | + super.validate(); |
| 95 | + } |
| 96 | + |
| 97 | + @Override |
| 98 | + public boolean equals(java.lang.Object o) { |
| 99 | + if (this == o) { |
| 100 | + return true; |
| 101 | + } |
| 102 | + if (o == null || getClass() != o.getClass()) { |
| 103 | + return false; |
| 104 | + } |
| 105 | + |
| 106 | + Azw3SaveOptionsData azw3SaveOptionsData = (Azw3SaveOptionsData) o; |
| 107 | + return |
| 108 | + Objects.equals(this.navigationMapLevel, azw3SaveOptionsData.navigationMapLevel) && |
| 109 | + super.equals(o); |
| 110 | + } |
| 111 | + |
| 112 | + @Override |
| 113 | + public int hashCode() { |
| 114 | + return Objects.hash(navigationMapLevel, super.hashCode()); |
| 115 | + } |
| 116 | + |
| 117 | + @Override |
| 118 | + public String toString() { |
| 119 | + StringBuilder sb = new StringBuilder(); |
| 120 | + sb.append("class Azw3SaveOptionsData {\n"); |
| 121 | + sb.append(" allowEmbeddingPostScriptFonts: ").append(toIndentedString(getAllowEmbeddingPostScriptFonts())).append("\n"); |
| 122 | + sb.append(" customTimeZoneInfoData: ").append(toIndentedString(getCustomTimeZoneInfoData())).append("\n"); |
| 123 | + sb.append(" dml3DEffectsRenderingMode: ").append(toIndentedString(getDml3DEffectsRenderingMode())).append("\n"); |
| 124 | + sb.append(" dmlEffectsRenderingMode: ").append(toIndentedString(getDmlEffectsRenderingMode())).append("\n"); |
| 125 | + sb.append(" dmlRenderingMode: ").append(toIndentedString(getDmlRenderingMode())).append("\n"); |
| 126 | + sb.append(" fileName: ").append(toIndentedString(getFileName())).append("\n"); |
| 127 | + sb.append(" imlRenderingMode: ").append(toIndentedString(getImlRenderingMode())).append("\n"); |
| 128 | + sb.append(" updateCreatedTimeProperty: ").append(toIndentedString(getUpdateCreatedTimeProperty())).append("\n"); |
| 129 | + sb.append(" updateFields: ").append(toIndentedString(getUpdateFields())).append("\n"); |
| 130 | + sb.append(" updateLastPrintedProperty: ").append(toIndentedString(getUpdateLastPrintedProperty())).append("\n"); |
| 131 | + sb.append(" updateLastSavedTimeProperty: ").append(toIndentedString(getUpdateLastSavedTimeProperty())).append("\n"); |
| 132 | + sb.append(" zipOutput: ").append(toIndentedString(getZipOutput())).append("\n"); |
| 133 | + sb.append(" allowNegativeIndent: ").append(toIndentedString(getAllowNegativeIndent())).append("\n"); |
| 134 | + sb.append(" cssClassNamePrefix: ").append(toIndentedString(getCssClassNamePrefix())).append("\n"); |
| 135 | + sb.append(" cssStyleSheetFileName: ").append(toIndentedString(getCssStyleSheetFileName())).append("\n"); |
| 136 | + sb.append(" cssStyleSheetType: ").append(toIndentedString(getCssStyleSheetType())).append("\n"); |
| 137 | + sb.append(" documentSplitCriteria: ").append(toIndentedString(getDocumentSplitCriteria())).append("\n"); |
| 138 | + sb.append(" documentSplitHeadingLevel: ").append(toIndentedString(getDocumentSplitHeadingLevel())).append("\n"); |
| 139 | + sb.append(" encoding: ").append(toIndentedString(getEncoding())).append("\n"); |
| 140 | + sb.append(" exportDocumentProperties: ").append(toIndentedString(getExportDocumentProperties())).append("\n"); |
| 141 | + sb.append(" exportDropDownFormFieldAsText: ").append(toIndentedString(getExportDropDownFormFieldAsText())).append("\n"); |
| 142 | + sb.append(" exportFontResources: ").append(toIndentedString(getExportFontResources())).append("\n"); |
| 143 | + sb.append(" exportFontsAsBase64: ").append(toIndentedString(getExportFontsAsBase64())).append("\n"); |
| 144 | + sb.append(" exportHeadersFootersMode: ").append(toIndentedString(getExportHeadersFootersMode())).append("\n"); |
| 145 | + sb.append(" exportImagesAsBase64: ").append(toIndentedString(getExportImagesAsBase64())).append("\n"); |
| 146 | + sb.append(" exportLanguageInformation: ").append(toIndentedString(getExportLanguageInformation())).append("\n"); |
| 147 | + sb.append(" exportListLabels: ").append(toIndentedString(getExportListLabels())).append("\n"); |
| 148 | + sb.append(" exportOriginalUrlForLinkedImages: ").append(toIndentedString(getExportOriginalUrlForLinkedImages())).append("\n"); |
| 149 | + sb.append(" exportPageMargins: ").append(toIndentedString(getExportPageMargins())).append("\n"); |
| 150 | + sb.append(" exportPageSetup: ").append(toIndentedString(getExportPageSetup())).append("\n"); |
| 151 | + sb.append(" exportRelativeFontSize: ").append(toIndentedString(getExportRelativeFontSize())).append("\n"); |
| 152 | + sb.append(" exportRoundtripInformation: ").append(toIndentedString(getExportRoundtripInformation())).append("\n"); |
| 153 | + sb.append(" exportTextInputFormFieldAsText: ").append(toIndentedString(getExportTextInputFormFieldAsText())).append("\n"); |
| 154 | + sb.append(" exportTocPageNumbers: ").append(toIndentedString(getExportTocPageNumbers())).append("\n"); |
| 155 | + sb.append(" exportXhtmlTransitional: ").append(toIndentedString(getExportXhtmlTransitional())).append("\n"); |
| 156 | + sb.append(" fontResourcesSubsettingSizeThreshold: ").append(toIndentedString(getFontResourcesSubsettingSizeThreshold())).append("\n"); |
| 157 | + sb.append(" fontsFolder: ").append(toIndentedString(getFontsFolder())).append("\n"); |
| 158 | + sb.append(" fontsFolderAlias: ").append(toIndentedString(getFontsFolderAlias())).append("\n"); |
| 159 | + sb.append(" htmlVersion: ").append(toIndentedString(getHtmlVersion())).append("\n"); |
| 160 | + sb.append(" imageResolution: ").append(toIndentedString(getImageResolution())).append("\n"); |
| 161 | + sb.append(" imagesFolder: ").append(toIndentedString(getImagesFolder())).append("\n"); |
| 162 | + sb.append(" imagesFolderAlias: ").append(toIndentedString(getImagesFolderAlias())).append("\n"); |
| 163 | + sb.append(" metafileFormat: ").append(toIndentedString(getMetafileFormat())).append("\n"); |
| 164 | + sb.append(" officeMathOutputMode: ").append(toIndentedString(getOfficeMathOutputMode())).append("\n"); |
| 165 | + sb.append(" prettyFormat: ").append(toIndentedString(getPrettyFormat())).append("\n"); |
| 166 | + sb.append(" resolveFontNames: ").append(toIndentedString(getResolveFontNames())).append("\n"); |
| 167 | + sb.append(" resourceFolder: ").append(toIndentedString(getResourceFolder())).append("\n"); |
| 168 | + sb.append(" resourceFolderAlias: ").append(toIndentedString(getResourceFolderAlias())).append("\n"); |
| 169 | + sb.append(" scaleImageToShapeSize: ").append(toIndentedString(getScaleImageToShapeSize())).append("\n"); |
| 170 | + sb.append(" tableWidthOutputMode: ").append(toIndentedString(getTableWidthOutputMode())).append("\n"); |
| 171 | + sb.append(" navigationMapLevel: ").append(toIndentedString(getNavigationMapLevel())).append("\n"); |
| 172 | + sb.append(" saveFormat: ").append(toIndentedString(getSaveFormat())).append("\n"); |
| 173 | + sb.append("}"); |
| 174 | + return sb.toString(); |
| 175 | + } |
| 176 | + |
| 177 | + /** |
| 178 | + * Convert the given object to string with each line indented by 4 spaces |
| 179 | + * (except the first line). |
| 180 | + */ |
| 181 | + private String toIndentedString(java.lang.Object o) { |
| 182 | + if (o == null) { |
| 183 | + return "null"; |
| 184 | + } |
| 185 | + return o.toString().replace("\n", "\n "); |
| 186 | + } |
| 187 | +} |
0 commit comments