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