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-resteasy Show documentation
Show all versions of glis-client-resteasy Show documentation
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;
/**
* 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 = "2017-10-26T22:59:00.232Z")
public class DOIHolder {
@JsonProperty("doi")
private String doi = null;
@JsonProperty("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 ");
}
}