All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.databricks.sdk.service.workspace.Import 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 Import {
  /**
   * The base64-encoded content. This has a limit of 10 MB.
   *
   * 

If the limit (10MB) is exceeded, exception with error code **MAX_NOTEBOOK_SIZE_EXCEEDED** * will be thrown. This parameter might be absent, and instead a posted file will be used. */ @JsonProperty("content") private String content; /** * This specifies the format of the file to be imported. By default, this is `SOURCE`. * *

If using `AUTO` the item is imported or exported as either a workspace file or a * notebook,depending on an analysis of the item’s extension and the header content provided in * the request. The value is case sensitive. In addition, if the item is imported as a notebook, * then the item’s extension is automatically removed. */ @JsonProperty("format") private ExportFormat format; /** The language of the object. This value is set only if the object type is `NOTEBOOK`. */ @JsonProperty("language") private Language language; /** * The flag that specifies whether to overwrite existing object. It is `false` by default. For * `DBC` format, `overwrite` is not supported since it may contain a directory. */ @JsonProperty("overwrite") private Boolean overwrite; /** * The absolute path of the object or directory. Importing a directory is only supported for the * `DBC` format. */ @JsonProperty("path") private String path; public Import setContent(String content) { this.content = content; return this; } public String getContent() { return content; } public Import setFormat(ExportFormat format) { this.format = format; return this; } public ExportFormat getFormat() { return format; } public Import setLanguage(Language language) { this.language = language; return this; } public Language getLanguage() { return language; } public Import setOverwrite(Boolean overwrite) { this.overwrite = overwrite; return this; } public Boolean getOverwrite() { return overwrite; } public Import 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; Import that = (Import) o; return Objects.equals(content, that.content) && Objects.equals(format, that.format) && Objects.equals(language, that.language) && Objects.equals(overwrite, that.overwrite) && Objects.equals(path, that.path); } @Override public int hashCode() { return Objects.hash(content, format, language, overwrite, path); } @Override public String toString() { return new ToStringer(Import.class) .add("content", content) .add("format", format) .add("language", language) .add("overwrite", overwrite) .add("path", path) .toString(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy