com.clinia.model.registry.V1RelationshipOperationDeleteAllOfDelete 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.registry;
import com.clinia.model.common.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1RelationshipOperationDeleteAllOfDelete */
public class V1RelationshipOperationDeleteAllOfDelete {
@JsonProperty("from")
private V1RelationshipRef from;
@JsonProperty("to")
private V1RelationshipRef to;
@JsonProperty("type")
private String type;
public V1RelationshipOperationDeleteAllOfDelete setFrom(V1RelationshipRef from) {
this.from = from;
return this;
}
/** Get from */
@javax.annotation.Nonnull
public V1RelationshipRef getFrom() {
return from;
}
public V1RelationshipOperationDeleteAllOfDelete setTo(V1RelationshipRef to) {
this.to = to;
return this;
}
/** Get to */
@javax.annotation.Nonnull
public V1RelationshipRef getTo() {
return to;
}
public V1RelationshipOperationDeleteAllOfDelete setType(String type) {
this.type = type;
return this;
}
/** The type of relationship to delete. */
@javax.annotation.Nonnull
public String getType() {
return type;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1RelationshipOperationDeleteAllOfDelete v1RelationshipOperationDeleteAllOfDelete = (V1RelationshipOperationDeleteAllOfDelete) o;
return (
Objects.equals(this.from, v1RelationshipOperationDeleteAllOfDelete.from) &&
Objects.equals(this.to, v1RelationshipOperationDeleteAllOfDelete.to) &&
Objects.equals(this.type, v1RelationshipOperationDeleteAllOfDelete.type)
);
}
@Override
public int hashCode() {
return Objects.hash(from, to, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1RelationshipOperationDeleteAllOfDelete {\n");
sb.append(" from: ").append(toIndentedString(from)).append("\n");
sb.append(" to: ").append(toIndentedString(to)).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 ");
}
}