com.databricks.sdk.service.files.FileInfo Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.files;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class FileInfo {
/** The length of the file in bytes. This field is omitted for directories. */
@JsonProperty("file_size")
private Long fileSize;
/** True if the path is a directory. */
@JsonProperty("is_dir")
private Boolean isDir;
/** Last modification time of given file in milliseconds since epoch. */
@JsonProperty("modification_time")
private Long modificationTime;
/** The absolute path of the file or directory. */
@JsonProperty("path")
private String path;
public FileInfo setFileSize(Long fileSize) {
this.fileSize = fileSize;
return this;
}
public Long getFileSize() {
return fileSize;
}
public FileInfo setIsDir(Boolean isDir) {
this.isDir = isDir;
return this;
}
public Boolean getIsDir() {
return isDir;
}
public FileInfo setModificationTime(Long modificationTime) {
this.modificationTime = modificationTime;
return this;
}
public Long getModificationTime() {
return modificationTime;
}
public FileInfo setPath(String path) {
this.path = path;
return this;
}
public String getPath() {
return path;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FileInfo that = (FileInfo) o;
return Objects.equals(fileSize, that.fileSize)
&& Objects.equals(isDir, that.isDir)
&& Objects.equals(modificationTime, that.modificationTime)
&& Objects.equals(path, that.path);
}
@Override
public int hashCode() {
return Objects.hash(fileSize, isDir, modificationTime, path);
}
@Override
public String toString() {
return new ToStringer(FileInfo.class)
.add("fileSize", fileSize)
.add("isDir", isDir)
.add("modificationTime", modificationTime)
.add("path", path)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy