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