org.genesys.glis.v1.model.Relationship 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;
/**
* Relationship
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:00.232Z")
public class Relationship {
@JsonProperty("subject")
private String subject = null;
@JsonProperty("oper")
private String oper = null;
@JsonProperty("object")
private String object = null;
public Relationship subject(String subject) {
this.subject = subject;
return this;
}
/**
* The DOI of the PGRFA subject that was provided as search value
* @return subject
**/
@ApiModelProperty(value = "The DOI of the PGRFA subject that was provided as search value")
public String getSubject() {
return subject;
}
public void setSubject(String subject) {
this.subject = subject;
}
public Relationship oper(String oper) {
this.oper = oper;
return this;
}
/**
* The code of the relation operator.
* @return oper
**/
@ApiModelProperty(value = "The code of the relation operator.")
public String getOper() {
return oper;
}
public void setOper(String oper) {
this.oper = oper;
}
public Relationship object(String object) {
this.object = object;
return this;
}
/**
* The DOI of the PGRFA related to subject through oper
* @return object
**/
@ApiModelProperty(value = "The DOI of the PGRFA related to subject through oper")
public String getObject() {
return object;
}
public void setObject(String object) {
this.object = object;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Relationship relationship = (Relationship) o;
return Objects.equals(this.subject, relationship.subject) &&
Objects.equals(this.oper, relationship.oper) &&
Objects.equals(this.object, relationship.object);
}
@Override
public int hashCode() {
return Objects.hash(subject, oper, object);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Relationship {\n");
sb.append(" subject: ").append(toIndentedString(subject)).append("\n");
sb.append(" oper: ").append(toIndentedString(oper)).append("\n");
sb.append(" object: ").append(toIndentedString(object)).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 ");
}
}