io.logicdrop.openapi.models.FileResult 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.time.OffsetDateTime;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* FileResult
*/
@JsonPropertyOrder({
FileResult.JSON_PROPERTY_NAME,
FileResult.JSON_PROPERTY_PATH,
FileResult.JSON_PROPERTY_DATE,
FileResult.JSON_PROPERTY_EXTENSION,
FileResult.JSON_PROPERTY_TYPE,
FileResult.JSON_PROPERTY_SIZE,
FileResult.JSON_PROPERTY_FILENAME,
FileResult.JSON_PROPERTY_FOLDERS,
FileResult.JSON_PROPERTY_SOURCE
})
public class FileResult {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public static final String JSON_PROPERTY_PATH = "path";
private String path;
public static final String JSON_PROPERTY_DATE = "date";
private OffsetDateTime date;
public static final String JSON_PROPERTY_EXTENSION = "extension";
private String extension;
public static final String JSON_PROPERTY_TYPE = "type";
private String type;
public static final String JSON_PROPERTY_SIZE = "size";
private Long size;
public static final String JSON_PROPERTY_FILENAME = "filename";
private String filename;
public static final String JSON_PROPERTY_FOLDERS = "folders";
private String folders;
public static final String JSON_PROPERTY_SOURCE = "source";
private String source;
/**
* Get name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() {
return name;
}
/**
* Get path
* @return path
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PATH)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPath() {
return path;
}
/**
* Get date
* @return date
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDate() {
return date;
}
/**
* Get extension
* @return extension
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EXTENSION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getExtension() {
return extension;
}
/**
* Get type
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() {
return type;
}
/**
* Get size
* @return size
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SIZE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getSize() {
return size;
}
/**
* Get filename
* @return filename
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILENAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFilename() {
return filename;
}
/**
* Get folders
* @return folders
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOLDERS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFolders() {
return folders;
}
public FileResult 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FileResult fileResult = (FileResult) o;
return Objects.equals(this.name, fileResult.name) &&
Objects.equals(this.path, fileResult.path) &&
Objects.equals(this.date, fileResult.date) &&
Objects.equals(this.extension, fileResult.extension) &&
Objects.equals(this.type, fileResult.type) &&
Objects.equals(this.size, fileResult.size) &&
Objects.equals(this.filename, fileResult.filename) &&
Objects.equals(this.folders, fileResult.folders) &&
Objects.equals(this.source, fileResult.source);
}
@Override
public int hashCode() {
return Objects.hash(name, path, date, extension, type, size, filename, folders, source);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FileResult {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" path: ").append(toIndentedString(path)).append("\n");
sb.append(" date: ").append(toIndentedString(date)).append("\n");
sb.append(" extension: ").append(toIndentedString(extension)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" size: ").append(toIndentedString(size)).append("\n");
sb.append(" filename: ").append(toIndentedString(filename)).append("\n");
sb.append(" folders: ").append(toIndentedString(folders)).append("\n");
sb.append(" source: ").append(toIndentedString(source)).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 ");
}
}