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

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

Go to download

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

The 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.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;

/**
 * Collector
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:00.232Z")
public class Collector {
  @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 Collector 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 Collector 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 Collector 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 Collector 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 Collector 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;
    }
    Collector collector = (Collector) o;
    return Objects.equals(this.wiews, collector.wiews) &&
        Objects.equals(this.pid, collector.pid) &&
        Objects.equals(this.name, collector.name) &&
        Objects.equals(this.address, collector.address) &&
        Objects.equals(this.country, collector.country);
  }

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


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