org.genesys.glis.v1.model.UpdateInformation 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.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.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.time.OffsetDateTime;
/**
* UpdateInformation
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T09:49:15.074Z")
public class UpdateInformation {
@JsonProperty("modified")
private OffsetDateTime modified = null;
@JsonProperty("doiregistered")
private OffsetDateTime doiregistered = null;
public UpdateInformation modified(OffsetDateTime modified) {
this.modified = modified;
return this;
}
/**
* The date of last change.
* @return modified
**/
@ApiModelProperty(value = "The date of last change.")
public OffsetDateTime getModified() {
return modified;
}
public void setModified(OffsetDateTime modified) {
this.modified = modified;
}
public UpdateInformation doiregistered(OffsetDateTime doiregistered) {
this.doiregistered = doiregistered;
return this;
}
/**
* The date of DOI registration to the DataCite registry. If this element is missing or null, the DOI has not been registered yet and should therefore not be used in publications
* @return doiregistered
**/
@ApiModelProperty(value = "The date of DOI registration to the DataCite registry. If this element is missing or null, the DOI has not been registered yet and should therefore not be used in publications")
public OffsetDateTime getDoiregistered() {
return doiregistered;
}
public void setDoiregistered(OffsetDateTime doiregistered) {
this.doiregistered = doiregistered;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
UpdateInformation updateInformation = (UpdateInformation) o;
return Objects.equals(this.modified, updateInformation.modified) &&
Objects.equals(this.doiregistered, updateInformation.doiregistered);
}
@Override
public int hashCode() {
return Objects.hash(modified, doiregistered);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class UpdateInformation {\n");
sb.append(" modified: ").append(toIndentedString(modified)).append("\n");
sb.append(" doiregistered: ").append(toIndentedString(doiregistered)).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 ");
}
}