All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.genesys.glis.v1.model.UpdateTargets Maven / Gradle / Ivy

Go to download

API client for the Global Information System for plant genetic resources for food and agriculture (PGRFA) with Spring REST template

There is a newer version: 1.3
Show 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.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.util.ArrayList;
import java.util.List;

/**
 * UpdateTargets
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-09-11T09:49:15.074Z")
public class UpdateTargets {
  @JsonProperty("kws")
  private List kws = null;

  @JsonProperty("dois")
  private List dois = null;

  public UpdateTargets kws(List kws) {
    this.kws = kws;
    return this;
  }

  public UpdateTargets addKwsItem(String kwsItem) {
    if (this.kws == null) {
      this.kws = new ArrayList<>();
    }
    this.kws.add(kwsItem);
    return this;
  }

   /**
   * Get kws
   * @return kws
  **/
  @ApiModelProperty(value = "")
  public List getKws() {
    return kws;
  }

  public void setKws(List kws) {
    this.kws = kws;
  }

  public UpdateTargets dois(List dois) {
    this.dois = dois;
    return this;
  }

  public UpdateTargets addDoisItem(String doisItem) {
    if (this.dois == null) {
      this.dois = new ArrayList<>();
    }
    this.dois.add(doisItem);
    return this;
  }

   /**
   * Get dois
   * @return dois
  **/
  @ApiModelProperty(value = "")
  public List getDois() {
    return dois;
  }

  public void setDois(List dois) {
    this.dois = dois;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    UpdateTargets updateTargets = (UpdateTargets) o;
    return Objects.equals(this.kws, updateTargets.kws) &&
        Objects.equals(this.dois, updateTargets.dois);
  }

  @Override
  public int hashCode() {
    return Objects.hash(kws, dois);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class UpdateTargets {\n");
    
    sb.append("    kws: ").append(toIndentedString(kws)).append("\n");
    sb.append("    dois: ").append(toIndentedString(dois)).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 - 2024 Weber Informatics LLC | Privacy Policy