com.clinia.model.common.V1Coding 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 to a code defined by a terminology system. */
public class V1Coding {
@JsonProperty("id")
private String id;
@JsonProperty("system")
private String system;
@JsonProperty("version")
private String version;
@JsonProperty("code")
private String code;
@JsonProperty("display")
private String display;
public V1Coding setId(String id) {
this.id = id;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getId() {
return id;
}
public V1Coding setSystem(String system) {
this.system = system;
return this;
}
/** String of characters used to identify a name or a resource. */
@javax.annotation.Nullable
public String getSystem() {
return system;
}
public V1Coding setVersion(String version) {
this.version = version;
return this;
}
/** A sequence of Unicode characters. */
@javax.annotation.Nullable
public String getVersion() {
return version;
}
public V1Coding setCode(String code) {
this.code = code;
return this;
}
/**
* A string which has at least one character and no leading or trailing whitespace and where there
* is no whitespace other than single spaces in the contents.
*/
@javax.annotation.Nullable
public String getCode() {
return code;
}
public V1Coding 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;
}
V1Coding v1Coding = (V1Coding) o;
return (
Objects.equals(this.id, v1Coding.id) &&
Objects.equals(this.system, v1Coding.system) &&
Objects.equals(this.version, v1Coding.version) &&
Objects.equals(this.code, v1Coding.code) &&
Objects.equals(this.display, v1Coding.display)
);
}
@Override
public int hashCode() {
return Objects.hash(id, system, version, code, display);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1Coding {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" system: ").append(toIndentedString(system)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" code: ").append(toIndentedString(code)).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 ");
}
}