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

org.genesys.glis.v1.model.Breeder Maven / Gradle / Ivy

Go to download

API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with Spring REST template

There is a newer version: 1.3
Show newest version
/*
 * 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;
import org.genesys.glis.v1.model.Actor;

/**
 * Breeder
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T09:49:15.074Z")
public class Breeder {
  @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 Breeder 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 Breeder 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 Breeder 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 Breeder 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 Breeder 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;
    }
    Breeder breeder = (Breeder) o;
    return Objects.equals(this.wiews, breeder.wiews) &&
        Objects.equals(this.pid, breeder.pid) &&
        Objects.equals(this.name, breeder.name) &&
        Objects.equals(this.address, breeder.address) &&
        Objects.equals(this.country, breeder.country);
  }

  @Override
  public int hashCode() {
    return Objects.hash(wiews, pid, name, address, country);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Breeder {\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    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy