org.openmetadata.schema.dataInsight.custom.LineChartMetric Maven / Gradle / Ivy
package org.openmetadata.schema.dataInsight.custom;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"name",
"function",
"field",
"filter",
"treeFilter",
"formula"
})
@Generated("jsonschema2pojo")
public class LineChartMetric {
/**
* Name of the metric for the data insight chart.
*
*/
@JsonProperty("name")
@JsonPropertyDescription("Name of the metric for the data insight chart.")
private String name;
/**
* aggregation function for chart
*
*/
@JsonProperty("function")
@JsonPropertyDescription("aggregation function for chart")
private Function function;
/**
* Filter field for the data insight chart.
*
*/
@JsonProperty("field")
@JsonPropertyDescription("Filter field for the data insight chart.")
private String field;
/**
* Filter value for the data insight chart.
*
*/
@JsonProperty("filter")
@JsonPropertyDescription("Filter value for the data insight chart.")
private String filter;
/**
* Tree filter value for the data insight chart. Needed for UI to recreate advance filter tree.
*
*/
@JsonProperty("treeFilter")
@JsonPropertyDescription("Tree filter value for the data insight chart. Needed for UI to recreate advance filter tree.")
private String treeFilter;
/**
* Formula for the data insight chart calculation.
*
*/
@JsonProperty("formula")
@JsonPropertyDescription("Formula for the data insight chart calculation.")
private String formula;
@JsonIgnore
@Valid
private Map additionalProperties = new LinkedHashMap();
/**
* Name of the metric for the data insight chart.
*
*/
@JsonProperty("name")
public String getName() {
return name;
}
/**
* Name of the metric for the data insight chart.
*
*/
@JsonProperty("name")
public void setName(String name) {
this.name = name;
}
public LineChartMetric withName(String name) {
this.name = name;
return this;
}
/**
* aggregation function for chart
*
*/
@JsonProperty("function")
public Function getFunction() {
return function;
}
/**
* aggregation function for chart
*
*/
@JsonProperty("function")
public void setFunction(Function function) {
this.function = function;
}
public LineChartMetric withFunction(Function function) {
this.function = function;
return this;
}
/**
* Filter field for the data insight chart.
*
*/
@JsonProperty("field")
public String getField() {
return field;
}
/**
* Filter field for the data insight chart.
*
*/
@JsonProperty("field")
public void setField(String field) {
this.field = field;
}
public LineChartMetric withField(String field) {
this.field = field;
return this;
}
/**
* Filter value for the data insight chart.
*
*/
@JsonProperty("filter")
public String getFilter() {
return filter;
}
/**
* Filter value for the data insight chart.
*
*/
@JsonProperty("filter")
public void setFilter(String filter) {
this.filter = filter;
}
public LineChartMetric withFilter(String filter) {
this.filter = filter;
return this;
}
/**
* Tree filter value for the data insight chart. Needed for UI to recreate advance filter tree.
*
*/
@JsonProperty("treeFilter")
public String getTreeFilter() {
return treeFilter;
}
/**
* Tree filter value for the data insight chart. Needed for UI to recreate advance filter tree.
*
*/
@JsonProperty("treeFilter")
public void setTreeFilter(String treeFilter) {
this.treeFilter = treeFilter;
}
public LineChartMetric withTreeFilter(String treeFilter) {
this.treeFilter = treeFilter;
return this;
}
/**
* Formula for the data insight chart calculation.
*
*/
@JsonProperty("formula")
public String getFormula() {
return formula;
}
/**
* Formula for the data insight chart calculation.
*
*/
@JsonProperty("formula")
public void setFormula(String formula) {
this.formula = formula;
}
public LineChartMetric withFormula(String formula) {
this.formula = formula;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public LineChartMetric withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(LineChartMetric.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("name");
sb.append('=');
sb.append(((this.name == null)?"":this.name));
sb.append(',');
sb.append("function");
sb.append('=');
sb.append(((this.function == null)?"":this.function));
sb.append(',');
sb.append("field");
sb.append('=');
sb.append(((this.field == null)?"":this.field));
sb.append(',');
sb.append("filter");
sb.append('=');
sb.append(((this.filter == null)?"":this.filter));
sb.append(',');
sb.append("treeFilter");
sb.append('=');
sb.append(((this.treeFilter == null)?"":this.treeFilter));
sb.append(',');
sb.append("formula");
sb.append('=');
sb.append(((this.formula == null)?"":this.formula));
sb.append(',');
sb.append("additionalProperties");
sb.append('=');
sb.append(((this.additionalProperties == null)?"":this.additionalProperties));
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.filter == null)? 0 :this.filter.hashCode()));
result = ((result* 31)+((this.field == null)? 0 :this.field.hashCode()));
result = ((result* 31)+((this.function == null)? 0 :this.function.hashCode()));
result = ((result* 31)+((this.name == null)? 0 :this.name.hashCode()));
result = ((result* 31)+((this.formula == null)? 0 :this.formula.hashCode()));
result = ((result* 31)+((this.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.treeFilter == null)? 0 :this.treeFilter.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof LineChartMetric) == false) {
return false;
}
LineChartMetric rhs = ((LineChartMetric) other);
return ((((((((this.filter == rhs.filter)||((this.filter!= null)&&this.filter.equals(rhs.filter)))&&((this.field == rhs.field)||((this.field!= null)&&this.field.equals(rhs.field))))&&((this.function == rhs.function)||((this.function!= null)&&this.function.equals(rhs.function))))&&((this.name == rhs.name)||((this.name!= null)&&this.name.equals(rhs.name))))&&((this.formula == rhs.formula)||((this.formula!= null)&&this.formula.equals(rhs.formula))))&&((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties))))&&((this.treeFilter == rhs.treeFilter)||((this.treeFilter!= null)&&this.treeFilter.equals(rhs.treeFilter))));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy