org.opendatadiscovery.client.model.DataSet 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.DataSetField;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataSet
*/
@JsonPropertyOrder({
DataSet.JSON_PROPERTY_PARENT_ODDRN,
DataSet.JSON_PROPERTY_ROWS_NUMBER,
DataSet.JSON_PROPERTY_FIELD_LIST
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataSet {
public static final String JSON_PROPERTY_PARENT_ODDRN = "parent_oddrn";
private String parentOddrn;
public static final String JSON_PROPERTY_ROWS_NUMBER = "rows_number";
private Long rowsNumber;
public static final String JSON_PROPERTY_FIELD_LIST = "field_list";
private List fieldList = new ArrayList<>();
public DataSet() {
}
public DataSet parentOddrn(String parentOddrn) {
this.parentOddrn = parentOddrn;
return this;
}
/**
* Get parentOddrn
* @return parentOddrn
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PARENT_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getParentOddrn() {
return parentOddrn;
}
@JsonProperty(JSON_PROPERTY_PARENT_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setParentOddrn(String parentOddrn) {
this.parentOddrn = parentOddrn;
}
public DataSet rowsNumber(Long rowsNumber) {
this.rowsNumber = rowsNumber;
return this;
}
/**
* Get rowsNumber
* @return rowsNumber
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ROWS_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getRowsNumber() {
return rowsNumber;
}
@JsonProperty(JSON_PROPERTY_ROWS_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRowsNumber(Long rowsNumber) {
this.rowsNumber = rowsNumber;
}
public DataSet fieldList(List fieldList) {
this.fieldList = fieldList;
return this;
}
public DataSet addFieldListItem(DataSetField fieldListItem) {
if (this.fieldList == null) {
this.fieldList = new ArrayList<>();
}
this.fieldList.add(fieldListItem);
return this;
}
/**
* Get fieldList
* @return fieldList
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_FIELD_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getFieldList() {
return fieldList;
}
@JsonProperty(JSON_PROPERTY_FIELD_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setFieldList(List fieldList) {
this.fieldList = fieldList;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataSet dataSet = (DataSet) o;
return Objects.equals(this.parentOddrn, dataSet.parentOddrn) &&
Objects.equals(this.rowsNumber, dataSet.rowsNumber) &&
Objects.equals(this.fieldList, dataSet.fieldList);
}
@Override
public int hashCode() {
return Objects.hash(parentOddrn, rowsNumber, fieldList);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataSet {\n");
sb.append(" parentOddrn: ").append(toIndentedString(parentOddrn)).append("\n");
sb.append(" rowsNumber: ").append(toIndentedString(rowsNumber)).append("\n");
sb.append(" fieldList: ").append(toIndentedString(fieldList)).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