io.quarkiverse.apistax.models.GeocodeSearchPayload 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;
/**
* GeocodeSearchPayload
*/
@JsonPropertyOrder({
GeocodeSearchPayload.JSON_PROPERTY_QUERY,
GeocodeSearchPayload.JSON_PROPERTY_LANGUAGE
})
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-07-29T13:29:23.813235Z[Etc/UTC]")
public class GeocodeSearchPayload {
public static final String JSON_PROPERTY_QUERY = "query";
private String query;
public static final String JSON_PROPERTY_LANGUAGE = "language";
private String language = "en";
public GeocodeSearchPayload() {
}
public GeocodeSearchPayload query(String query) {
this.query = query;
return this;
}
/**
* A free-text address query. For example: \"Heldenplatz, Wien\" or \"Wiedner Hauptstraße 32, 1040 Wien\"
* @return query
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "A free-text address query. For example: \"Heldenplatz, Wien\" or \"Wiedner Hauptstraße 32, 1040 Wien\"")
@JsonProperty(JSON_PROPERTY_QUERY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getQuery() {
return query;
}
@JsonProperty(JSON_PROPERTY_QUERY)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setQuery(String query) {
this.query = query;
}
public GeocodeSearchPayload 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 GeocodeSearchPayload object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GeocodeSearchPayload geocodeSearchPayload = (GeocodeSearchPayload) o;
return Objects.equals(this.query, geocodeSearchPayload.query) &&
Objects.equals(this.language, geocodeSearchPayload.language);
}
@Override
public int hashCode() {
return Objects.hash(query, language);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GeocodeSearchPayload {\n");
sb.append(" query: ").append(toIndentedString(query)).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