org.opendatadiscovery.client.model.DataQualityTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingestion-contract-client Show documentation
Show all versions of ingestion-contract-client Show documentation
Ingestion Contract WebFlux Client defines OpenDataDiscovery APIs and models for Spring WebClient
/*
* OpenDataDiscovery API Contract
* OpenDataDiscovery API Contract
*
* The version of the OpenAPI document: 0.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.opendatadiscovery.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.ArrayList;
import java.util.List;
import org.opendatadiscovery.client.model.DataQualityTestExpectation;
import org.opendatadiscovery.client.model.LinkedUrl;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataQualityTest
*/
@JsonPropertyOrder({
DataQualityTest.JSON_PROPERTY_SUITE_NAME,
DataQualityTest.JSON_PROPERTY_DATASET_LIST,
DataQualityTest.JSON_PROPERTY_EXPECTATION,
DataQualityTest.JSON_PROPERTY_SUITE_URL,
DataQualityTest.JSON_PROPERTY_LINKED_URL_LIST
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataQualityTest {
public static final String JSON_PROPERTY_SUITE_NAME = "suite_name";
private String suiteName;
public static final String JSON_PROPERTY_DATASET_LIST = "dataset_list";
private List datasetList = new ArrayList<>();
public static final String JSON_PROPERTY_EXPECTATION = "expectation";
private DataQualityTestExpectation expectation;
public static final String JSON_PROPERTY_SUITE_URL = "suite_url";
private String suiteUrl;
public static final String JSON_PROPERTY_LINKED_URL_LIST = "linked_url_list";
private List linkedUrlList;
public DataQualityTest() {
}
public DataQualityTest suiteName(String suiteName) {
this.suiteName = suiteName;
return this;
}
/**
* Get suiteName
* @return suiteName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SUITE_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getSuiteName() {
return suiteName;
}
@JsonProperty(JSON_PROPERTY_SUITE_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSuiteName(String suiteName) {
this.suiteName = suiteName;
}
public DataQualityTest datasetList(List datasetList) {
this.datasetList = datasetList;
return this;
}
public DataQualityTest addDatasetListItem(String datasetListItem) {
if (this.datasetList == null) {
this.datasetList = new ArrayList<>();
}
this.datasetList.add(datasetListItem);
return this;
}
/**
* Get datasetList
* @return datasetList
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_DATASET_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getDatasetList() {
return datasetList;
}
@JsonProperty(JSON_PROPERTY_DATASET_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setDatasetList(List datasetList) {
this.datasetList = datasetList;
}
public DataQualityTest expectation(DataQualityTestExpectation expectation) {
this.expectation = expectation;
return this;
}
/**
* Get expectation
* @return expectation
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_EXPECTATION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DataQualityTestExpectation getExpectation() {
return expectation;
}
@JsonProperty(JSON_PROPERTY_EXPECTATION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setExpectation(DataQualityTestExpectation expectation) {
this.expectation = expectation;
}
public DataQualityTest suiteUrl(String suiteUrl) {
this.suiteUrl = suiteUrl;
return this;
}
/**
* Get suiteUrl
* @return suiteUrl
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUITE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSuiteUrl() {
return suiteUrl;
}
@JsonProperty(JSON_PROPERTY_SUITE_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuiteUrl(String suiteUrl) {
this.suiteUrl = suiteUrl;
}
public DataQualityTest linkedUrlList(List linkedUrlList) {
this.linkedUrlList = linkedUrlList;
return this;
}
public DataQualityTest addLinkedUrlListItem(LinkedUrl linkedUrlListItem) {
if (this.linkedUrlList == null) {
this.linkedUrlList = new ArrayList<>();
}
this.linkedUrlList.add(linkedUrlListItem);
return this;
}
/**
* Get linkedUrlList
* @return linkedUrlList
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LINKED_URL_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getLinkedUrlList() {
return linkedUrlList;
}
@JsonProperty(JSON_PROPERTY_LINKED_URL_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLinkedUrlList(List linkedUrlList) {
this.linkedUrlList = linkedUrlList;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataQualityTest dataQualityTest = (DataQualityTest) o;
return Objects.equals(this.suiteName, dataQualityTest.suiteName) &&
Objects.equals(this.datasetList, dataQualityTest.datasetList) &&
Objects.equals(this.expectation, dataQualityTest.expectation) &&
Objects.equals(this.suiteUrl, dataQualityTest.suiteUrl) &&
Objects.equals(this.linkedUrlList, dataQualityTest.linkedUrlList);
}
@Override
public int hashCode() {
return Objects.hash(suiteName, datasetList, expectation, suiteUrl, linkedUrlList);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataQualityTest {\n");
sb.append(" suiteName: ").append(toIndentedString(suiteName)).append("\n");
sb.append(" datasetList: ").append(toIndentedString(datasetList)).append("\n");
sb.append(" expectation: ").append(toIndentedString(expectation)).append("\n");
sb.append(" suiteUrl: ").append(toIndentedString(suiteUrl)).append("\n");
sb.append(" linkedUrlList: ").append(toIndentedString(linkedUrlList)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy