org.opendatadiscovery.client.model.GraphRelationship 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.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* GraphRelationship
*/
@JsonPropertyOrder({
GraphRelationship.JSON_PROPERTY_IS_DIRECTED,
GraphRelationship.JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME,
GraphRelationship.JSON_PROPERTY_ATTRIBUTES
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-04-17T12:42:16.563637609Z[Etc/UTC]")
public class GraphRelationship {
public static final String JSON_PROPERTY_IS_DIRECTED = "is_directed";
private Boolean isDirected;
public static final String JSON_PROPERTY_RELATIONSHIP_ENTITY_NAME = "relationship_entity_name";
private String relationshipEntityName;
public static final String JSON_PROPERTY_ATTRIBUTES = "attributes";
private Map attributes = new HashMap<>();
public GraphRelationship() {
}
public GraphRelationship isDirected(Boolean isDirected) {
this.isDirected = isDirected;
return this;
}
/**
* Get isDirected
* @return isDirected
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_IS_DIRECTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getIsDirected() {
return isDirected;
}
@JsonProperty(JSON_PROPERTY_IS_DIRECTED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIsDirected(Boolean isDirected) {
this.isDirected = isDirected;
}
public GraphRelationship 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;
}
public GraphRelationship attributes(Map attributes) {
this.attributes = attributes;
return this;
}
public GraphRelationship putAttributesItem(String key, Object attributesItem) {
if (this.attributes == null) {
this.attributes = new HashMap<>();
}
this.attributes.put(key, attributesItem);
return this;
}
/**
* Get attributes
* @return attributes
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public Map getAttributes() {
return attributes;
}
@JsonProperty(JSON_PROPERTY_ATTRIBUTES)
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
public void setAttributes(Map attributes) {
this.attributes = attributes;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GraphRelationship graphRelationship = (GraphRelationship) o;
return Objects.equals(this.isDirected, graphRelationship.isDirected) &&
Objects.equals(this.relationshipEntityName, graphRelationship.relationshipEntityName) &&
Objects.equals(this.attributes, graphRelationship.attributes);
}
@Override
public int hashCode() {
return Objects.hash(isDirected, relationshipEntityName, attributes);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GraphRelationship {\n");
sb.append(" isDirected: ").append(toIndentedString(isDirected)).append("\n");
sb.append(" relationshipEntityName: ").append(toIndentedString(relationshipEntityName)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).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