All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.clinia.model.common.V1EqOperator 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;

/** V1EqOperator */
@JsonDeserialize(as = V1EqOperator.class)
public class V1EqOperator implements V1Operator {

  @JsonProperty("id")
  private String id;

  @JsonProperty("eq")
  private Map eq = new HashMap<>();

  public V1EqOperator setId(String id) {
    this.id = id;
    return this;
  }

  /** Get id */
  @javax.annotation.Nullable
  public String getId() {
    return id;
  }

  public V1EqOperator setEq(Map eq) {
    this.eq = eq;
    return this;
  }

  public V1EqOperator putEq(String key, V1EqOperatorAllOfEq eqItem) {
    this.eq.put(key, eqItem);
    return this;
  }

  /** Get eq */
  @javax.annotation.Nonnull
  public Map getEq() {
    return eq;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1EqOperator v1EqOperator = (V1EqOperator) o;
    return Objects.equals(this.id, v1EqOperator.id) && Objects.equals(this.eq, v1EqOperator.eq);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, eq);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V1EqOperator {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    eq: ").append(toIndentedString(eq)).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    ");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy