org.genesys.glis.v1.model.Actor 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.1-SNAPSHOT
* 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;
/**
* Actor
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T09:49:15.074Z")
public class Actor {
@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 Actor 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 Actor 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 Actor 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 Actor 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 Actor 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;
}
Actor actor = (Actor) o;
return Objects.equals(this.wiews, actor.wiews) &&
Objects.equals(this.pid, actor.pid) &&
Objects.equals(this.name, actor.name) &&
Objects.equals(this.address, actor.address) &&
Objects.equals(this.country, actor.country);
}
@Override
public int hashCode() {
return Objects.hash(wiews, pid, name, address, country);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Actor {\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 ");
}
}