de.bund.bfr.knime.fsklab.metadata.model/gen/de/bund/bfr/metadata/swagger/DoseResponseModelGeneralInformation.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;
/**
* DoseResponseModelGeneralInformation
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-07-02T16:22:48.194+02:00")
public class DoseResponseModelGeneralInformation {
@SerializedName("modelName")
private String modelName = 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 = new ArrayList<Contact>();
@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 DoseResponseModelGeneralInformation modelName(String modelName) {
this.modelName = modelName;
return this;
}
/**
* Get modelName
* @return modelName
**/
@ApiModelProperty(required = true, value = "")
public String getModelName() {
return modelName;
}
public void setModelName(String modelName) {
this.modelName = modelName;
}
public DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation author(List<Contact> author) {
this.author = author;
return this;
}
public DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation creator(List<Contact> creator) {
this.creator = creator;
return this;
}
public DoseResponseModelGeneralInformation addCreatorItem(Contact creatorItem) {
this.creator.add(creatorItem);
return this;
}
/**
* Get creator
* @return creator
**/
@ApiModelProperty(required = true, value = "")
public List<Contact> getCreator() {
return creator;
}
public void setCreator(List<Contact> creator) {
this.creator = creator;
}
public DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation modificationDate(List<LocalDate> modificationDate) {
this.modificationDate = modificationDate;
return this;
}
public DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation reference(List<Reference> reference) {
this.reference = reference;
return this;
}
public DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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 DoseResponseModelGeneralInformation 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;
}
DoseResponseModelGeneralInformation doseResponseModelGeneralInformation = (DoseResponseModelGeneralInformation) o;
return Objects.equals(this.modelName, doseResponseModelGeneralInformation.modelName) &&
Objects.equals(this.source, doseResponseModelGeneralInformation.source) &&
Objects.equals(this.identifier, doseResponseModelGeneralInformation.identifier) &&
Objects.equals(this.author, doseResponseModelGeneralInformation.author) &&
Objects.equals(this.creator, doseResponseModelGeneralInformation.creator) &&
Objects.equals(this.creationDate, doseResponseModelGeneralInformation.creationDate) &&
Objects.equals(this.modificationDate, doseResponseModelGeneralInformation.modificationDate) &&
Objects.equals(this.rights, doseResponseModelGeneralInformation.rights) &&
Objects.equals(this.availability, doseResponseModelGeneralInformation.availability) &&
Objects.equals(this.url, doseResponseModelGeneralInformation.url) &&
Objects.equals(this.format, doseResponseModelGeneralInformation.format) &&
Objects.equals(this.reference, doseResponseModelGeneralInformation.reference) &&
Objects.equals(this.language, doseResponseModelGeneralInformation.language) &&
Objects.equals(this.software, doseResponseModelGeneralInformation.software) &&
Objects.equals(this.languageWrittenIn, doseResponseModelGeneralInformation.languageWrittenIn) &&
Objects.equals(this.modelCategory, doseResponseModelGeneralInformation.modelCategory) &&
Objects.equals(this.status, doseResponseModelGeneralInformation.status) &&
Objects.equals(this.objective, doseResponseModelGeneralInformation.objective) &&
Objects.equals(this.description, doseResponseModelGeneralInformation.description);
}
@Override
public int hashCode() {
return Objects.hash(modelName, 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 DoseResponseModelGeneralInformation {\n");
sb.append(" modelName: ").append(toIndentedString(modelName)).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 ");
}
}