org.opendatadiscovery.client.model.ERDRelationship 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.CardinalityType;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* ERDRelationship
*/
@JsonPropertyOrder({
ERDRelationship.JSON_PROPERTY_SOURCE_DATASET_FIELD_ODDRNS_LIST,
ERDRelationship.JSON_PROPERTY_TARGET_DATASET_FIELD_ODDRNS_LIST,
ERDRelationship.JSON_PROPERTY_IS_IDENTIFYING,
ERDRelationship.JSON_PROPERTY_CARDINALITY,
ERDRelationship.JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class ERDRelationship {
public static final String JSON_PROPERTY_SOURCE_DATASET_FIELD_ODDRNS_LIST = "source_dataset_field_oddrns_list";
private List sourceDatasetFieldOddrnsList = new ArrayList<>();
public static final String JSON_PROPERTY_TARGET_DATASET_FIELD_ODDRNS_LIST = "target_dataset_field_oddrns_list";
private List targetDatasetFieldOddrnsList = new ArrayList<>();
public static final String JSON_PROPERTY_IS_IDENTIFYING = "is_identifying";
private Boolean isIdentifying;
public static final String JSON_PROPERTY_CARDINALITY = "cardinality";
private CardinalityType cardinality;
public static final String JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME = "relationship_entity_name";
private String relationshipEntityName;
public ERDRelationship() {
}
public ERDRelationship sourceDatasetFieldOddrnsList(List sourceDatasetFieldOddrnsList) {
this.sourceDatasetFieldOddrnsList = sourceDatasetFieldOddrnsList;
return this;
}
public ERDRelationship addSourceDatasetFieldOddrnsListItem(String sourceDatasetFieldOddrnsListItem) {
if (this.sourceDatasetFieldOddrnsList == null) {
this.sourceDatasetFieldOddrnsList = new ArrayList<>();
}
this.sourceDatasetFieldOddrnsList.add(sourceDatasetFieldOddrnsListItem);
return this;
}
/**
* Get sourceDatasetFieldOddrnsList
* @return sourceDatasetFieldOddrnsList
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_SOURCE_DATASET_FIELD_ODDRNS_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getSourceDatasetFieldOddrnsList() {
return sourceDatasetFieldOddrnsList;
}
@JsonProperty(JSON_PROPERTY_SOURCE_DATASET_FIELD_ODDRNS_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setSourceDatasetFieldOddrnsList(List sourceDatasetFieldOddrnsList) {
this.sourceDatasetFieldOddrnsList = sourceDatasetFieldOddrnsList;
}
public ERDRelationship targetDatasetFieldOddrnsList(List targetDatasetFieldOddrnsList) {
this.targetDatasetFieldOddrnsList = targetDatasetFieldOddrnsList;
return this;
}
public ERDRelationship addTargetDatasetFieldOddrnsListItem(String targetDatasetFieldOddrnsListItem) {
if (this.targetDatasetFieldOddrnsList == null) {
this.targetDatasetFieldOddrnsList = new ArrayList<>();
}
this.targetDatasetFieldOddrnsList.add(targetDatasetFieldOddrnsListItem);
return this;
}
/**
* Get targetDatasetFieldOddrnsList
* @return targetDatasetFieldOddrnsList
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_TARGET_DATASET_FIELD_ODDRNS_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getTargetDatasetFieldOddrnsList() {
return targetDatasetFieldOddrnsList;
}
@JsonProperty(JSON_PROPERTY_TARGET_DATASET_FIELD_ODDRNS_LIST)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setTargetDatasetFieldOddrnsList(List targetDatasetFieldOddrnsList) {
this.targetDatasetFieldOddrnsList = targetDatasetFieldOddrnsList;
}
public ERDRelationship isIdentifying(Boolean isIdentifying) {
this.isIdentifying = isIdentifying;
return this;
}
/**
* Get isIdentifying
* @return isIdentifying
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_IDENTIFYING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsIdentifying() {
return isIdentifying;
}
@JsonProperty(JSON_PROPERTY_IS_IDENTIFYING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsIdentifying(Boolean isIdentifying) {
this.isIdentifying = isIdentifying;
}
public ERDRelationship cardinality(CardinalityType cardinality) {
this.cardinality = cardinality;
return this;
}
/**
* Get cardinality
* @return cardinality
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CARDINALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public CardinalityType getCardinality() {
return cardinality;
}
@JsonProperty(JSON_PROPERTY_CARDINALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setCardinality(CardinalityType cardinality) {
this.cardinality = cardinality;
}
public ERDRelationship relationshipEntityName(String relationshipEntityName) {
this.relationshipEntityName = relationshipEntityName;
return this;
}
/**
* Get relationshipEntityName
* @return relationshipEntityName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getRelationshipEntityName() {
return relationshipEntityName;
}
@JsonProperty(JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRelationshipEntityName(String relationshipEntityName) {
this.relationshipEntityName = relationshipEntityName;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ERDRelationship erDRelationship = (ERDRelationship) o;
return Objects.equals(this.sourceDatasetFieldOddrnsList, erDRelationship.sourceDatasetFieldOddrnsList) &&
Objects.equals(this.targetDatasetFieldOddrnsList, erDRelationship.targetDatasetFieldOddrnsList) &&
Objects.equals(this.isIdentifying, erDRelationship.isIdentifying) &&
Objects.equals(this.cardinality, erDRelationship.cardinality) &&
Objects.equals(this.relationshipEntityName, erDRelationship.relationshipEntityName);
}
@Override
public int hashCode() {
return Objects.hash(sourceDatasetFieldOddrnsList, targetDatasetFieldOddrnsList, isIdentifying, cardinality, relationshipEntityName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ERDRelationship {\n");
sb.append(" sourceDatasetFieldOddrnsList: ").append(toIndentedString(sourceDatasetFieldOddrnsList)).append("\n");
sb.append(" targetDatasetFieldOddrnsList: ").append(toIndentedString(targetDatasetFieldOddrnsList)).append("\n");
sb.append(" isIdentifying: ").append(toIndentedString(isIdentifying)).append("\n");
sb.append(" cardinality: ").append(toIndentedString(cardinality)).append("\n");
sb.append(" relationshipEntityName: ").append(toIndentedString(relationshipEntityName)).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