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

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

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

  @JsonProperty("id")
  private String id;

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

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

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

  public V1GeoDistanceOperator setGeoDistance(Map geoDistance) {
    this.geoDistance = geoDistance;
    return this;
  }

  public V1GeoDistanceOperator putGeoDistance(String key, V1GeoDistanceOperatorAllOfGeoDistance geoDistanceItem) {
    this.geoDistance.put(key, geoDistanceItem);
    return this;
  }

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

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

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

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