|
| 1 | +/* |
| 2 | + * mcdn |
| 3 | + * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
| 4 | + * |
| 5 | + * OpenAPI spec version: common-version |
| 6 | + * |
| 7 | + * |
| 8 | + * NOTE: This class is auto generated by the swagger code generator program. |
| 9 | + * https://github.com/swagger-api/swagger-codegen.git |
| 10 | + * Do not edit the class manually. |
| 11 | + */ |
| 12 | + |
| 13 | +package com.volcengine.mcdn.model; |
| 14 | + |
| 15 | +import java.util.Objects; |
| 16 | +import java.util.Arrays; |
| 17 | +import com.google.gson.TypeAdapter; |
| 18 | +import com.google.gson.annotations.JsonAdapter; |
| 19 | +import com.google.gson.annotations.SerializedName; |
| 20 | +import com.google.gson.stream.JsonReader; |
| 21 | +import com.google.gson.stream.JsonWriter; |
| 22 | +import com.volcengine.mcdn.model.WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput; |
| 23 | +import com.volcengine.mcdn.model.WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput; |
| 24 | +import io.swagger.v3.oas.annotations.media.Schema; |
| 25 | +import java.io.IOException; |
| 26 | +import java.util.ArrayList; |
| 27 | +import java.util.List; |
| 28 | +import javax.validation.constraints.*; |
| 29 | +import javax.validation.Valid; |
| 30 | +/** |
| 31 | + * ActiveWeightForDescribeDnsScheduleActiveWeightsOutput |
| 32 | + */ |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +public class ActiveWeightForDescribeDnsScheduleActiveWeightsOutput { |
| 37 | + @SerializedName("Country") |
| 38 | + private String country = null; |
| 39 | + |
| 40 | + @SerializedName("IsFailover") |
| 41 | + private Boolean isFailover = null; |
| 42 | + |
| 43 | + @SerializedName("Isp") |
| 44 | + private String isp = null; |
| 45 | + |
| 46 | + @SerializedName("Province") |
| 47 | + private String province = null; |
| 48 | + |
| 49 | + @SerializedName("RelatedStrategyId") |
| 50 | + private String relatedStrategyId = null; |
| 51 | + |
| 52 | + @SerializedName("Strategy") |
| 53 | + private String strategy = null; |
| 54 | + |
| 55 | + @SerializedName("WeightFailoverInfos") |
| 56 | + private List<WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput> weightFailoverInfos = null; |
| 57 | + |
| 58 | + @SerializedName("WeightInfoItems") |
| 59 | + private List<WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput> weightInfoItems = null; |
| 60 | + |
| 61 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput country(String country) { |
| 62 | + this.country = country; |
| 63 | + return this; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * Get country |
| 68 | + * @return country |
| 69 | + **/ |
| 70 | + @Schema(description = "") |
| 71 | + public String getCountry() { |
| 72 | + return country; |
| 73 | + } |
| 74 | + |
| 75 | + public void setCountry(String country) { |
| 76 | + this.country = country; |
| 77 | + } |
| 78 | + |
| 79 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput isFailover(Boolean isFailover) { |
| 80 | + this.isFailover = isFailover; |
| 81 | + return this; |
| 82 | + } |
| 83 | + |
| 84 | + /** |
| 85 | + * Get isFailover |
| 86 | + * @return isFailover |
| 87 | + **/ |
| 88 | + @Schema(description = "") |
| 89 | + public Boolean isIsFailover() { |
| 90 | + return isFailover; |
| 91 | + } |
| 92 | + |
| 93 | + public void setIsFailover(Boolean isFailover) { |
| 94 | + this.isFailover = isFailover; |
| 95 | + } |
| 96 | + |
| 97 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput isp(String isp) { |
| 98 | + this.isp = isp; |
| 99 | + return this; |
| 100 | + } |
| 101 | + |
| 102 | + /** |
| 103 | + * Get isp |
| 104 | + * @return isp |
| 105 | + **/ |
| 106 | + @Schema(description = "") |
| 107 | + public String getIsp() { |
| 108 | + return isp; |
| 109 | + } |
| 110 | + |
| 111 | + public void setIsp(String isp) { |
| 112 | + this.isp = isp; |
| 113 | + } |
| 114 | + |
| 115 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput province(String province) { |
| 116 | + this.province = province; |
| 117 | + return this; |
| 118 | + } |
| 119 | + |
| 120 | + /** |
| 121 | + * Get province |
| 122 | + * @return province |
| 123 | + **/ |
| 124 | + @Schema(description = "") |
| 125 | + public String getProvince() { |
| 126 | + return province; |
| 127 | + } |
| 128 | + |
| 129 | + public void setProvince(String province) { |
| 130 | + this.province = province; |
| 131 | + } |
| 132 | + |
| 133 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput relatedStrategyId(String relatedStrategyId) { |
| 134 | + this.relatedStrategyId = relatedStrategyId; |
| 135 | + return this; |
| 136 | + } |
| 137 | + |
| 138 | + /** |
| 139 | + * Get relatedStrategyId |
| 140 | + * @return relatedStrategyId |
| 141 | + **/ |
| 142 | + @Schema(description = "") |
| 143 | + public String getRelatedStrategyId() { |
| 144 | + return relatedStrategyId; |
| 145 | + } |
| 146 | + |
| 147 | + public void setRelatedStrategyId(String relatedStrategyId) { |
| 148 | + this.relatedStrategyId = relatedStrategyId; |
| 149 | + } |
| 150 | + |
| 151 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput strategy(String strategy) { |
| 152 | + this.strategy = strategy; |
| 153 | + return this; |
| 154 | + } |
| 155 | + |
| 156 | + /** |
| 157 | + * Get strategy |
| 158 | + * @return strategy |
| 159 | + **/ |
| 160 | + @Schema(description = "") |
| 161 | + public String getStrategy() { |
| 162 | + return strategy; |
| 163 | + } |
| 164 | + |
| 165 | + public void setStrategy(String strategy) { |
| 166 | + this.strategy = strategy; |
| 167 | + } |
| 168 | + |
| 169 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput weightFailoverInfos(List<WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput> weightFailoverInfos) { |
| 170 | + this.weightFailoverInfos = weightFailoverInfos; |
| 171 | + return this; |
| 172 | + } |
| 173 | + |
| 174 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput addWeightFailoverInfosItem(WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput weightFailoverInfosItem) { |
| 175 | + if (this.weightFailoverInfos == null) { |
| 176 | + this.weightFailoverInfos = new ArrayList<WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput>(); |
| 177 | + } |
| 178 | + this.weightFailoverInfos.add(weightFailoverInfosItem); |
| 179 | + return this; |
| 180 | + } |
| 181 | + |
| 182 | + /** |
| 183 | + * Get weightFailoverInfos |
| 184 | + * @return weightFailoverInfos |
| 185 | + **/ |
| 186 | + @Valid |
| 187 | + @Schema(description = "") |
| 188 | + public List<WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput> getWeightFailoverInfos() { |
| 189 | + return weightFailoverInfos; |
| 190 | + } |
| 191 | + |
| 192 | + public void setWeightFailoverInfos(List<WeightFailoverInfoForDescribeDnsScheduleActiveWeightsOutput> weightFailoverInfos) { |
| 193 | + this.weightFailoverInfos = weightFailoverInfos; |
| 194 | + } |
| 195 | + |
| 196 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput weightInfoItems(List<WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput> weightInfoItems) { |
| 197 | + this.weightInfoItems = weightInfoItems; |
| 198 | + return this; |
| 199 | + } |
| 200 | + |
| 201 | + public ActiveWeightForDescribeDnsScheduleActiveWeightsOutput addWeightInfoItemsItem(WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput weightInfoItemsItem) { |
| 202 | + if (this.weightInfoItems == null) { |
| 203 | + this.weightInfoItems = new ArrayList<WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput>(); |
| 204 | + } |
| 205 | + this.weightInfoItems.add(weightInfoItemsItem); |
| 206 | + return this; |
| 207 | + } |
| 208 | + |
| 209 | + /** |
| 210 | + * Get weightInfoItems |
| 211 | + * @return weightInfoItems |
| 212 | + **/ |
| 213 | + @Valid |
| 214 | + @Schema(description = "") |
| 215 | + public List<WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput> getWeightInfoItems() { |
| 216 | + return weightInfoItems; |
| 217 | + } |
| 218 | + |
| 219 | + public void setWeightInfoItems(List<WeightInfoItemForDescribeDnsScheduleActiveWeightsOutput> weightInfoItems) { |
| 220 | + this.weightInfoItems = weightInfoItems; |
| 221 | + } |
| 222 | + |
| 223 | + |
| 224 | + @Override |
| 225 | + public boolean equals(java.lang.Object o) { |
| 226 | + if (this == o) { |
| 227 | + return true; |
| 228 | + } |
| 229 | + if (o == null || getClass() != o.getClass()) { |
| 230 | + return false; |
| 231 | + } |
| 232 | + ActiveWeightForDescribeDnsScheduleActiveWeightsOutput activeWeightForDescribeDnsScheduleActiveWeightsOutput = (ActiveWeightForDescribeDnsScheduleActiveWeightsOutput) o; |
| 233 | + return Objects.equals(this.country, activeWeightForDescribeDnsScheduleActiveWeightsOutput.country) && |
| 234 | + Objects.equals(this.isFailover, activeWeightForDescribeDnsScheduleActiveWeightsOutput.isFailover) && |
| 235 | + Objects.equals(this.isp, activeWeightForDescribeDnsScheduleActiveWeightsOutput.isp) && |
| 236 | + Objects.equals(this.province, activeWeightForDescribeDnsScheduleActiveWeightsOutput.province) && |
| 237 | + Objects.equals(this.relatedStrategyId, activeWeightForDescribeDnsScheduleActiveWeightsOutput.relatedStrategyId) && |
| 238 | + Objects.equals(this.strategy, activeWeightForDescribeDnsScheduleActiveWeightsOutput.strategy) && |
| 239 | + Objects.equals(this.weightFailoverInfos, activeWeightForDescribeDnsScheduleActiveWeightsOutput.weightFailoverInfos) && |
| 240 | + Objects.equals(this.weightInfoItems, activeWeightForDescribeDnsScheduleActiveWeightsOutput.weightInfoItems); |
| 241 | + } |
| 242 | + |
| 243 | + @Override |
| 244 | + public int hashCode() { |
| 245 | + return Objects.hash(country, isFailover, isp, province, relatedStrategyId, strategy, weightFailoverInfos, weightInfoItems); |
| 246 | + } |
| 247 | + |
| 248 | + |
| 249 | + @Override |
| 250 | + public String toString() { |
| 251 | + StringBuilder sb = new StringBuilder(); |
| 252 | + sb.append("class ActiveWeightForDescribeDnsScheduleActiveWeightsOutput {\n"); |
| 253 | + |
| 254 | + sb.append(" country: ").append(toIndentedString(country)).append("\n"); |
| 255 | + sb.append(" isFailover: ").append(toIndentedString(isFailover)).append("\n"); |
| 256 | + sb.append(" isp: ").append(toIndentedString(isp)).append("\n"); |
| 257 | + sb.append(" province: ").append(toIndentedString(province)).append("\n"); |
| 258 | + sb.append(" relatedStrategyId: ").append(toIndentedString(relatedStrategyId)).append("\n"); |
| 259 | + sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n"); |
| 260 | + sb.append(" weightFailoverInfos: ").append(toIndentedString(weightFailoverInfos)).append("\n"); |
| 261 | + sb.append(" weightInfoItems: ").append(toIndentedString(weightInfoItems)).append("\n"); |
| 262 | + sb.append("}"); |
| 263 | + return sb.toString(); |
| 264 | + } |
| 265 | + |
| 266 | + /** |
| 267 | + * Convert the given object to string with each line indented by 4 spaces |
| 268 | + * (except the first line). |
| 269 | + */ |
| 270 | + private String toIndentedString(java.lang.Object o) { |
| 271 | + if (o == null) { |
| 272 | + return "null"; |
| 273 | + } |
| 274 | + return o.toString().replace("\n", "\n "); |
| 275 | + } |
| 276 | + |
| 277 | +} |
0 commit comments