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

com.databricks.sdk.service.files.Put Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
// 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 Put {
  /** This parameter might be absent, and instead a posted file will be used. */
  @JsonProperty("contents")
  private String contents;

  /** The flag that specifies whether to overwrite existing file/files. */
  @JsonProperty("overwrite")
  private Boolean overwrite;

  /** The path of the new file. The path should be the absolute DBFS path. */
  @JsonProperty("path")
  private String path;

  public Put setContents(String contents) {
    this.contents = contents;
    return this;
  }

  public String getContents() {
    return contents;
  }

  public Put setOverwrite(Boolean overwrite) {
    this.overwrite = overwrite;
    return this;
  }

  public Boolean getOverwrite() {
    return overwrite;
  }

  public Put 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;
    Put that = (Put) o;
    return Objects.equals(contents, that.contents)
        && Objects.equals(overwrite, that.overwrite)
        && Objects.equals(path, that.path);
  }

  @Override
  public int hashCode() {
    return Objects.hash(contents, overwrite, path);
  }

  @Override
  public String toString() {
    return new ToStringer(Put.class)
        .add("contents", contents)
        .add("overwrite", overwrite)
        .add("path", path)
        .toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy