org.openmetadata.schema.dataInsight.custom.KPIDetails 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;
/**
* KPI details for the data insight chart.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"startDate",
"endDate",
"target"
})
@Generated("jsonschema2pojo")
public class KPIDetails {
/**
* Start Date of KPI
*
*/
@JsonProperty("startDate")
@JsonPropertyDescription("Start Date of KPI")
private String startDate;
/**
* End Date of KPI
*
*/
@JsonProperty("endDate")
@JsonPropertyDescription("End Date of KPI")
private String endDate;
/**
* Target value of KPI
*
*/
@JsonProperty("target")
@JsonPropertyDescription("Target value of KPI")
private Double target;
@JsonIgnore
@Valid
private Map additionalProperties = new LinkedHashMap();
/**
* Start Date of KPI
*
*/
@JsonProperty("startDate")
public String getStartDate() {
return startDate;
}
/**
* Start Date of KPI
*
*/
@JsonProperty("startDate")
public void setStartDate(String startDate) {
this.startDate = startDate;
}
public KPIDetails withStartDate(String startDate) {
this.startDate = startDate;
return this;
}
/**
* End Date of KPI
*
*/
@JsonProperty("endDate")
public String getEndDate() {
return endDate;
}
/**
* End Date of KPI
*
*/
@JsonProperty("endDate")
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public KPIDetails withEndDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* Target value of KPI
*
*/
@JsonProperty("target")
public Double getTarget() {
return target;
}
/**
* Target value of KPI
*
*/
@JsonProperty("target")
public void setTarget(Double target) {
this.target = target;
}
public KPIDetails withTarget(Double target) {
this.target = target;
return this;
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
public KPIDetails withAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(KPIDetails.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("startDate");
sb.append('=');
sb.append(((this.startDate == null)?"":this.startDate));
sb.append(',');
sb.append("endDate");
sb.append('=');
sb.append(((this.endDate == null)?"":this.endDate));
sb.append(',');
sb.append("target");
sb.append('=');
sb.append(((this.target == null)?"":this.target));
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.additionalProperties == null)? 0 :this.additionalProperties.hashCode()));
result = ((result* 31)+((this.endDate == null)? 0 :this.endDate.hashCode()));
result = ((result* 31)+((this.startDate == null)? 0 :this.startDate.hashCode()));
result = ((result* 31)+((this.target == null)? 0 :this.target.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof KPIDetails) == false) {
return false;
}
KPIDetails rhs = ((KPIDetails) other);
return (((((this.additionalProperties == rhs.additionalProperties)||((this.additionalProperties!= null)&&this.additionalProperties.equals(rhs.additionalProperties)))&&((this.endDate == rhs.endDate)||((this.endDate!= null)&&this.endDate.equals(rhs.endDate))))&&((this.startDate == rhs.startDate)||((this.startDate!= null)&&this.startDate.equals(rhs.startDate))))&&((this.target == rhs.target)||((this.target!= null)&&this.target.equals(rhs.target))));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy