org.genesys.glis.v1.model.OtherIdentifier 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;
/**
* Other identifier of material
*/
@ApiModel(description = "Other identifier of material")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-10-26T22:59:27.549Z")
public class OtherIdentifier {
@JsonProperty("type")
private String type = null;
@JsonProperty("value")
private String value = null;
public OtherIdentifier type(String type) {
this.type = type;
return this;
}
/**
* One of 'genesysid', 'accnum', etc.
* @return type
**/
@ApiModelProperty(value = "One of 'genesysid', 'accnum', etc.")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public OtherIdentifier value(String value) {
this.value = value;
return this;
}
/**
* Get value
* @return value
**/
@ApiModelProperty(value = "")
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
OtherIdentifier otherIdentifier = (OtherIdentifier) o;
return Objects.equals(this.type, otherIdentifier.type) &&
Objects.equals(this.value, otherIdentifier.value);
}
@Override
public int hashCode() {
return Objects.hash(type, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class OtherIdentifier {\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}