org.opendatadiscovery.client.model.CompactDataEntity Maven / Gradle / Ivy
/*
* 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 org.opendatadiscovery.client.model.DataEntityType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* CompactDataEntity
*/
@JsonPropertyOrder({
CompactDataEntity.JSON_PROPERTY_ODDRN,
CompactDataEntity.JSON_PROPERTY_TYPE
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class CompactDataEntity {
public static final String JSON_PROPERTY_ODDRN = "oddrn";
private String oddrn;
public static final String JSON_PROPERTY_TYPE = "type";
private DataEntityType type;
public CompactDataEntity() {
}
public CompactDataEntity oddrn(String oddrn) {
this.oddrn = oddrn;
return this;
}
/**
* Get oddrn
* @return oddrn
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getOddrn() {
return oddrn;
}
@JsonProperty(JSON_PROPERTY_ODDRN)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setOddrn(String oddrn) {
this.oddrn = oddrn;
}
public CompactDataEntity type(DataEntityType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public DataEntityType getType() {
return type;
}
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setType(DataEntityType type) {
this.type = type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CompactDataEntity compactDataEntity = (CompactDataEntity) o;
return Objects.equals(this.oddrn, compactDataEntity.oddrn) &&
Objects.equals(this.type, compactDataEntity.type);
}
@Override
public int hashCode() {
return Objects.hash(oddrn, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CompactDataEntity {\n");
sb.append(" oddrn: ").append(toIndentedString(oddrn)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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 - 2025 Weber Informatics LLC | Privacy Policy