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