
org.genesys.glis.v1.model.Target Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glis-client Show documentation
Show all versions of glis-client Show documentation
API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA)
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.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.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
/**
* Target
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2017-06-22T13:15:13.014Z")
public class Target {
@SerializedName("url")
private String url = null;
@SerializedName("kws")
private List kws = new ArrayList();
public Target url(String url) {
this.url = url;
return this;
}
/**
* Get url
* @return url
**/
@ApiModelProperty(example = "null", value = "")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public Target kws(List kws) {
this.kws = kws;
return this;
}
public Target addKwsItem(String kwsItem) {
this.kws.add(kwsItem);
return this;
}
/**
* Get kws
* @return kws
**/
@ApiModelProperty(example = "null", value = "")
public List getKws() {
return kws;
}
public void setKws(List kws) {
this.kws = kws;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Target target = (Target) o;
return Objects.equals(this.url, target.url) &&
Objects.equals(this.kws, target.kws);
}
@Override
public int hashCode() {
return Objects.hash(url, kws);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Target {\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" kws: ").append(toIndentedString(kws)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy