org.openmetadata.schema.dataInsight.custom.DataInsightCustomChartResult Maven / Gradle / Ivy
package org.openmetadata.schema.dataInsight.custom;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DataInsightCustomChartResult
*
* Data Insight Custom Chart Result
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"count",
"day",
"group"
})
@Generated("jsonschema2pojo")
public class DataInsightCustomChartResult {
/**
* Count of Result
*
*/
@JsonProperty("count")
@JsonPropertyDescription("Count of Result")
private Double count;
/**
* Date of Result
*
*/
@JsonProperty("day")
@JsonPropertyDescription("Date of Result")
private Double day;
/**
* Group of Result
*
*/
@JsonProperty("group")
@JsonPropertyDescription("Group of Result")
private String group;
/**
* Count of Result
*
*/
@JsonProperty("count")
public Double getCount() {
return count;
}
/**
* Count of Result
*
*/
@JsonProperty("count")
public void setCount(Double count) {
this.count = count;
}
public DataInsightCustomChartResult withCount(Double count) {
this.count = count;
return this;
}
/**
* Date of Result
*
*/
@JsonProperty("day")
public Double getDay() {
return day;
}
/**
* Date of Result
*
*/
@JsonProperty("day")
public void setDay(Double day) {
this.day = day;
}
public DataInsightCustomChartResult withDay(Double day) {
this.day = day;
return this;
}
/**
* Group of Result
*
*/
@JsonProperty("group")
public String getGroup() {
return group;
}
/**
* Group of Result
*
*/
@JsonProperty("group")
public void setGroup(String group) {
this.group = group;
}
public DataInsightCustomChartResult withGroup(String group) {
this.group = group;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(DataInsightCustomChartResult.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("count");
sb.append('=');
sb.append(((this.count == null)?"":this.count));
sb.append(',');
sb.append("day");
sb.append('=');
sb.append(((this.day == null)?"":this.day));
sb.append(',');
sb.append("group");
sb.append('=');
sb.append(((this.group == null)?"":this.group));
sb.append(',');
if (sb.charAt((sb.length()- 1)) == ',') {
sb.setCharAt((sb.length()- 1), ']');
} else {
sb.append(']');
}
return sb.toString();
}
@Override
public int hashCode() {
int result = 1;
result = ((result* 31)+((this.count == null)? 0 :this.count.hashCode()));
result = ((result* 31)+((this.day == null)? 0 :this.day.hashCode()));
result = ((result* 31)+((this.group == null)? 0 :this.group.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DataInsightCustomChartResult) == false) {
return false;
}
DataInsightCustomChartResult rhs = ((DataInsightCustomChartResult) other);
return ((((this.count == rhs.count)||((this.count!= null)&&this.count.equals(rhs.count)))&&((this.day == rhs.day)||((this.day!= null)&&this.day.equals(rhs.day))))&&((this.group == rhs.group)||((this.group!= null)&&this.group.equals(rhs.group))));
}
}