com.clinia.model.common.V1Reference 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;
/** A reference from one resource to another. */
public class V1Reference {
@JsonProperty("id")
private String id;
@JsonProperty("reference")
private String reference;
@JsonProperty("type")
private String type;
@JsonProperty("identifier")
private V1Identifier identifier;
@JsonProperty("display")
private String display;
public V1Reference setId(String id) {
this.id = id;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getId() {
return id;
}
public V1Reference setReference(String reference) {
this.reference = reference;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getReference() {
return reference;
}
public V1Reference setType(String type) {
this.type = type;
return this;
}
/** String of characters used to identify a name or a resource. */
@javax.annotation.Nullable
public String getType() {
return type;
}
public V1Reference setIdentifier(V1Identifier identifier) {
this.identifier = identifier;
return this;
}
/** Get identifier */
@javax.annotation.Nullable
public V1Identifier getIdentifier() {
return identifier;
}
public V1Reference setDisplay(String display) {
this.display = display;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getDisplay() {
return display;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1Reference v1Reference = (V1Reference) o;
return (
Objects.equals(this.id, v1Reference.id) &&
Objects.equals(this.reference, v1Reference.reference) &&
Objects.equals(this.type, v1Reference.type) &&
Objects.equals(this.identifier, v1Reference.identifier) &&
Objects.equals(this.display, v1Reference.display)
);
}
@Override
public int hashCode() {
return Objects.hash(id, reference, type, identifier, display);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Reference {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" reference: ").append(toIndentedString(reference)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n");
sb.append(" display: ").append(toIndentedString(display)).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 ");
}
}