com.databricks.sdk.service.compute.PythonPyPiLibrary Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.compute;
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 PythonPyPiLibrary {
/**
* The name of the pypi package to install. An optional exact version specification is also
* supported. Examples: "simplejson" and "simplejson==3.8.0".
*/
@JsonProperty("package")
private String packageValue;
/**
* The repository where the package can be found. If not specified, the default pip index is used.
*/
@JsonProperty("repo")
private String repo;
public PythonPyPiLibrary setPackage(String packageValue) {
this.packageValue = packageValue;
return this;
}
public String getPackage() {
return packageValue;
}
public PythonPyPiLibrary setRepo(String repo) {
this.repo = repo;
return this;
}
public String getRepo() {
return repo;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PythonPyPiLibrary that = (PythonPyPiLibrary) o;
return Objects.equals(packageValue, that.packageValue) && Objects.equals(repo, that.repo);
}
@Override
public int hashCode() {
return Objects.hash(packageValue, repo);
}
@Override
public String toString() {
return new ToStringer(PythonPyPiLibrary.class)
.add("packageValue", packageValue)
.add("repo", repo)
.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy