com.databricks.sdk.service.workspace.Delete Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.workspace;
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 Delete {
/** The absolute path of the notebook or directory. */
@JsonProperty("path")
private String path;
/**
* The flag that specifies whether to delete the object recursively. It is `false` by default.
* Please note this deleting directory is not atomic. If it fails in the middle, some of objects
* under this directory may be deleted and cannot be undone.
*/
@JsonProperty("recursive")
private Boolean recursive;
public Delete setPath(String path) {
this.path = path;
return this;
}
public String getPath() {
return path;
}
public Delete setRecursive(Boolean recursive) {
this.recursive = recursive;
return this;
}
public Boolean getRecursive() {
return recursive;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
Delete that = (Delete) o;
return Objects.equals(path, that.path) && Objects.equals(recursive, that.recursive);
}
@Override
public int hashCode() {
return Objects.hash(path, recursive);
}
@Override
public String toString() {
return new ToStringer(Delete.class).add("path", path).add("recursive", recursive).toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy