|
| 1 | +/* |
| 2 | + * -------------------------------------------------------------------------------- |
| 3 | + * <copyright company="Aspose" file="ScopeItem.java"> |
| 4 | + * Copyright (c) 2024 Aspose.Cells 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.cloud.cells.model; |
| 29 | + |
| 30 | +import java.util.Objects; |
| 31 | +import io.swagger.annotations.ApiModelProperty; |
| 32 | +import com.aspose.cloud.cells.model.*; |
| 33 | +import java.util.ArrayList; |
| 34 | +import java.util.List; |
| 35 | +import com.google.gson.annotations.SerializedName; |
| 36 | +import java.time.OffsetDateTime; |
| 37 | + |
| 38 | + |
| 39 | +public class ScopeItem { |
| 40 | + @SerializedName("WorksheetName") |
| 41 | + private String worksheetName ; |
| 42 | + |
| 43 | + public ScopeItem worksheetName(String worksheetName) { |
| 44 | + this.worksheetName = worksheetName; |
| 45 | + return this; |
| 46 | + } |
| 47 | + |
| 48 | + @ApiModelProperty(value = "") |
| 49 | + public String getWorksheetName() { |
| 50 | + return worksheetName; |
| 51 | + } |
| 52 | + |
| 53 | + public void setWorksheetName(String worksheetName) { |
| 54 | + this.worksheetName = worksheetName; |
| 55 | + } |
| 56 | + |
| 57 | + @SerializedName("Ranges") |
| 58 | + private List<String> ranges ; |
| 59 | + |
| 60 | + public ScopeItem ranges(List<String> ranges) { |
| 61 | + this.ranges = ranges; |
| 62 | + return this; |
| 63 | + } |
| 64 | + |
| 65 | + @ApiModelProperty(value = "") |
| 66 | + public List<String> getRanges() { |
| 67 | + return ranges; |
| 68 | + } |
| 69 | + |
| 70 | + public void setRanges(List<String> ranges) { |
| 71 | + this.ranges = ranges; |
| 72 | + } |
| 73 | + |
| 74 | + @Override |
| 75 | + public boolean equals(java.lang.Object o) { |
| 76 | + if (this == o) { |
| 77 | + return true; |
| 78 | + } |
| 79 | + if (o == null || getClass() != o.getClass()) { |
| 80 | + return false; |
| 81 | + } |
| 82 | + |
| 83 | + ScopeItem scopeItem = (ScopeItem) o; |
| 84 | + return |
| 85 | + Objects.equals(this.worksheetName, scopeItem.worksheetName) && |
| 86 | + Objects.equals(this.ranges, scopeItem.ranges); |
| 87 | + } |
| 88 | + |
| 89 | + @Override |
| 90 | + public int hashCode() { |
| 91 | + return Objects.hash(worksheetName, ranges); |
| 92 | + } |
| 93 | + @Override |
| 94 | + public String toString() { |
| 95 | + StringBuilder sb = new StringBuilder(); |
| 96 | + sb.append("class ScopeItem {\n"); |
| 97 | + sb.append(" worksheetName: ").append(toIndentedString(getWorksheetName())).append("\n"); |
| 98 | + sb.append(" ranges: ").append(toIndentedString(getRanges())).append("\n"); |
| 99 | + sb.append("}"); |
| 100 | + return sb.toString(); |
| 101 | + } |
| 102 | + |
| 103 | + /** |
| 104 | + * Convert the given object to string with each line indented by 4 spaces |
| 105 | + * (except the first line). |
| 106 | + */ |
| 107 | + private String toIndentedString(java.lang.Object o) { |
| 108 | + if (o == null) { |
| 109 | + return "null"; |
| 110 | + } |
| 111 | + return o.toString().replace("\n", "\n "); |
| 112 | + } |
| 113 | + |
| 114 | + |
| 115 | +} |
| 116 | + |
0 commit comments