
org.genesys.glis.v1.model.DOIHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glis-client-okhttp-gson Show documentation
Show all versions of glis-client-okhttp-gson Show documentation
API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with okhttp+gson
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.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.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* The PGRFA DOI and the WIEWS code of its holder.
*/
@ApiModel(description = "The PGRFA DOI and the WIEWS code of its holder.")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T09:47:47.497Z")
public class DOIHolder {
@SerializedName("doi")
private String doi = null;
@SerializedName("holdwiews")
private String holdwiews = null;
public DOIHolder doi(String doi) {
this.doi = doi;
return this;
}
/**
* Get doi
* @return doi
**/
@ApiModelProperty(example = "10.18730/583E", value = "")
public String getDoi() {
return doi;
}
public void setDoi(String doi) {
this.doi = doi;
}
public DOIHolder holdwiews(String holdwiews) {
this.holdwiews = holdwiews;
return this;
}
/**
* Get holdwiews
* @return holdwiews
**/
@ApiModelProperty(example = "PER001", value = "")
public String getHoldwiews() {
return holdwiews;
}
public void setHoldwiews(String holdwiews) {
this.holdwiews = holdwiews;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DOIHolder doIHolder = (DOIHolder) o;
return Objects.equals(this.doi, doIHolder.doi) &&
Objects.equals(this.holdwiews, doIHolder.holdwiews);
}
@Override
public int hashCode() {
return Objects.hash(doi, holdwiews);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DOIHolder {\n");
sb.append(" doi: ").append(toIndentedString(doi)).append("\n");
sb.append(" holdwiews: ").append(toIndentedString(holdwiews)).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 - 2025 Weber Informatics LLC | Privacy Policy