org.genesys.glis.v1.model.Location Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glis-client-resttemplate Show documentation
Show all versions of glis-client-resttemplate Show documentation
API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with Spring REST template
/*
* Global Information System API Client
* Genesys API client to the Global Information System (GLIS) for PGRFA [https://glis.planttreaty.org](https://glis.planttreaty.org).
*
* OpenAPI spec version: 1.0
* Contact: [email protected]
*
* 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 org.genesys.glis.v1.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.genesys.glis.v1.model.Actor;
/**
* The location element is the same as the actor element with the addition of geographical coordinates: latitude and longitude.
*/
@ApiModel(description = "The location element is the same as the actor element with the addition of geographical coordinates: latitude and longitude.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:27.549Z")
public class Location {
@JsonProperty("wiews")
private String wiews = null;
@JsonProperty("pid")
private String pid = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("address")
private String address = null;
@JsonProperty("country")
private String country = null;
public Location wiews(String wiews) {
this.wiews = wiews;
return this;
}
/**
* FAO/WIEWS Institute code
* @return wiews
**/
@ApiModelProperty(example = "NLD037", value = "FAO/WIEWS Institute code")
public String getWiews() {
return wiews;
}
public void setWiews(String wiews) {
this.wiews = wiews;
}
public Location pid(String pid) {
this.pid = pid;
return this;
}
/**
* Easy-SMTA PID
* @return pid
**/
@ApiModelProperty(example = "1337", value = "Easy-SMTA PID")
public String getPid() {
return pid;
}
public void setPid(String pid) {
this.pid = pid;
}
public Location name(String name) {
this.name = name;
return this;
}
/**
* Name
* @return name
**/
@ApiModelProperty(example = "Centre for Genetic Resources, Wageningen University and Research Centre", value = "Name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Location address(String address) {
this.address = address;
return this;
}
/**
* Address
* @return address
**/
@ApiModelProperty(example = "6700 AA Wageningen, The Netherlands", value = "Address")
public String getAddress() {
return address;
}
public void setAddress(String address) {
this.address = address;
}
public Location country(String country) {
this.country = country;
return this;
}
/**
* ISO-3166 apha-3 country code
* @return country
**/
@ApiModelProperty(example = "NLD", value = "ISO-3166 apha-3 country code")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Location location = (Location) o;
return Objects.equals(this.wiews, location.wiews) &&
Objects.equals(this.pid, location.pid) &&
Objects.equals(this.name, location.name) &&
Objects.equals(this.address, location.address) &&
Objects.equals(this.country, location.country);
}
@Override
public int hashCode() {
return Objects.hash(wiews, pid, name, address, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Location {\n");
sb.append(" wiews: ").append(toIndentedString(wiews)).append("\n");
sb.append(" pid: ").append(toIndentedString(pid)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append(" country: ").append(toIndentedString(country)).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 ");
}
}