com.clinia.model.common.V1RelationshipRef 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.common;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** V1RelationshipRef */
public class V1RelationshipRef {
@JsonProperty("id")
private String id;
@JsonProperty("type")
private String type;
public V1RelationshipRef setId(String id) {
this.id = id;
return this;
}
/** Get id */
@javax.annotation.Nonnull
public String getId() {
return id;
}
public V1RelationshipRef setType(String type) {
this.type = type;
return this;
}
/** Get type */
@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;
}
V1RelationshipRef v1RelationshipRef = (V1RelationshipRef) o;
return Objects.equals(this.id, v1RelationshipRef.id) && Objects.equals(this.type, v1RelationshipRef.type);
}
@Override
public int hashCode() {
return Objects.hash(id, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1RelationshipRef {\n");
sb.append(" id: ").append(toIndentedString(id)).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 ");
}
}