io.quarkiverse.apistax.models.GeocodeReversePayload Maven / Gradle / Ivy
/*
* APIstax
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.quarkiverse.apistax.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* GeocodeReversePayload
*/
@JsonPropertyOrder({
GeocodeReversePayload.JSON_PROPERTY_LATITUDE,
GeocodeReversePayload.JSON_PROPERTY_LONGITUDE,
GeocodeReversePayload.JSON_PROPERTY_LANGUAGE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-07-29T13:29:23.813235Z[Etc/UTC]")
public class GeocodeReversePayload {
public static final String JSON_PROPERTY_LATITUDE = "latitude";
private Double latitude;
public static final String JSON_PROPERTY_LONGITUDE = "longitude";
private Double longitude;
public static final String JSON_PROPERTY_LANGUAGE = "language";
private String language = "en";
public GeocodeReversePayload() {
}
public GeocodeReversePayload latitude(Double latitude) {
this.latitude = latitude;
return this;
}
/**
* The latitude coordinate of a point to search for. For example \"48.20661\"
* @return latitude
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The latitude coordinate of a point to search for. For example \"48.20661\"")
@JsonProperty(JSON_PROPERTY_LATITUDE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getLatitude() {
return latitude;
}
@JsonProperty(JSON_PROPERTY_LATITUDE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLatitude(Double latitude) {
this.latitude = latitude;
}
public GeocodeReversePayload longitude(Double longitude) {
this.longitude = longitude;
return this;
}
/**
* The longitude coordinate of a point to search for. For example \"16.36301\"
* @return longitude
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "The longitude coordinate of a point to search for. For example \"16.36301\"")
@JsonProperty(JSON_PROPERTY_LONGITUDE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Double getLongitude() {
return longitude;
}
@JsonProperty(JSON_PROPERTY_LONGITUDE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setLongitude(Double longitude) {
this.longitude = longitude;
}
public GeocodeReversePayload language(String language) {
this.language = language;
return this;
}
/**
* The language used for result localization based on ISO 639-1. For example: \"en\" or \"fr\"
* @return language
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The language used for result localization based on ISO 639-1. For example: \"en\" or \"fr\"")
@JsonProperty(JSON_PROPERTY_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLanguage() {
return language;
}
@JsonProperty(JSON_PROPERTY_LANGUAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLanguage(String language) {
this.language = language;
}
/**
* Return true if this GeocodeReversePayload object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GeocodeReversePayload geocodeReversePayload = (GeocodeReversePayload) o;
return Objects.equals(this.latitude, geocodeReversePayload.latitude) &&
Objects.equals(this.longitude, geocodeReversePayload.longitude) &&
Objects.equals(this.language, geocodeReversePayload.language);
}
@Override
public int hashCode() {
return Objects.hash(latitude, longitude, language);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GeocodeReversePayload {\n");
sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
sb.append(" language: ").append(toIndentedString(language)).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 - 2025 Weber Informatics LLC | Privacy Policy