com.databricks.sdk.service.jobs.PythonWheelTask Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.jobs;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Map;
import java.util.Objects;
@Generated
public class PythonWheelTask {
/**
* Named entry point to use, if it does not exist in the metadata of the package it executes the
* function from the package directly using `$packageName.$entryPoint()`
*/
@JsonProperty("entry_point")
private String entryPoint;
/**
* Command-line parameters passed to Python wheel task in the form of `["--name=task",
* "--data=dbfs:/path/to/data.json"]`. Leave it empty if `parameters` is not null.
*/
@JsonProperty("named_parameters")
private Map namedParameters;
/** Name of the package to execute */
@JsonProperty("package_name")
private String packageName;
/**
* Command-line parameters passed to Python wheel task. Leave it empty if `named_parameters` is
* not null.
*/
@JsonProperty("parameters")
private Collection parameters;
public PythonWheelTask setEntryPoint(String entryPoint) {
this.entryPoint = entryPoint;
return this;
}
public String getEntryPoint() {
return entryPoint;
}
public PythonWheelTask setNamedParameters(Map namedParameters) {
this.namedParameters = namedParameters;
return this;
}
public Map getNamedParameters() {
return namedParameters;
}
public PythonWheelTask setPackageName(String packageName) {
this.packageName = packageName;
return this;
}
public String getPackageName() {
return packageName;
}
public PythonWheelTask setParameters(Collection parameters) {
this.parameters = parameters;
return this;
}
public Collection getParameters() {
return parameters;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
PythonWheelTask that = (PythonWheelTask) o;
return Objects.equals(entryPoint, that.entryPoint)
&& Objects.equals(namedParameters, that.namedParameters)
&& Objects.equals(packageName, that.packageName)
&& Objects.equals(parameters, that.parameters);
}
@Override
public int hashCode() {
return Objects.hash(entryPoint, namedParameters, packageName, parameters);
}
@Override
public String toString() {
return new ToStringer(PythonWheelTask.class)
.add("entryPoint", entryPoint)
.add("namedParameters", namedParameters)
.add("packageName", packageName)
.add("parameters", parameters)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy