com.clinia.model.common.V1LessThanOperator 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.HashMap;
import java.util.Map;
import java.util.Objects;
/** V1LessThanOperator */
@JsonDeserialize(as = V1LessThanOperator.class)
public class V1LessThanOperator implements V1Operator {
@JsonProperty("id")
private String id;
@JsonProperty("lt")
private Map lt = new HashMap<>();
public V1LessThanOperator setId(String id) {
this.id = id;
return this;
}
/** Get id */
@javax.annotation.Nullable
public String getId() {
return id;
}
public V1LessThanOperator setLt(Map lt) {
this.lt = lt;
return this;
}
public V1LessThanOperator putLt(String key, V1LessThanOperatorAllOfLt ltItem) {
this.lt.put(key, ltItem);
return this;
}
/** Get lt */
@javax.annotation.Nonnull
public Map getLt() {
return lt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1LessThanOperator v1LessThanOperator = (V1LessThanOperator) o;
return Objects.equals(this.id, v1LessThanOperator.id) && Objects.equals(this.lt, v1LessThanOperator.lt);
}
@Override
public int hashCode() {
return Objects.hash(id, lt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1LessThanOperator {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" lt: ").append(toIndentedString(lt)).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 ");
}
}