com.clinia.model.datacatalog.V1RelationshipPropertyMapping Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/clinia/api-clients-generation. DO NOT EDIT.
package com.clinia.model.datacatalog;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1RelationshipPropertyMapping */
public class V1RelationshipPropertyMapping {
@JsonProperty("source")
private String source;
@JsonProperty("type")
private String type;
@JsonProperty("path")
private String path;
public V1RelationshipPropertyMapping setSource(String source) {
this.source = source;
return this;
}
/** Get source */
@javax.annotation.Nonnull
public String getSource() {
return source;
}
public V1RelationshipPropertyMapping setType(String type) {
this.type = type;
return this;
}
/** Get type */
@javax.annotation.Nonnull
public String getType() {
return type;
}
public V1RelationshipPropertyMapping setPath(String path) {
this.path = path;
return this;
}
/** Get path */
@javax.annotation.Nonnull
public String getPath() {
return path;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1RelationshipPropertyMapping v1RelationshipPropertyMapping = (V1RelationshipPropertyMapping) o;
return (
Objects.equals(this.source, v1RelationshipPropertyMapping.source) &&
Objects.equals(this.type, v1RelationshipPropertyMapping.type) &&
Objects.equals(this.path, v1RelationshipPropertyMapping.path)
);
}
@Override
public int hashCode() {
return Objects.hash(source, type, path);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1RelationshipPropertyMapping {\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).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 ");
}
}