org.opendatadiscovery.client.model.DataSetFieldAllOf 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.DataSetFieldEnumValue;
import org.opendatadiscovery.client.model.DataSetFieldStat;
import org.opendatadiscovery.client.model.DataSetFieldType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* DataSetFieldAllOf
*/
@JsonPropertyOrder({
DataSetFieldAllOf.JSON_PROPERTY_PARENT_FIELD_ODDRN,
DataSetFieldAllOf.JSON_PROPERTY_TYPE,
DataSetFieldAllOf.JSON_PROPERTY_IS_PRIMARY_KEY,
DataSetFieldAllOf.JSON_PROPERTY_IS_SORT_KEY,
DataSetFieldAllOf.JSON_PROPERTY_IS_KEY,
DataSetFieldAllOf.JSON_PROPERTY_IS_VALUE,
DataSetFieldAllOf.JSON_PROPERTY_REFERENCE_ODDRN,
DataSetFieldAllOf.JSON_PROPERTY_DEFAULT_VALUE,
DataSetFieldAllOf.JSON_PROPERTY_STATS,
DataSetFieldAllOf.JSON_PROPERTY_ENUM_VALUES
})
@JsonTypeName("DataSetField_allOf")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class DataSetFieldAllOf {
public static final String JSON_PROPERTY_PARENT_FIELD_ODDRN = "parent_field_oddrn";
private String parentFieldOddrn;
public static final String JSON_PROPERTY_TYPE = "type";
private DataSetFieldType type;
public static final String JSON_PROPERTY_IS_PRIMARY_KEY = "is_primary_key";
private Boolean isPrimaryKey;
public static final String JSON_PROPERTY_IS_SORT_KEY = "is_sort_key";
private Boolean isSortKey;
public static final String JSON_PROPERTY_IS_KEY = "is_key";
private Boolean isKey;
public static final String JSON_PROPERTY_IS_VALUE = "is_value";
private Boolean isValue;
public static final String JSON_PROPERTY_REFERENCE_ODDRN = "reference_oddrn";
private String referenceOddrn;
public static final String JSON_PROPERTY_DEFAULT_VALUE = "default_value";
private String defaultValue;
public static final String JSON_PROPERTY_STATS = "stats";
private DataSetFieldStat stats;
public static final String JSON_PROPERTY_ENUM_VALUES = "enum_values";
private List enumValues;
public DataSetFieldAllOf() {
}
public DataSetFieldAllOf parentFieldOddrn(String parentFieldOddrn) {
this.parentFieldOddrn = parentFieldOddrn;
return this;
}
/**
* Get parentFieldOddrn
* @return parentFieldOddrn
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PARENT_FIELD_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getParentFieldOddrn() {
return parentFieldOddrn;
}
@JsonProperty(JSON_PROPERTY_PARENT_FIELD_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setParentFieldOddrn(String parentFieldOddrn) {
this.parentFieldOddrn = parentFieldOddrn;
}
public DataSetFieldAllOf type(DataSetFieldType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DataSetFieldType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setType(DataSetFieldType type) {
this.type = type;
}
public DataSetFieldAllOf isPrimaryKey(Boolean isPrimaryKey) {
this.isPrimaryKey = isPrimaryKey;
return this;
}
/**
* Get isPrimaryKey
* @return isPrimaryKey
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_PRIMARY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsPrimaryKey() {
return isPrimaryKey;
}
@JsonProperty(JSON_PROPERTY_IS_PRIMARY_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsPrimaryKey(Boolean isPrimaryKey) {
this.isPrimaryKey = isPrimaryKey;
}
public DataSetFieldAllOf isSortKey(Boolean isSortKey) {
this.isSortKey = isSortKey;
return this;
}
/**
* Get isSortKey
* @return isSortKey
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_SORT_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsSortKey() {
return isSortKey;
}
@JsonProperty(JSON_PROPERTY_IS_SORT_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsSortKey(Boolean isSortKey) {
this.isSortKey = isSortKey;
}
public DataSetFieldAllOf isKey(Boolean isKey) {
this.isKey = isKey;
return this;
}
/**
* Get isKey
* @return isKey
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsKey() {
return isKey;
}
@JsonProperty(JSON_PROPERTY_IS_KEY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsKey(Boolean isKey) {
this.isKey = isKey;
}
public DataSetFieldAllOf isValue(Boolean isValue) {
this.isValue = isValue;
return this;
}
/**
* Get isValue
* @return isValue
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsValue() {
return isValue;
}
@JsonProperty(JSON_PROPERTY_IS_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsValue(Boolean isValue) {
this.isValue = isValue;
}
public DataSetFieldAllOf referenceOddrn(String referenceOddrn) {
this.referenceOddrn = referenceOddrn;
return this;
}
/**
* Get referenceOddrn
* @return referenceOddrn
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REFERENCE_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getReferenceOddrn() {
return referenceOddrn;
}
@JsonProperty(JSON_PROPERTY_REFERENCE_ODDRN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReferenceOddrn(String referenceOddrn) {
this.referenceOddrn = referenceOddrn;
}
public DataSetFieldAllOf defaultValue(String defaultValue) {
this.defaultValue = defaultValue;
return this;
}
/**
* Get defaultValue
* @return defaultValue
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getDefaultValue() {
return defaultValue;
}
@JsonProperty(JSON_PROPERTY_DEFAULT_VALUE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue;
}
public DataSetFieldAllOf stats(DataSetFieldStat stats) {
this.stats = stats;
return this;
}
/**
* Get stats
* @return stats
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STATS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public DataSetFieldStat getStats() {
return stats;
}
@JsonProperty(JSON_PROPERTY_STATS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStats(DataSetFieldStat stats) {
this.stats = stats;
}
public DataSetFieldAllOf enumValues(List enumValues) {
this.enumValues = enumValues;
return this;
}
public DataSetFieldAllOf addEnumValuesItem(DataSetFieldEnumValue enumValuesItem) {
if (this.enumValues == null) {
this.enumValues = new ArrayList<>();
}
this.enumValues.add(enumValuesItem);
return this;
}
/**
* Get enumValues
* @return enumValues
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ENUM_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getEnumValues() {
return enumValues;
}
@JsonProperty(JSON_PROPERTY_ENUM_VALUES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEnumValues(List enumValues) {
this.enumValues = enumValues;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DataSetFieldAllOf dataSetFieldAllOf = (DataSetFieldAllOf) o;
return Objects.equals(this.parentFieldOddrn, dataSetFieldAllOf.parentFieldOddrn) &&
Objects.equals(this.type, dataSetFieldAllOf.type) &&
Objects.equals(this.isPrimaryKey, dataSetFieldAllOf.isPrimaryKey) &&
Objects.equals(this.isSortKey, dataSetFieldAllOf.isSortKey) &&
Objects.equals(this.isKey, dataSetFieldAllOf.isKey) &&
Objects.equals(this.isValue, dataSetFieldAllOf.isValue) &&
Objects.equals(this.referenceOddrn, dataSetFieldAllOf.referenceOddrn) &&
Objects.equals(this.defaultValue, dataSetFieldAllOf.defaultValue) &&
Objects.equals(this.stats, dataSetFieldAllOf.stats) &&
Objects.equals(this.enumValues, dataSetFieldAllOf.enumValues);
}
@Override
public int hashCode() {
return Objects.hash(parentFieldOddrn, type, isPrimaryKey, isSortKey, isKey, isValue, referenceOddrn, defaultValue, stats, enumValues);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DataSetFieldAllOf {\n");
sb.append(" parentFieldOddrn: ").append(toIndentedString(parentFieldOddrn)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" isPrimaryKey: ").append(toIndentedString(isPrimaryKey)).append("\n");
sb.append(" isSortKey: ").append(toIndentedString(isSortKey)).append("\n");
sb.append(" isKey: ").append(toIndentedString(isKey)).append("\n");
sb.append(" isValue: ").append(toIndentedString(isValue)).append("\n");
sb.append(" referenceOddrn: ").append(toIndentedString(referenceOddrn)).append("\n");
sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n");
sb.append(" stats: ").append(toIndentedString(stats)).append("\n");
sb.append(" enumValues: ").append(toIndentedString(enumValues)).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