com.clinia.model.datacatalog.V1MDMPartitionRelationshipConnection 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.HashMap;
import java.util.Map;
import java.util.Objects;
/** V1MDMPartitionRelationshipConnection */
public class V1MDMPartitionRelationshipConnection {
@JsonProperty("relationshipType")
private String relationshipType;
@JsonProperty("from")
private V1RelationshipRefDefinition from;
@JsonProperty("to")
private V1RelationshipRefDefinition to;
@JsonProperty("properties")
private Map properties;
public V1MDMPartitionRelationshipConnection setRelationshipType(String relationshipType) {
this.relationshipType = relationshipType;
return this;
}
/** The type of the mdm relationship. */
@javax.annotation.Nonnull
public String getRelationshipType() {
return relationshipType;
}
public V1MDMPartitionRelationshipConnection setFrom(V1RelationshipRefDefinition from) {
this.from = from;
return this;
}
/** Get from */
@javax.annotation.Nonnull
public V1RelationshipRefDefinition getFrom() {
return from;
}
public V1MDMPartitionRelationshipConnection setTo(V1RelationshipRefDefinition to) {
this.to = to;
return this;
}
/** Get to */
@javax.annotation.Nonnull
public V1RelationshipRefDefinition getTo() {
return to;
}
public V1MDMPartitionRelationshipConnection setProperties(Map properties) {
this.properties = properties;
return this;
}
public V1MDMPartitionRelationshipConnection putProperties(String key, V1RelationshipPropertyDefinition propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<>();
}
this.properties.put(key, propertiesItem);
return this;
}
/** Get properties */
@javax.annotation.Nullable
public Map getProperties() {
return properties;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1MDMPartitionRelationshipConnection v1MDMPartitionRelationshipConnection = (V1MDMPartitionRelationshipConnection) o;
return (
Objects.equals(this.relationshipType, v1MDMPartitionRelationshipConnection.relationshipType) &&
Objects.equals(this.from, v1MDMPartitionRelationshipConnection.from) &&
Objects.equals(this.to, v1MDMPartitionRelationshipConnection.to) &&
Objects.equals(this.properties, v1MDMPartitionRelationshipConnection.properties)
);
}
@Override
public int hashCode() {
return Objects.hash(relationshipType, from, to, properties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1MDMPartitionRelationshipConnection {\n");
sb.append(" relationshipType: ").append(toIndentedString(relationshipType)).append("\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" to: ").append(toIndentedString(to)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).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 ");
}
}