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

com.clinia.model.datapartition.V1GeoDistanceOperatorAllOfGeoDistance 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.datapartition;

import com.clinia.model.common.*;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;

/** V1GeoDistanceOperatorAllOfGeoDistance */
public class V1GeoDistanceOperatorAllOfGeoDistance {

  @JsonProperty("coordinates")
  private V1GeoPoint coordinates;

  @JsonProperty("radius")
  private Integer radius;

  public V1GeoDistanceOperatorAllOfGeoDistance setCoordinates(V1GeoPoint coordinates) {
    this.coordinates = coordinates;
    return this;
  }

  /** Get coordinates */
  @javax.annotation.Nonnull
  public V1GeoPoint getCoordinates() {
    return coordinates;
  }

  public V1GeoDistanceOperatorAllOfGeoDistance setRadius(Integer radius) {
    this.radius = radius;
    return this;
  }

  /** Get radius */
  @javax.annotation.Nonnull
  public Integer getRadius() {
    return radius;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    V1GeoDistanceOperatorAllOfGeoDistance v1GeoDistanceOperatorAllOfGeoDistance = (V1GeoDistanceOperatorAllOfGeoDistance) o;
    return (
      Objects.equals(this.coordinates, v1GeoDistanceOperatorAllOfGeoDistance.coordinates) &&
      Objects.equals(this.radius, v1GeoDistanceOperatorAllOfGeoDistance.radius)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(coordinates, radius);
  }

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