de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/PredictiveModelGeneralInformation.java
/*
* 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;
/**
* PredictiveModelGeneralInformation
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class PredictiveModelGeneralInformation {
@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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation author(List<Contact> author) {
this.author = author;
return this;
}
public PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation creator(List<Contact> creator) {
this.creator = creator;
return this;
}
public PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation modificationDate(List<LocalDate> modificationDate) {
this.modificationDate = modificationDate;
return this;
}
public PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation reference(List<Reference> reference) {
this.reference = reference;
return this;
}
public PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation languageWrittenIn(String languageWrittenIn) {
this.languageWrittenIn = languageWrittenIn;
return this;
}
/**
* Get languageWrittenIn
* @return languageWrittenIn
**/
@ApiModelProperty(required = true, value = "")
public String getLanguageWrittenIn() {
return languageWrittenIn;
}
public void setLanguageWrittenIn(String languageWrittenIn) {
this.languageWrittenIn = languageWrittenIn;
}
public PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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 PredictiveModelGeneralInformation 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;
}
PredictiveModelGeneralInformation predictiveModelGeneralInformation = (PredictiveModelGeneralInformation) o;
return Objects.equals(this.name, predictiveModelGeneralInformation.name) &&
Objects.equals(this.source, predictiveModelGeneralInformation.source) &&
Objects.equals(this.identifier, predictiveModelGeneralInformation.identifier) &&
Objects.equals(this.author, predictiveModelGeneralInformation.author) &&
Objects.equals(this.creator, predictiveModelGeneralInformation.creator) &&
Objects.equals(this.creationDate, predictiveModelGeneralInformation.creationDate) &&
Objects.equals(this.modificationDate, predictiveModelGeneralInformation.modificationDate) &&
Objects.equals(this.rights, predictiveModelGeneralInformation.rights) &&
Objects.equals(this.availability, predictiveModelGeneralInformation.availability) &&
Objects.equals(this.url, predictiveModelGeneralInformation.url) &&
Objects.equals(this.format, predictiveModelGeneralInformation.format) &&
Objects.equals(this.reference, predictiveModelGeneralInformation.reference) &&
Objects.equals(this.language, predictiveModelGeneralInformation.language) &&
Objects.equals(this.software, predictiveModelGeneralInformation.software) &&
Objects.equals(this.languageWrittenIn, predictiveModelGeneralInformation.languageWrittenIn) &&
Objects.equals(this.modelCategory, predictiveModelGeneralInformation.modelCategory) &&
Objects.equals(this.status, predictiveModelGeneralInformation.status) &&
Objects.equals(this.objective, predictiveModelGeneralInformation.objective) &&
Objects.equals(this.description, predictiveModelGeneralInformation.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 PredictiveModelGeneralInformation {\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 ");
}
}