|
| 1 | +/* |
| 2 | + * -------------------------------------------------------------------------------- |
| 3 | + * <copyright company="Aspose" file="AggregateResultByColor.java"> |
| 4 | + * Copyright (c) 2025 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 AggregateResultByColor { |
| 40 | + @SerializedName("AggregateOperation") |
| 41 | + private String aggregateOperation ; |
| 42 | + |
| 43 | + public AggregateResultByColor aggregateOperation(String aggregateOperation) { |
| 44 | + this.aggregateOperation = aggregateOperation; |
| 45 | + return this; |
| 46 | + } |
| 47 | + |
| 48 | + @ApiModelProperty(value = "") |
| 49 | + public String getAggregateOperation() { |
| 50 | + return aggregateOperation; |
| 51 | + } |
| 52 | + |
| 53 | + public void setAggregateOperation(String aggregateOperation) { |
| 54 | + this.aggregateOperation = aggregateOperation; |
| 55 | + } |
| 56 | + |
| 57 | + @SerializedName("ColorName") |
| 58 | + private String colorName ; |
| 59 | + |
| 60 | + public AggregateResultByColor colorName(String colorName) { |
| 61 | + this.colorName = colorName; |
| 62 | + return this; |
| 63 | + } |
| 64 | + |
| 65 | + @ApiModelProperty(value = "") |
| 66 | + public String getColorName() { |
| 67 | + return colorName; |
| 68 | + } |
| 69 | + |
| 70 | + public void setColorName(String colorName) { |
| 71 | + this.colorName = colorName; |
| 72 | + } |
| 73 | + |
| 74 | + @SerializedName("Count") |
| 75 | + private Integer count ; |
| 76 | + |
| 77 | + public AggregateResultByColor count(Integer count) { |
| 78 | + this.count = count; |
| 79 | + return this; |
| 80 | + } |
| 81 | + |
| 82 | + @ApiModelProperty(value = "") |
| 83 | + public Integer getCount() { |
| 84 | + return count; |
| 85 | + } |
| 86 | + |
| 87 | + public void setCount(Integer count) { |
| 88 | + this.count = count; |
| 89 | + } |
| 90 | + |
| 91 | + @SerializedName("Sum") |
| 92 | + private Double sum ; |
| 93 | + |
| 94 | + public AggregateResultByColor sum(Double sum) { |
| 95 | + this.sum = sum; |
| 96 | + return this; |
| 97 | + } |
| 98 | + |
| 99 | + @ApiModelProperty(value = "") |
| 100 | + public Double getSum() { |
| 101 | + return sum; |
| 102 | + } |
| 103 | + |
| 104 | + public void setSum(Double sum) { |
| 105 | + this.sum = sum; |
| 106 | + } |
| 107 | + |
| 108 | + @SerializedName("MaxValue") |
| 109 | + private Double maxValue ; |
| 110 | + |
| 111 | + public AggregateResultByColor maxValue(Double maxValue) { |
| 112 | + this.maxValue = maxValue; |
| 113 | + return this; |
| 114 | + } |
| 115 | + |
| 116 | + @ApiModelProperty(value = "") |
| 117 | + public Double getMaxValue() { |
| 118 | + return maxValue; |
| 119 | + } |
| 120 | + |
| 121 | + public void setMaxValue(Double maxValue) { |
| 122 | + this.maxValue = maxValue; |
| 123 | + } |
| 124 | + |
| 125 | + @SerializedName("MinValue") |
| 126 | + private Double minValue ; |
| 127 | + |
| 128 | + public AggregateResultByColor minValue(Double minValue) { |
| 129 | + this.minValue = minValue; |
| 130 | + return this; |
| 131 | + } |
| 132 | + |
| 133 | + @ApiModelProperty(value = "") |
| 134 | + public Double getMinValue() { |
| 135 | + return minValue; |
| 136 | + } |
| 137 | + |
| 138 | + public void setMinValue(Double minValue) { |
| 139 | + this.minValue = minValue; |
| 140 | + } |
| 141 | + |
| 142 | + @SerializedName("AverageValue") |
| 143 | + private Double averageValue ; |
| 144 | + |
| 145 | + public AggregateResultByColor averageValue(Double averageValue) { |
| 146 | + this.averageValue = averageValue; |
| 147 | + return this; |
| 148 | + } |
| 149 | + |
| 150 | + @ApiModelProperty(value = "") |
| 151 | + public Double getAverageValue() { |
| 152 | + return averageValue; |
| 153 | + } |
| 154 | + |
| 155 | + public void setAverageValue(Double averageValue) { |
| 156 | + this.averageValue = averageValue; |
| 157 | + } |
| 158 | + |
| 159 | + @SerializedName("Value") |
| 160 | + private Double value ; |
| 161 | + |
| 162 | + public AggregateResultByColor value(Double value) { |
| 163 | + this.value = value; |
| 164 | + return this; |
| 165 | + } |
| 166 | + |
| 167 | + @ApiModelProperty(value = "") |
| 168 | + public Double getValue() { |
| 169 | + return value; |
| 170 | + } |
| 171 | + |
| 172 | + public void setValue(Double value) { |
| 173 | + this.value = value; |
| 174 | + } |
| 175 | + |
| 176 | + @Override |
| 177 | + public boolean equals(java.lang.Object o) { |
| 178 | + if (this == o) { |
| 179 | + return true; |
| 180 | + } |
| 181 | + if (o == null || getClass() != o.getClass()) { |
| 182 | + return false; |
| 183 | + } |
| 184 | + |
| 185 | + AggregateResultByColor aggregateResultByColor = (AggregateResultByColor) o; |
| 186 | + return |
| 187 | + Objects.equals(this.aggregateOperation, aggregateResultByColor.aggregateOperation) && |
| 188 | + Objects.equals(this.colorName, aggregateResultByColor.colorName) && |
| 189 | + Objects.equals(this.count, aggregateResultByColor.count) && |
| 190 | + Objects.equals(this.sum, aggregateResultByColor.sum) && |
| 191 | + Objects.equals(this.maxValue, aggregateResultByColor.maxValue) && |
| 192 | + Objects.equals(this.minValue, aggregateResultByColor.minValue) && |
| 193 | + Objects.equals(this.averageValue, aggregateResultByColor.averageValue) && |
| 194 | + Objects.equals(this.value, aggregateResultByColor.value); |
| 195 | + } |
| 196 | + |
| 197 | + @Override |
| 198 | + public int hashCode() { |
| 199 | + return Objects.hash(aggregateOperation, colorName, count, sum, maxValue, minValue, averageValue, value); |
| 200 | + } |
| 201 | + @Override |
| 202 | + public String toString() { |
| 203 | + StringBuilder sb = new StringBuilder(); |
| 204 | + sb.append("class AggregateResultByColor {\n"); |
| 205 | + sb.append(" aggregateOperation: ").append(toIndentedString(getAggregateOperation())).append("\n"); |
| 206 | + sb.append(" colorName: ").append(toIndentedString(getColorName())).append("\n"); |
| 207 | + sb.append(" count: ").append(toIndentedString(getCount())).append("\n"); |
| 208 | + sb.append(" sum: ").append(toIndentedString(getSum())).append("\n"); |
| 209 | + sb.append(" maxValue: ").append(toIndentedString(getMaxValue())).append("\n"); |
| 210 | + sb.append(" minValue: ").append(toIndentedString(getMinValue())).append("\n"); |
| 211 | + sb.append(" averageValue: ").append(toIndentedString(getAverageValue())).append("\n"); |
| 212 | + sb.append(" value: ").append(toIndentedString(getValue())).append("\n"); |
| 213 | + sb.append("}"); |
| 214 | + return sb.toString(); |
| 215 | + } |
| 216 | + |
| 217 | + /** |
| 218 | + * Convert the given object to string with each line indented by 4 spaces |
| 219 | + * (except the first line). |
| 220 | + */ |
| 221 | + private String toIndentedString(java.lang.Object o) { |
| 222 | + if (o == null) { |
| 223 | + return "null"; |
| 224 | + } |
| 225 | + return o.toString().replace("\n", "\n "); |
| 226 | + } |
| 227 | + |
| 228 | + |
| 229 | +} |
| 230 | + |
0 commit comments