SiLeBAT/FSK-Lab

View on GitHub
de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/GenericModelGeneralInformation.java

Summary

Maintainability
F
6 days
Test Coverage
/*
 * RAKIP Generic model
 * TODO
 *
 * OpenAPI spec version: 1.0.4
 * 
 *
 * 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 de.bund.bfr.metadata.swagger;

import java.util.Objects;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import de.bund.bfr.metadata.swagger.Contact;
import de.bund.bfr.metadata.swagger.ModelCategory;
import de.bund.bfr.metadata.swagger.Reference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.threeten.bp.LocalDate;

/**
 * GenericModelGeneralInformation
 */
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class GenericModelGeneralInformation {
  @SerializedName("name")
  private String name = null;

  @SerializedName("source")
  private String source = null;

  @SerializedName("identifier")
  private String identifier = null;

  @SerializedName("author")
  private List<Contact> author = null;

  @SerializedName("creator")
  private List<Contact> creator = null;

  @SerializedName("creationDate")
  private LocalDate creationDate = null;

  @SerializedName("modificationDate")
  private List<LocalDate> modificationDate = null;

  @SerializedName("rights")
  private String rights = null;

  @SerializedName("availability")
  private String availability = null;

  @SerializedName("url")
  private String url = null;

  @SerializedName("format")
  private String format = null;

  @SerializedName("reference")
  private List<Reference> reference = new ArrayList<Reference>();

  @SerializedName("language")
  private String language = null;

  @SerializedName("software")
  private String software = null;

  @SerializedName("languageWrittenIn")
  private String languageWrittenIn = null;

  @SerializedName("modelCategory")
  private ModelCategory modelCategory = null;

  @SerializedName("status")
  private String status = null;

  @SerializedName("objective")
  private String objective = null;

  @SerializedName("description")
  private String description = null;

  public GenericModelGeneralInformation name(String name) {
    this.name = name;
    return this;
  }

   /**
   * Get name
   * @return name
  **/
  @ApiModelProperty(required = true, value = "")
  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public GenericModelGeneralInformation source(String source) {
    this.source = source;
    return this;
  }

   /**
   * Get source
   * @return source
  **/
  @ApiModelProperty(value = "")
  public String getSource() {
    return source;
  }

  public void setSource(String source) {
    this.source = source;
  }

  public GenericModelGeneralInformation identifier(String identifier) {
    this.identifier = identifier;
    return this;
  }

   /**
   * Get identifier
   * @return identifier
  **/
  @ApiModelProperty(required = true, value = "")
  public String getIdentifier() {
    return identifier;
  }

  public void setIdentifier(String identifier) {
    this.identifier = identifier;
  }

  public GenericModelGeneralInformation author(List<Contact> author) {
    this.author = author;
    return this;
  }

  public GenericModelGeneralInformation addAuthorItem(Contact authorItem) {
    if (this.author == null) {
      this.author = new ArrayList<Contact>();
    }
    this.author.add(authorItem);
    return this;
  }

   /**
   * Get author
   * @return author
  **/
  @ApiModelProperty(value = "")
  public List<Contact> getAuthor() {
    return author;
  }

  public void setAuthor(List<Contact> author) {
    this.author = author;
  }

  public GenericModelGeneralInformation creator(List<Contact> creator) {
    this.creator = creator;
    return this;
  }

  public GenericModelGeneralInformation addCreatorItem(Contact creatorItem) {
    if (this.creator == null) {
      this.creator = new ArrayList<Contact>();
    }
    this.creator.add(creatorItem);
    return this;
  }

   /**
   * Get creator
   * @return creator
  **/
  @ApiModelProperty(value = "")
  public List<Contact> getCreator() {
    return creator;
  }

  public void setCreator(List<Contact> creator) {
    this.creator = creator;
  }

  public GenericModelGeneralInformation creationDate(LocalDate creationDate) {
    this.creationDate = creationDate;
    return this;
  }

   /**
   * Get creationDate
   * @return creationDate
  **/
  @ApiModelProperty(required = true, value = "")
  public LocalDate getCreationDate() {
    return creationDate;
  }

  public void setCreationDate(LocalDate creationDate) {
    this.creationDate = creationDate;
  }

  public GenericModelGeneralInformation modificationDate(List<LocalDate> modificationDate) {
    this.modificationDate = modificationDate;
    return this;
  }

  public GenericModelGeneralInformation addModificationDateItem(LocalDate modificationDateItem) {
    if (this.modificationDate == null) {
      this.modificationDate = new ArrayList<LocalDate>();
    }
    this.modificationDate.add(modificationDateItem);
    return this;
  }

   /**
   * Get modificationDate
   * @return modificationDate
  **/
  @ApiModelProperty(value = "")
  public List<LocalDate> getModificationDate() {
    return modificationDate;
  }

  public void setModificationDate(List<LocalDate> modificationDate) {
    this.modificationDate = modificationDate;
  }

  public GenericModelGeneralInformation rights(String rights) {
    this.rights = rights;
    return this;
  }

   /**
   * Get rights
   * @return rights
  **/
  @ApiModelProperty(required = true, value = "")
  public String getRights() {
    return rights;
  }

  public void setRights(String rights) {
    this.rights = rights;
  }

  public GenericModelGeneralInformation availability(String availability) {
    this.availability = availability;
    return this;
  }

   /**
   * Get availability
   * @return availability
  **/
  @ApiModelProperty(value = "")
  public String getAvailability() {
    return availability;
  }

  public void setAvailability(String availability) {
    this.availability = availability;
  }

  public GenericModelGeneralInformation url(String url) {
    this.url = url;
    return this;
  }

   /**
   * Get url
   * @return url
  **/
  @ApiModelProperty(value = "")
  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public GenericModelGeneralInformation format(String format) {
    this.format = format;
    return this;
  }

   /**
   * Get format
   * @return format
  **/
  @ApiModelProperty(value = "")
  public String getFormat() {
    return format;
  }

  public void setFormat(String format) {
    this.format = format;
  }

  public GenericModelGeneralInformation reference(List<Reference> reference) {
    this.reference = reference;
    return this;
  }

  public GenericModelGeneralInformation addReferenceItem(Reference referenceItem) {
    this.reference.add(referenceItem);
    return this;
  }

   /**
   * Get reference
   * @return reference
  **/
  @ApiModelProperty(required = true, value = "")
  public List<Reference> getReference() {
    return reference;
  }

  public void setReference(List<Reference> reference) {
    this.reference = reference;
  }

  public GenericModelGeneralInformation language(String language) {
    this.language = language;
    return this;
  }

   /**
   * Get language
   * @return language
  **/
  @ApiModelProperty(value = "")
  public String getLanguage() {
    return language;
  }

  public void setLanguage(String language) {
    this.language = language;
  }

  public GenericModelGeneralInformation software(String software) {
    this.software = software;
    return this;
  }

   /**
   * Get software
   * @return software
  **/
  @ApiModelProperty(value = "")
  public String getSoftware() {
    return software;
  }

  public void setSoftware(String software) {
    this.software = software;
  }

  public GenericModelGeneralInformation languageWrittenIn(String languageWrittenIn) {
    this.languageWrittenIn = languageWrittenIn;
    return this;
  }

   /**
   * Get languageWrittenIn
   * @return languageWrittenIn
  **/
  @ApiModelProperty(value = "")
  public String getLanguageWrittenIn() {
    return languageWrittenIn;
  }

  public void setLanguageWrittenIn(String languageWrittenIn) {
    this.languageWrittenIn = languageWrittenIn;
  }

  public GenericModelGeneralInformation modelCategory(ModelCategory modelCategory) {
    this.modelCategory = modelCategory;
    return this;
  }

   /**
   * Get modelCategory
   * @return modelCategory
  **/
  @ApiModelProperty(value = "")
  public ModelCategory getModelCategory() {
    return modelCategory;
  }

  public void setModelCategory(ModelCategory modelCategory) {
    this.modelCategory = modelCategory;
  }

  public GenericModelGeneralInformation status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @ApiModelProperty(value = "")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public GenericModelGeneralInformation objective(String objective) {
    this.objective = objective;
    return this;
  }

   /**
   * Get objective
   * @return objective
  **/
  @ApiModelProperty(value = "")
  public String getObjective() {
    return objective;
  }

  public void setObjective(String objective) {
    this.objective = objective;
  }

  public GenericModelGeneralInformation description(String description) {
    this.description = description;
    return this;
  }

   /**
   * Get description
   * @return description
  **/
  @ApiModelProperty(value = "")
  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    GenericModelGeneralInformation genericModelGeneralInformation = (GenericModelGeneralInformation) o;
    return Objects.equals(this.name, genericModelGeneralInformation.name) &&
        Objects.equals(this.source, genericModelGeneralInformation.source) &&
        Objects.equals(this.identifier, genericModelGeneralInformation.identifier) &&
        Objects.equals(this.author, genericModelGeneralInformation.author) &&
        Objects.equals(this.creator, genericModelGeneralInformation.creator) &&
        Objects.equals(this.creationDate, genericModelGeneralInformation.creationDate) &&
        Objects.equals(this.modificationDate, genericModelGeneralInformation.modificationDate) &&
        Objects.equals(this.rights, genericModelGeneralInformation.rights) &&
        Objects.equals(this.availability, genericModelGeneralInformation.availability) &&
        Objects.equals(this.url, genericModelGeneralInformation.url) &&
        Objects.equals(this.format, genericModelGeneralInformation.format) &&
        Objects.equals(this.reference, genericModelGeneralInformation.reference) &&
        Objects.equals(this.language, genericModelGeneralInformation.language) &&
        Objects.equals(this.software, genericModelGeneralInformation.software) &&
        Objects.equals(this.languageWrittenIn, genericModelGeneralInformation.languageWrittenIn) &&
        Objects.equals(this.modelCategory, genericModelGeneralInformation.modelCategory) &&
        Objects.equals(this.status, genericModelGeneralInformation.status) &&
        Objects.equals(this.objective, genericModelGeneralInformation.objective) &&
        Objects.equals(this.description, genericModelGeneralInformation.description);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, source, identifier, author, creator, creationDate, modificationDate, rights, availability, url, format, reference, language, software, languageWrittenIn, modelCategory, status, objective, description);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GenericModelGeneralInformation {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    source: ").append(toIndentedString(source)).append("\n");
    sb.append("    identifier: ").append(toIndentedString(identifier)).append("\n");
    sb.append("    author: ").append(toIndentedString(author)).append("\n");
    sb.append("    creator: ").append(toIndentedString(creator)).append("\n");
    sb.append("    creationDate: ").append(toIndentedString(creationDate)).append("\n");
    sb.append("    modificationDate: ").append(toIndentedString(modificationDate)).append("\n");
    sb.append("    rights: ").append(toIndentedString(rights)).append("\n");
    sb.append("    availability: ").append(toIndentedString(availability)).append("\n");
    sb.append("    url: ").append(toIndentedString(url)).append("\n");
    sb.append("    format: ").append(toIndentedString(format)).append("\n");
    sb.append("    reference: ").append(toIndentedString(reference)).append("\n");
    sb.append("    language: ").append(toIndentedString(language)).append("\n");
    sb.append("    software: ").append(toIndentedString(software)).append("\n");
    sb.append("    languageWrittenIn: ").append(toIndentedString(languageWrittenIn)).append("\n");
    sb.append("    modelCategory: ").append(toIndentedString(modelCategory)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    objective: ").append(toIndentedString(objective)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).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    ");
  }

}