org.openmetadata.schema.tests.DataQualityReport Maven / Gradle / Ivy
package org.openmetadata.schema.tests;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.openmetadata.schema.tests.type.DataQualityReportMetadata;
/**
* DataQualityReport
*
* Data Quality report and aggregation model.
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"metadata",
"data"
})
@Generated("jsonschema2pojo")
public class DataQualityReport {
/**
* Schema to capture data quality reports and aggregation data.
* (Required)
*
*/
@JsonProperty("metadata")
@JsonPropertyDescription("Schema to capture data quality reports and aggregation data.")
@Valid
@NotNull
private DataQualityReportMetadata metadata;
/**
* Data for the data quality report.
* (Required)
*
*/
@JsonProperty("data")
@JsonPropertyDescription("Data for the data quality report.")
@Valid
@NotNull
private List data = new ArrayList();
/**
* Schema to capture data quality reports and aggregation data.
* (Required)
*
*/
@JsonProperty("metadata")
public DataQualityReportMetadata getMetadata() {
return metadata;
}
/**
* Schema to capture data quality reports and aggregation data.
* (Required)
*
*/
@JsonProperty("metadata")
public void setMetadata(DataQualityReportMetadata metadata) {
this.metadata = metadata;
}
public DataQualityReport withMetadata(DataQualityReportMetadata metadata) {
this.metadata = metadata;
return this;
}
/**
* Data for the data quality report.
* (Required)
*
*/
@JsonProperty("data")
public List getData() {
return data;
}
/**
* Data for the data quality report.
* (Required)
*
*/
@JsonProperty("data")
public void setData(List data) {
this.data = data;
}
public DataQualityReport withData(List data) {
this.data = data;
return this;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(DataQualityReport.class.getName()).append('@').append(Integer.toHexString(System.identityHashCode(this))).append('[');
sb.append("metadata");
sb.append('=');
sb.append(((this.metadata == null)?"":this.metadata));
sb.append(',');
sb.append("data");
sb.append('=');
sb.append(((this.data == null)?"":this.data));
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.data == null)? 0 :this.data.hashCode()));
result = ((result* 31)+((this.metadata == null)? 0 :this.metadata.hashCode()));
return result;
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof DataQualityReport) == false) {
return false;
}
DataQualityReport rhs = ((DataQualityReport) other);
return (((this.data == rhs.data)||((this.data!= null)&&this.data.equals(rhs.data)))&&((this.metadata == rhs.metadata)||((this.metadata!= null)&&this.metadata.equals(rhs.metadata))));
}
}