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

org.genesys.glis.v1.model.Species 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;

/**
 * Species
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-10T16:57:15.984Z")
public class Species {
  @JsonProperty("species")
  private String species = null;

  @JsonProperty("spauth")
  private String spauth = null;

  @JsonProperty("subtaxa")
  private String subtaxa = null;

  @JsonProperty("stauth")
  private String stauth = null;

  public Species species(String species) {
    this.species = species;
    return this;
  }

   /**
   * Get species
   * @return species
  **/
  @ApiModelProperty(value = "")
  public String getSpecies() {
    return species;
  }

  public void setSpecies(String species) {
    this.species = species;
  }

  public Species spauth(String spauth) {
    this.spauth = spauth;
    return this;
  }

   /**
   * Get spauth
   * @return spauth
  **/
  @ApiModelProperty(value = "")
  public String getSpauth() {
    return spauth;
  }

  public void setSpauth(String spauth) {
    this.spauth = spauth;
  }

  public Species subtaxa(String subtaxa) {
    this.subtaxa = subtaxa;
    return this;
  }

   /**
   * Get subtaxa
   * @return subtaxa
  **/
  @ApiModelProperty(value = "")
  public String getSubtaxa() {
    return subtaxa;
  }

  public void setSubtaxa(String subtaxa) {
    this.subtaxa = subtaxa;
  }

  public Species stauth(String stauth) {
    this.stauth = stauth;
    return this;
  }

   /**
   * Get stauth
   * @return stauth
  **/
  @ApiModelProperty(value = "")
  public String getStauth() {
    return stauth;
  }

  public void setStauth(String stauth) {
    this.stauth = stauth;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Species species = (Species) o;
    return Objects.equals(this.species, species.species) &&
        Objects.equals(this.spauth, species.spauth) &&
        Objects.equals(this.subtaxa, species.subtaxa) &&
        Objects.equals(this.stauth, species.stauth);
  }

  @Override
  public int hashCode() {
    return Objects.hash(species, spauth, subtaxa, stauth);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Species {\n");
    
    sb.append("    species: ").append(toIndentedString(species)).append("\n");
    sb.append("    spauth: ").append(toIndentedString(spauth)).append("\n");
    sb.append("    subtaxa: ").append(toIndentedString(subtaxa)).append("\n");
    sb.append("    stauth: ").append(toIndentedString(stauth)).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