com.clinia.model.common.V1PatchOperation 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;
/** V1PatchOperation */
public class V1PatchOperation {
@JsonProperty("op")
private V1PatchOperationType op;
@JsonProperty("path")
private String path;
@JsonProperty("value")
private Object value;
public V1PatchOperation setOp(V1PatchOperationType op) {
this.op = op;
return this;
}
/** Get op */
@javax.annotation.Nonnull
public V1PatchOperationType getOp() {
return op;
}
public V1PatchOperation setPath(String path) {
this.path = path;
return this;
}
/** Property path. */
@javax.annotation.Nonnull
public String getPath() {
return path;
}
public V1PatchOperation setValue(Object value) {
this.value = value;
return this;
}
/** Value for the operation. Can be any type - string, number, boolean, array or object. */
@javax.annotation.Nullable
public Object getValue() {
return value;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1PatchOperation v1PatchOperation = (V1PatchOperation) o;
return (
Objects.equals(this.op, v1PatchOperation.op) &&
Objects.equals(this.path, v1PatchOperation.path) &&
Objects.equals(this.value, v1PatchOperation.value)
);
}
@Override
public int hashCode() {
return Objects.hash(op, path, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1PatchOperation {\n");
sb.append(" op: ").append(toIndentedString(op)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}