|
| 1 | +/* |
| 2 | + * -------------------------------------------------------------------------------- |
| 3 | + * <copyright company="Aspose" file="TimeZoneInfoData.java"> |
| 4 | + * Copyright (c) 2021 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.model.*; |
| 37 | +import com.google.gson.TypeAdapter; |
| 38 | +import com.google.gson.annotations.JsonAdapter; |
| 39 | +import com.google.gson.annotations.SerializedName; |
| 40 | +import com.google.gson.stream.JsonReader; |
| 41 | +import com.google.gson.stream.JsonWriter; |
| 42 | +import io.swagger.annotations.ApiModel; |
| 43 | +import io.swagger.annotations.ApiModelProperty; |
| 44 | + |
| 45 | +/** |
| 46 | + * Class to specify TimeZoneInfo parameters. |
| 47 | + */ |
| 48 | +@ApiModel(description = "Class to specify TimeZoneInfo parameters.") |
| 49 | +public class TimeZoneInfoData { |
| 50 | + @SerializedName("BaseUtcOffset") |
| 51 | + private String baseUtcOffset = null; |
| 52 | + |
| 53 | + @SerializedName("DisplayName") |
| 54 | + private String displayName = null; |
| 55 | + |
| 56 | + @SerializedName("Id") |
| 57 | + private String id = null; |
| 58 | + |
| 59 | + @SerializedName("StandardDisplayName") |
| 60 | + private String standardDisplayName = null; |
| 61 | + public TimeZoneInfoData baseUtcOffset(String baseUtcOffset) { |
| 62 | + this.baseUtcOffset = baseUtcOffset; |
| 63 | + return this; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Gets or sets base utc offset in hh:mm:ss format. |
| 68 | + * @return baseUtcOffset |
| 69 | + **/ |
| 70 | + @ApiModelProperty(value = "Gets or sets base utc offset in hh:mm:ss format.") |
| 71 | + public String getBaseUtcOffset() { |
| 72 | + return baseUtcOffset; |
| 73 | + } |
| 74 | + |
| 75 | + public void setBaseUtcOffset(String baseUtcOffset) { |
| 76 | + this.baseUtcOffset = baseUtcOffset; |
| 77 | + } |
| 78 | + |
| 79 | + public TimeZoneInfoData displayName(String displayName) { |
| 80 | + this.displayName = displayName; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Gets or sets display name. |
| 86 | + * @return displayName |
| 87 | + **/ |
| 88 | + @ApiModelProperty(value = "Gets or sets display name.") |
| 89 | + public String getDisplayName() { |
| 90 | + return displayName; |
| 91 | + } |
| 92 | + |
| 93 | + public void setDisplayName(String displayName) { |
| 94 | + this.displayName = displayName; |
| 95 | + } |
| 96 | + |
| 97 | + public TimeZoneInfoData id(String id) { |
| 98 | + this.id = id; |
| 99 | + return this; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Gets or sets an Id string for CustomTimeZoneInfo. |
| 104 | + * @return id |
| 105 | + **/ |
| 106 | + @ApiModelProperty(value = "Gets or sets an Id string for CustomTimeZoneInfo.") |
| 107 | + public String getId() { |
| 108 | + return id; |
| 109 | + } |
| 110 | + |
| 111 | + public void setId(String id) { |
| 112 | + this.id = id; |
| 113 | + } |
| 114 | + |
| 115 | + public TimeZoneInfoData standardDisplayName(String standardDisplayName) { |
| 116 | + this.standardDisplayName = standardDisplayName; |
| 117 | + return this; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Gets or sets standard display name. |
| 122 | + * @return standardDisplayName |
| 123 | + **/ |
| 124 | + @ApiModelProperty(value = "Gets or sets standard display name.") |
| 125 | + public String getStandardDisplayName() { |
| 126 | + return standardDisplayName; |
| 127 | + } |
| 128 | + |
| 129 | + public void setStandardDisplayName(String standardDisplayName) { |
| 130 | + this.standardDisplayName = standardDisplayName; |
| 131 | + } |
| 132 | + |
| 133 | + @Override |
| 134 | + public boolean equals(java.lang.Object o) { |
| 135 | + if (this == o) { |
| 136 | + return true; |
| 137 | + } |
| 138 | + if (o == null || getClass() != o.getClass()) { |
| 139 | + return false; |
| 140 | + } |
| 141 | + |
| 142 | + TimeZoneInfoData timeZoneInfoData = (TimeZoneInfoData) o; |
| 143 | + return |
| 144 | + Objects.equals(this.baseUtcOffset, timeZoneInfoData.baseUtcOffset) && |
| 145 | + Objects.equals(this.displayName, timeZoneInfoData.displayName) && |
| 146 | + Objects.equals(this.id, timeZoneInfoData.id) && |
| 147 | + Objects.equals(this.standardDisplayName, timeZoneInfoData.standardDisplayName); |
| 148 | + } |
| 149 | + |
| 150 | + @Override |
| 151 | + public int hashCode() { |
| 152 | + return Objects.hash(baseUtcOffset, displayName, id, standardDisplayName); |
| 153 | + } |
| 154 | + |
| 155 | + @Override |
| 156 | + public String toString() { |
| 157 | + StringBuilder sb = new StringBuilder(); |
| 158 | + sb.append("class TimeZoneInfoData {\n"); |
| 159 | + sb.append(" baseUtcOffset: ").append(toIndentedString(baseUtcOffset)).append("\n"); |
| 160 | + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); |
| 161 | + sb.append(" id: ").append(toIndentedString(id)).append("\n"); |
| 162 | + sb.append(" standardDisplayName: ").append(toIndentedString(standardDisplayName)).append("\n"); |
| 163 | + sb.append("}"); |
| 164 | + return sb.toString(); |
| 165 | + } |
| 166 | + |
| 167 | + /** |
| 168 | + * Convert the given object to string with each line indented by 4 spaces |
| 169 | + * (except the first line). |
| 170 | + */ |
| 171 | + private String toIndentedString(java.lang.Object o) { |
| 172 | + if (o == null) { |
| 173 | + return "null"; |
| 174 | + } |
| 175 | + return o.toString().replace("\n", "\n "); |
| 176 | + } |
| 177 | +} |
0 commit comments