io.logicdrop.openapi.models.ImportExportResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sparks-openapi-models Show documentation
Show all versions of sparks-openapi-models Show documentation
Logicdrop Sparks OpenAPI client
/*
* Sparks OpenAPI
* Generated documentation for the Logicdrop Sparks API and OpenAPI clients. Logicdrop Sparks lets users build rules, analyze data, and automate documents. Use it to make decisions faster, generate documents better, and learn from your data. ### Documentation - [User Documentation](https://docs.logicdrop.com) ### Modules - [Sparks Compute](https://docs.logicdrop.com/rules/introduction) - [Sparks Decision Tables](https://docs.logicdrop.com/rules/authoring-decision-tables) - [Sparks Documents](https://docs.logicdrop.com/documents/introduction) ### Clients - [OpenAPI Clients](https://docs.logicdrop.com/development/sample-clients) ### Security - [Authorizing API Requests](https://docs.logicdrop.com/development/authorization)
*
* The version of the OpenAPI document: v_VERSION_, build# _BUILD_
* Contact: [email protected]
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package io.logicdrop.openapi.models;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
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.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* ImportExportResult
*/
@JsonPropertyOrder({
ImportExportResult.JSON_PROPERTY_SOURCE,
ImportExportResult.JSON_PROPERTY_FILENAME,
ImportExportResult.JSON_PROPERTY_FILES,
ImportExportResult.JSON_PROPERTY_ERRORS
})
public class ImportExportResult {
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
public static final String JSON_PROPERTY_FILENAME = "filename";
private String filename;
public static final String JSON_PROPERTY_FILES = "files";
private List files = null;
public static final String JSON_PROPERTY_ERRORS = "errors";
private Map errors = null;
public ImportExportResult source(String source) {
this.source = source;
return this;
}
/**
* Get source
* @return source
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SOURCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSource() {
return source;
}
public void setSource(String source) {
this.source = source;
}
public ImportExportResult filename(String filename) {
this.filename = filename;
return this;
}
/**
* Get filename
* @return filename
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILENAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFilename() {
return filename;
}
public void setFilename(String filename) {
this.filename = filename;
}
public ImportExportResult files(List files) {
this.files = files;
return this;
}
public ImportExportResult addFilesItem(String filesItem) {
if (this.files == null) {
this.files = new ArrayList<>();
}
this.files.add(filesItem);
return this;
}
/**
* Get files
* @return files
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getFiles() {
return files;
}
public void setFiles(List files) {
this.files = files;
}
public ImportExportResult errors(Map errors) {
this.errors = errors;
return this;
}
public ImportExportResult putErrorsItem(String key, String errorsItem) {
if (this.errors == null) {
this.errors = new HashMap<>();
}
this.errors.put(key, errorsItem);
return this;
}
/**
* Get errors
* @return errors
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERRORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map getErrors() {
return errors;
}
public void setErrors(Map errors) {
this.errors = errors;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ImportExportResult importExportResult = (ImportExportResult) o;
return Objects.equals(this.source, importExportResult.source) &&
Objects.equals(this.filename, importExportResult.filename) &&
Objects.equals(this.files, importExportResult.files) &&
Objects.equals(this.errors, importExportResult.errors);
}
@Override
public int hashCode() {
return Objects.hash(source, filename, files, errors);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ImportExportResult {\n");
sb.append(" source: ").append(toIndentedString(source)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
sb.append(" files: ").append(toIndentedString(files)).append("\n");
sb.append(" errors: ").append(toIndentedString(errors)).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 ");
}
}