org.genesys.glis.v1.model.UpdatedTarget 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;
/**
* UpdatedTarget
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:27.549Z")
public class UpdatedTarget {
@JsonProperty("doi")
private String doi = null;
@JsonProperty("result")
private String result = null;
@JsonProperty("msg")
private String msg = null;
public UpdatedTarget doi(String doi) {
this.doi = doi;
return this;
}
/**
* Get doi
* @return doi
**/
@ApiModelProperty(value = "")
public String getDoi() {
return doi;
}
public void setDoi(String doi) {
this.doi = doi;
}
public UpdatedTarget result(String result) {
this.result = result;
return this;
}
/**
* Get result
* @return result
**/
@ApiModelProperty(value = "")
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result;
}
public UpdatedTarget msg(String msg) {
this.msg = msg;
return this;
}
/**
* Get msg
* @return msg
**/
@ApiModelProperty(value = "")
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdatedTarget updatedTarget = (UpdatedTarget) o;
return Objects.equals(this.doi, updatedTarget.doi) &&
Objects.equals(this.result, updatedTarget.result) &&
Objects.equals(this.msg, updatedTarget.msg);
}
@Override
public int hashCode() {
return Objects.hash(doi, result, msg);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdatedTarget {\n");
sb.append(" doi: ").append(toIndentedString(doi)).append("\n");
sb.append(" result: ").append(toIndentedString(result)).append("\n");
sb.append(" msg: ").append(toIndentedString(msg)).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 ");
}
}