com.databricks.sdk.service.ml.DatasetInput Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.ml;
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.Objects;
@Generated
public class DatasetInput {
/** The dataset being used as a Run input. */
@JsonProperty("dataset")
private Dataset dataset;
/** A list of tags for the dataset input, e.g. a “context” tag with value “training” */
@JsonProperty("tags")
private Collection tags;
public DatasetInput setDataset(Dataset dataset) {
this.dataset = dataset;
return this;
}
public Dataset getDataset() {
return dataset;
}
public DatasetInput setTags(Collection tags) {
this.tags = tags;
return this;
}
public Collection getTags() {
return tags;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DatasetInput that = (DatasetInput) o;
return Objects.equals(dataset, that.dataset) && Objects.equals(tags, that.tags);
}
@Override
public int hashCode() {
return Objects.hash(dataset, tags);
}
@Override
public String toString() {
return new ToStringer(DatasetInput.class).add("dataset", dataset).add("tags", tags).toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy