com.databricks.sdk.service.vectorsearch.DeleteDataVectorIndexRequest Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.vectorsearch;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
/** Request payload for deleting data from a vector index. */
@Generated
public class DeleteDataVectorIndexRequest {
/** Name of the vector index where data is to be deleted. Must be a Direct Vector Access Index. */
@JsonIgnore private String indexName;
/** List of primary keys for the data to be deleted. */
@JsonProperty("primary_keys")
private Collection primaryKeys;
public DeleteDataVectorIndexRequest setIndexName(String indexName) {
this.indexName = indexName;
return this;
}
public String getIndexName() {
return indexName;
}
public DeleteDataVectorIndexRequest setPrimaryKeys(Collection primaryKeys) {
this.primaryKeys = primaryKeys;
return this;
}
public Collection getPrimaryKeys() {
return primaryKeys;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
DeleteDataVectorIndexRequest that = (DeleteDataVectorIndexRequest) o;
return Objects.equals(indexName, that.indexName)
&& Objects.equals(primaryKeys, that.primaryKeys);
}
@Override
public int hashCode() {
return Objects.hash(indexName, primaryKeys);
}
@Override
public String toString() {
return new ToStringer(DeleteDataVectorIndexRequest.class)
.add("indexName", indexName)
.add("primaryKeys", primaryKeys)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy