org.genesys.glis.v1.model.PGRFA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glis-client-resttemplate Show documentation
Show all versions of glis-client-resttemplate Show documentation
API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with Spring REST template
/*
* 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 java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import org.genesys.glis.v1.model.Location;
import org.genesys.glis.v1.model.Names;
import org.genesys.glis.v1.model.OtherIdentifier;
import org.genesys.glis.v1.model.Species;
import org.genesys.glis.v1.model.Target;
import org.genesys.glis.v1.model.TermValue;
import org.genesys.glis.v1.model.UpdateInformation;
/**
* PGRFA
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:27.549Z")
public class PGRFA {
@JsonProperty("doi")
private String doi = null;
@JsonProperty("url")
private String url = null;
@JsonProperty("user")
private Location user = null;
@JsonProperty("M01")
private Location m01 = null;
@JsonProperty("M02")
private String m02 = null;
@JsonProperty("M03")
private String m03 = null;
@JsonProperty("M04")
private TermValue m04 = null;
@JsonProperty("M05")
private Names m05 = null;
@JsonProperty("R01")
private List r01 = null;
@JsonProperty("R03")
private TermValue r03 = null;
@JsonProperty("R04")
private Species r04 = null;
@JsonProperty("R05")
private List r05 = null;
@JsonProperty("R06")
private List r06 = null;
@JsonProperty("R07")
private TermValue r07 = null;
@JsonProperty("R08")
private String r08 = null;
@JsonProperty("A01")
private Location a01 = null;
@JsonProperty("A02")
private String a02 = null;
@JsonProperty("A03")
private String a03 = null;
@JsonProperty("A04")
private List a04 = null;
@JsonProperty("A05")
private String a05 = null;
@JsonProperty("A06")
private String a06 = null;
@JsonProperty("A07")
private String a07 = null;
@JsonProperty("A08")
private BigDecimal a08 = null;
@JsonProperty("A09")
private BigDecimal a09 = null;
@JsonProperty("A10")
private String a10 = null;
@JsonProperty("A11")
private TermValue a11 = null;
@JsonProperty("A12")
private TermValue a12 = null;
@JsonProperty("A13")
private BigDecimal a13 = null;
@JsonProperty("A14")
private String a14 = null;
@JsonProperty("A15")
private TermValue a15 = null;
@JsonProperty("A16")
private List a16 = null;
@JsonProperty("A17")
private String a17 = null;
@JsonProperty("info")
private UpdateInformation info = null;
public PGRFA doi(String doi) {
this.doi = doi;
return this;
}
/**
* Digital Object Identifier (DOI) associated to the PGRFA
* @return doi
**/
@ApiModelProperty(example = "10.0155/1", required = true, value = "Digital Object Identifier (DOI) associated to the PGRFA")
public String getDoi() {
return doi;
}
public void setDoi(String doi) {
this.doi = doi;
}
public PGRFA url(String url) {
this.url = url;
return this;
}
/**
* GLIS landing page for the PGRFA
* @return url
**/
@ApiModelProperty(value = "GLIS landing page for the PGRFA")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public PGRFA user(Location user) {
this.user = user;
return this;
}
/**
* GLIS user account who registered the PGRFA
* @return user
**/
@ApiModelProperty(value = "GLIS user account who registered the PGRFA")
public Location getUser() {
return user;
}
public void setUser(Location user) {
this.user = user;
}
public PGRFA m01(Location m01) {
this.m01 = m01;
return this;
}
/**
* The organization, individual or legal entity conserving the PGRFA
* @return m01
**/
@ApiModelProperty(value = "The organization, individual or legal entity conserving the PGRFA")
public Location getM01() {
return m01;
}
public void setM01(Location m01) {
this.m01 = m01;
}
public PGRFA m02(String m02) {
this.m02 = m02;
return this;
}
/**
* The identifier that is used to identify the PGRFA material to distinguish it from other PGRFA conserved by the holder. Precisely one identifier is specified for the material.
* @return m02
**/
@ApiModelProperty(value = "The identifier that is used to identify the PGRFA material to distinguish it from other PGRFA conserved by the holder. Precisely one identifier is specified for the material.")
public String getM02() {
return m02;
}
public void setM02(String m02) {
this.m02 = m02;
}
public PGRFA m03(String m03) {
this.m03 = m03;
return this;
}
/**
* Date on which PGRFA came into management of the holder of the PGRFA. Date fragments are also accepted, e.g. when only year or year and month are defined.
* @return m03
**/
@ApiModelProperty(value = "Date on which PGRFA came into management of the holder of the PGRFA. Date fragments are also accepted, e.g. when only year or year and month are defined.")
public String getM03() {
return m03;
}
public void setM03(String m03) {
this.m03 = m03;
}
public PGRFA m04(TermValue m04) {
this.m04 = m04;
return this;
}
/**
* Considering the date given for the previous field (Date), what event occurred on that date that resulted in the holder becoming the PGRFA holder.
* @return m04
**/
@ApiModelProperty(value = "Considering the date given for the previous field (Date), what event occurred on that date that resulted in the holder becoming the PGRFA holder.")
public TermValue getM04() {
return m04;
}
public void setM04(TermValue m04) {
this.m04 = m04;
}
public PGRFA m05(Names m05) {
this.m05 = m05;
return this;
}
/**
* Get m05
* @return m05
**/
@ApiModelProperty(value = "")
public Names getM05() {
return m05;
}
public void setM05(Names m05) {
this.m05 = m05;
}
public PGRFA r01(List r01) {
this.r01 = r01;
return this;
}
public PGRFA addR01Item(Target r01Item) {
if (this.r01 == null) {
this.r01 = new ArrayList<>();
}
this.r01.add(r01Item);
return this;
}
/**
* The URLs of websites where additional information on the PGRFA can be found. Each target is associated to one or more controlled vocabulary term code.
* @return r01
**/
@ApiModelProperty(value = "The URLs of websites where additional information on the PGRFA can be found. Each target is associated to one or more controlled vocabulary term code.")
public List getR01() {
return r01;
}
public void setR01(List r01) {
this.r01 = r01;
}
public PGRFA r03(TermValue r03) {
this.r03 = r03;
return this;
}
/**
* Describes the conditions of provenance of the PGRFA. MCPD equivalent is Biological status of accession [SAMPSTAT].
* @return r03
**/
@ApiModelProperty(value = "Describes the conditions of provenance of the PGRFA. MCPD equivalent is Biological status of accession [SAMPSTAT].")
public TermValue getR03() {
return r03;
}
public void setR03(TermValue r03) {
this.r03 = r03;
}
public PGRFA r04(Species r04) {
this.r04 = r04;
return this;
}
/**
* Species: Specific epithet of the scientific name Species authority: Authority for the specific epithet Subtaxa: Any additional infra-specific taxon: subspecies, variety, form, Group Subtaxon authority: Authority for the subtaxon
* @return r04
**/
@ApiModelProperty(value = "Species: Specific epithet of the scientific name Species authority: Authority for the specific epithet Subtaxa: Any additional infra-specific taxon: subspecies, variety, form, Group Subtaxon authority: Authority for the subtaxon")
public Species getR04() {
return r04;
}
public void setR04(Species r04) {
this.r04 = r04;
}
public PGRFA r05(List r05) {
this.r05 = r05;
return this;
}
public PGRFA addR05Item(String r05Item) {
if (this.r05 == null) {
this.r05 = new ArrayList<>();
}
this.r05.add(r05Item);
return this;
}
/**
* Registered names or other designations, such as the name of a landrace, traditional variety or modern cultivar, or some other name or designation used to identify a breeder’s selection or elite line or variety.
* @return r05
**/
@ApiModelProperty(value = "Registered names or other designations, such as the name of a landrace, traditional variety or modern cultivar, or some other name or designation used to identify a breeder’s selection or elite line or variety.")
public List getR05() {
return r05;
}
public void setR05(List r05) {
this.r05 = r05;
}
public PGRFA r06(List r06) {
this.r06 = r06;
return this;
}
public PGRFA addR06Item(OtherIdentifier r06Item) {
if (this.r06 == null) {
this.r06 = new ArrayList<>();
}
this.r06.add(r06Item);
return this;
}
/**
* Any other identifiers that have been assigned to identify the PGRFA material.
* @return r06
**/
@ApiModelProperty(value = "Any other identifiers that have been assigned to identify the PGRFA material.")
public List getR06() {
return r06;
}
public void setR06(List r06) {
this.r06 = r06;
}
public PGRFA r07(TermValue r07) {
this.r07 = r07;
return this;
}
/**
* The status of the PGRFA with regard to the Multilateral System of Access and Benefit-Sharing (MLS) of the International Treaty on Plant Genetic Resources for Food and Agriculture. * 0 Not available under the MLS * 1 Available under the MLS * 11 The sample is of a crop listed in Annex I and is under the management and control of a Contracting Party to the Treaty and declared to be in the public domain * 12 The sample is in a collection subject to an agreement concluded under Article 15 of the Treaty * 13 The holder received the sample with SMTA * 14 The holder has voluntarily placed the sample in the MLS * 15 The sample is derived from, and distinct from, material previously received from the MLS, is still under development and not yet ready for commercialization, and may be made available at the discretion of the developer
* @return r07
**/
@ApiModelProperty(value = "The status of the PGRFA with regard to the Multilateral System of Access and Benefit-Sharing (MLS) of the International Treaty on Plant Genetic Resources for Food and Agriculture. * 0 Not available under the MLS * 1 Available under the MLS * 11 The sample is of a crop listed in Annex I and is under the management and control of a Contracting Party to the Treaty and declared to be in the public domain * 12 The sample is in a collection subject to an agreement concluded under Article 15 of the Treaty * 13 The holder received the sample with SMTA * 14 The holder has voluntarily placed the sample in the MLS * 15 The sample is derived from, and distinct from, material previously received from the MLS, is still under development and not yet ready for commercialization, and may be made available at the discretion of the developer")
public TermValue getR07() {
return r07;
}
public void setR07(TermValue r07) {
this.r07 = r07;
}
public PGRFA r08(String r08) {
this.r08 = r08;
return this;
}
/**
* Describes whether the PGRFA is still available or permanently lost after being registered. Contains \"y\" or \"n\" string value.
* @return r08
**/
@ApiModelProperty(value = "Describes whether the PGRFA is still available or permanently lost after being registered. Contains \"y\" or \"n\" string value.")
public String getR08() {
return r08;
}
public void setR08(String r08) {
this.r08 = r08;
}
public PGRFA a01(Location a01) {
this.a01 = a01;
return this;
}
/**
* Location or name of the person or organization that provided the PGRFA to the holder.
* @return a01
**/
@ApiModelProperty(value = "Location or name of the person or organization that provided the PGRFA to the holder.")
public Location getA01() {
return a01;
}
public void setA01(Location a01) {
this.a01 = a01;
}
public PGRFA a02(String a02) {
this.a02 = a02;
return this;
}
/**
* Unique identifier used by the provider to identify the PGRFA under the provider’s management.
* @return a02
**/
@ApiModelProperty(value = "Unique identifier used by the provider to identify the PGRFA under the provider’s management.")
public String getA02() {
return a02;
}
public void setA02(String a02) {
this.a02 = a02;
}
public PGRFA a03(String a03) {
this.a03 = a03;
return this;
}
/**
* ISO-3166 apha-3 code of country in which the PGRFA material was either collected or bred or selected, or the first country in the known history of the PGRFA.
* @return a03
**/
@ApiModelProperty(value = "ISO-3166 apha-3 code of country in which the PGRFA material was either collected or bred or selected, or the first country in the known history of the PGRFA.")
public String getA03() {
return a03;
}
public void setA03(String a03) {
this.a03 = a03;
}
public PGRFA a04(List a04) {
this.a04 = a04;
return this;
}
public PGRFA addA04Item(Location a04Item) {
if (this.a04 == null) {
this.a04 = new ArrayList<>();
}
this.a04.add(a04Item);
return this;
}
/**
* Location of the home base of the person(s) or organization(s) that originally collected the PGRFA from in situ conditions.
* @return a04
**/
@ApiModelProperty(value = "Location of the home base of the person(s) or organization(s) that originally collected the PGRFA from in situ conditions.")
public List getA04() {
return a04;
}
public void setA04(List a04) {
this.a04 = a04;
}
public PGRFA a05(String a05) {
this.a05 = a05;
return this;
}
/**
* Identifier assigned by the collector(s) to the PGRFA collected. MCPD equivalent is Collecting number [COLLNUMB].
* @return a05
**/
@ApiModelProperty(value = "Identifier assigned by the collector(s) to the PGRFA collected. MCPD equivalent is Collecting number [COLLNUMB].")
public String getA05() {
return a05;
}
public void setA05(String a05) {
this.a05 = a05;
}
public PGRFA a06(String a06) {
this.a06 = a06;
return this;
}
/**
* The identifier, if any, of the mission during which the PGRFA was collected.
* @return a06
**/
@ApiModelProperty(value = "The identifier, if any, of the mission during which the PGRFA was collected.")
public String getA06() {
return a06;
}
public void setA06(String a06) {
this.a06 = a06;
}
public PGRFA a07(String a07) {
this.a07 = a07;
return this;
}
/**
* Location information below the country level that describes where the PGRFA was collected.
* @return a07
**/
@ApiModelProperty(value = "Location information below the country level that describes where the PGRFA was collected.")
public String getA07() {
return a07;
}
public void setA07(String a07) {
this.a07 = a07;
}
public PGRFA a08(BigDecimal a08) {
this.a08 = a08;
return this;
}
/**
* Latitude of the location where the PGRFA was collected in decimal degrees.
* @return a08
**/
@ApiModelProperty(value = "Latitude of the location where the PGRFA was collected in decimal degrees.")
public BigDecimal getA08() {
return a08;
}
public void setA08(BigDecimal a08) {
this.a08 = a08;
}
public PGRFA a09(BigDecimal a09) {
this.a09 = a09;
return this;
}
/**
* Longitude of the location where the PGRFA was collected in decimal degrees.
* @return a09
**/
@ApiModelProperty(value = "Longitude of the location where the PGRFA was collected in decimal degrees.")
public BigDecimal getA09() {
return a09;
}
public void setA09(BigDecimal a09) {
this.a09 = a09;
}
public PGRFA a10(String a10) {
this.a10 = a10;
return this;
}
/**
* Uncertainty of the latitude/longitude coordinates of the location where the PGRFA was collected.
* @return a10
**/
@ApiModelProperty(value = "Uncertainty of the latitude/longitude coordinates of the location where the PGRFA was collected.")
public String getA10() {
return a10;
}
public void setA10(String a10) {
this.a10 = a10;
}
public PGRFA a11(TermValue a11) {
this.a11 = a11;
return this;
}
/**
* The geodetic datum or spatial reference system upon which the latitude/longitude coordinates of the collecting location are based.
* @return a11
**/
@ApiModelProperty(value = "The geodetic datum or spatial reference system upon which the latitude/longitude coordinates of the collecting location are based.")
public TermValue getA11() {
return a11;
}
public void setA11(TermValue a11) {
this.a11 = a11;
}
public PGRFA a12(TermValue a12) {
this.a12 = a12;
return this;
}
/**
* The method used to estimate latitude/longitude coordinates of the location where the PGRFA was collected.
* @return a12
**/
@ApiModelProperty(value = "The method used to estimate latitude/longitude coordinates of the location where the PGRFA was collected.")
public TermValue getA12() {
return a12;
}
public void setA12(TermValue a12) {
this.a12 = a12;
}
public PGRFA a13(BigDecimal a13) {
this.a13 = a13;
return this;
}
/**
* Elevation of collecting site.
* @return a13
**/
@ApiModelProperty(value = "Elevation of collecting site.")
public BigDecimal getA13() {
return a13;
}
public void setA13(BigDecimal a13) {
this.a13 = a13;
}
public PGRFA a14(String a14) {
this.a14 = a14;
return this;
}
/**
* Date on which the PGRFA was collected. Partial dates are allowed (YYYY-MM?-DD?).
* @return a14
**/
@ApiModelProperty(value = "Date on which the PGRFA was collected. Partial dates are allowed (YYYY-MM?-DD?).")
public String getA14() {
return a14;
}
public void setA14(String a14) {
this.a14 = a14;
}
public PGRFA a15(TermValue a15) {
this.a15 = a15;
return this;
}
/**
* A description of the nature of the location where the PGRFA was collected.
* @return a15
**/
@ApiModelProperty(value = "A description of the nature of the location where the PGRFA was collected.")
public TermValue getA15() {
return a15;
}
public void setA15(TermValue a15) {
this.a15 = a15;
}
public PGRFA a16(List a16) {
this.a16 = a16;
return this;
}
public PGRFA addA16Item(Location a16Item) {
if (this.a16 == null) {
this.a16 = new ArrayList<>();
}
this.a16.add(a16Item);
return this;
}
/**
* Location where the material was bred.
* @return a16
**/
@ApiModelProperty(value = "Location where the material was bred.")
public List getA16() {
return a16;
}
public void setA16(List a16) {
this.a16 = a16;
}
public PGRFA a17(String a17) {
this.a17 = a17;
return this;
}
/**
* The pedigree (genealogy) or other description of the ancestry of the PGRFA and how it was bred.
* @return a17
**/
@ApiModelProperty(value = "The pedigree (genealogy) or other description of the ancestry of the PGRFA and how it was bred.")
public String getA17() {
return a17;
}
public void setA17(String a17) {
this.a17 = a17;
}
public PGRFA info(UpdateInformation info) {
this.info = info;
return this;
}
/**
* Get info
* @return info
**/
@ApiModelProperty(value = "")
public UpdateInformation getInfo() {
return info;
}
public void setInfo(UpdateInformation info) {
this.info = info;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PGRFA PGRFA = (PGRFA) o;
return Objects.equals(this.doi, PGRFA.doi) &&
Objects.equals(this.url, PGRFA.url) &&
Objects.equals(this.user, PGRFA.user) &&
Objects.equals(this.m01, PGRFA.m01) &&
Objects.equals(this.m02, PGRFA.m02) &&
Objects.equals(this.m03, PGRFA.m03) &&
Objects.equals(this.m04, PGRFA.m04) &&
Objects.equals(this.m05, PGRFA.m05) &&
Objects.equals(this.r01, PGRFA.r01) &&
Objects.equals(this.r03, PGRFA.r03) &&
Objects.equals(this.r04, PGRFA.r04) &&
Objects.equals(this.r05, PGRFA.r05) &&
Objects.equals(this.r06, PGRFA.r06) &&
Objects.equals(this.r07, PGRFA.r07) &&
Objects.equals(this.r08, PGRFA.r08) &&
Objects.equals(this.a01, PGRFA.a01) &&
Objects.equals(this.a02, PGRFA.a02) &&
Objects.equals(this.a03, PGRFA.a03) &&
Objects.equals(this.a04, PGRFA.a04) &&
Objects.equals(this.a05, PGRFA.a05) &&
Objects.equals(this.a06, PGRFA.a06) &&
Objects.equals(this.a07, PGRFA.a07) &&
Objects.equals(this.a08, PGRFA.a08) &&
Objects.equals(this.a09, PGRFA.a09) &&
Objects.equals(this.a10, PGRFA.a10) &&
Objects.equals(this.a11, PGRFA.a11) &&
Objects.equals(this.a12, PGRFA.a12) &&
Objects.equals(this.a13, PGRFA.a13) &&
Objects.equals(this.a14, PGRFA.a14) &&
Objects.equals(this.a15, PGRFA.a15) &&
Objects.equals(this.a16, PGRFA.a16) &&
Objects.equals(this.a17, PGRFA.a17) &&
Objects.equals(this.info, PGRFA.info);
}
@Override
public int hashCode() {
return Objects.hash(doi, url, user, m01, m02, m03, m04, m05, r01, r03, r04, r05, r06, r07, r08, a01, a02, a03, a04, a05, a06, a07, a08, a09, a10, a11, a12, a13, a14, a15, a16, a17, info);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PGRFA {\n");
sb.append(" doi: ").append(toIndentedString(doi)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" m01: ").append(toIndentedString(m01)).append("\n");
sb.append(" m02: ").append(toIndentedString(m02)).append("\n");
sb.append(" m03: ").append(toIndentedString(m03)).append("\n");
sb.append(" m04: ").append(toIndentedString(m04)).append("\n");
sb.append(" m05: ").append(toIndentedString(m05)).append("\n");
sb.append(" r01: ").append(toIndentedString(r01)).append("\n");
sb.append(" r03: ").append(toIndentedString(r03)).append("\n");
sb.append(" r04: ").append(toIndentedString(r04)).append("\n");
sb.append(" r05: ").append(toIndentedString(r05)).append("\n");
sb.append(" r06: ").append(toIndentedString(r06)).append("\n");
sb.append(" r07: ").append(toIndentedString(r07)).append("\n");
sb.append(" r08: ").append(toIndentedString(r08)).append("\n");
sb.append(" a01: ").append(toIndentedString(a01)).append("\n");
sb.append(" a02: ").append(toIndentedString(a02)).append("\n");
sb.append(" a03: ").append(toIndentedString(a03)).append("\n");
sb.append(" a04: ").append(toIndentedString(a04)).append("\n");
sb.append(" a05: ").append(toIndentedString(a05)).append("\n");
sb.append(" a06: ").append(toIndentedString(a06)).append("\n");
sb.append(" a07: ").append(toIndentedString(a07)).append("\n");
sb.append(" a08: ").append(toIndentedString(a08)).append("\n");
sb.append(" a09: ").append(toIndentedString(a09)).append("\n");
sb.append(" a10: ").append(toIndentedString(a10)).append("\n");
sb.append(" a11: ").append(toIndentedString(a11)).append("\n");
sb.append(" a12: ").append(toIndentedString(a12)).append("\n");
sb.append(" a13: ").append(toIndentedString(a13)).append("\n");
sb.append(" a14: ").append(toIndentedString(a14)).append("\n");
sb.append(" a15: ").append(toIndentedString(a15)).append("\n");
sb.append(" a16: ").append(toIndentedString(a16)).append("\n");
sb.append(" a17: ").append(toIndentedString(a17)).append("\n");
sb.append(" info: ").append(toIndentedString(info)).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 ");
}
}