com.clinia.model.common.V1GreaterThanOperator 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;
/** V1GreaterThanOperator */
@JsonDeserialize(as = V1GreaterThanOperator.class)
public class V1GreaterThanOperator implements V1Operator {
@JsonProperty("id")
private String id;
@JsonProperty("gt")
private Map gt = new HashMap<>();
public V1GreaterThanOperator setId(String id) {
this.id = id;
return this;
}
/** Get id */
@javax.annotation.Nullable
public String getId() {
return id;
}
public V1GreaterThanOperator setGt(Map gt) {
this.gt = gt;
return this;
}
public V1GreaterThanOperator putGt(String key, V1GreaterThanOperatorAllOfGt gtItem) {
this.gt.put(key, gtItem);
return this;
}
/** Get gt */
@javax.annotation.Nonnull
public Map getGt() {
return gt;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
V1GreaterThanOperator v1GreaterThanOperator = (V1GreaterThanOperator) o;
return Objects.equals(this.id, v1GreaterThanOperator.id) && Objects.equals(this.gt, v1GreaterThanOperator.gt);
}
@Override
public int hashCode() {
return Objects.hash(id, gt);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class V1GreaterThanOperator {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" gt: ").append(toIndentedString(gt)).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 ");
}
}