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

com.wirefreethought.geodb.client.vo.RegionSummary Maven / Gradle / Ivy

/*
 * Geo DB API
 * This developer-centric REST API focuses on getting global city and region data. Easily obtain country, region, and city data for use in your apps! 
  • Filter cities by name prefix, country, location, time-zone, and even minimum population.
  • Get all country regions.
  • Get all cities in a given region.
  • Developer-friendly RESTful API adheres to industry best-practices, including HATEOS-style links to facilitate paging results.
  • Backed by Amazon AWS load-balanced infrastructure for resiliency and performance!
  • Data is periodically refreshed from GeoNames.org.

Notes:

  • All endpoints implicitly support JSONP-style invocation via an optional callback param.
  • Since the database is periodically updated, this may very rarely result in certain cities being marked deleted (e.g., duplicates removed). By default, endpoints returning city data will exclude cities marked deleted. However, in the unlikely event that this occurs while your app is paging through a set of affected results - and you care about the paged results suddenly changing underneath - specify includeDeleted=SINCE_YESTERDAY (or SINCE_LAST_WEEK if you're really paranoid!).

Useful Resources

* * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com.wirefreethought.geodb.client.vo; import java.util.Objects; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; /** * RegionSummary */ @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-12-31T15:43:51.423-08:00") public class RegionSummary { @SerializedName("countryCode") private String countryCode = null; @SerializedName("fipsCode") private String fipsCode = null; @SerializedName("hascCode") private String hascCode = null; @SerializedName("isoCode") private String isoCode = null; @SerializedName("name") private String name = null; public RegionSummary countryCode(String countryCode) { this.countryCode = countryCode; return this; } /** * An ISO-3166 country code * @return countryCode **/ @ApiModelProperty(value = "An ISO-3166 country code") public String getCountryCode() { return countryCode; } public void setCountryCode(String countryCode) { this.countryCode = countryCode; } public RegionSummary fipsCode(String fipsCode) { this.fipsCode = fipsCode; return this; } /** * Get fipsCode * @return fipsCode **/ @ApiModelProperty(value = "") public String getFipsCode() { return fipsCode; } public void setFipsCode(String fipsCode) { this.fipsCode = fipsCode; } public RegionSummary hascCode(String hascCode) { this.hascCode = hascCode; return this; } /** * Get hascCode * @return hascCode **/ @ApiModelProperty(value = "") public String getHascCode() { return hascCode; } public void setHascCode(String hascCode) { this.hascCode = hascCode; } public RegionSummary isoCode(String isoCode) { this.isoCode = isoCode; return this; } /** * Get isoCode * @return isoCode **/ @ApiModelProperty(value = "") public String getIsoCode() { return isoCode; } public void setIsoCode(String isoCode) { this.isoCode = isoCode; } public RegionSummary name(String name) { this.name = name; return this; } /** * Get name * @return name **/ @ApiModelProperty(value = "") public String getName() { return name; } public void setName(String name) { this.name = name; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } RegionSummary regionSummary = (RegionSummary) o; return Objects.equals(this.countryCode, regionSummary.countryCode) && Objects.equals(this.fipsCode, regionSummary.fipsCode) && Objects.equals(this.hascCode, regionSummary.hascCode) && Objects.equals(this.isoCode, regionSummary.isoCode) && Objects.equals(this.name, regionSummary.name); } @Override public int hashCode() { return Objects.hash(countryCode, fipsCode, hascCode, isoCode, name); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RegionSummary {\n"); sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); sb.append(" fipsCode: ").append(toIndentedString(fipsCode)).append("\n"); sb.append(" hascCode: ").append(toIndentedString(hascCode)).append("\n"); sb.append(" isoCode: ").append(toIndentedString(isoCode)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).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(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy