com.databricks.sdk.service.vectorsearch.VectorIndexStatus 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.JsonProperty;
import java.util.Objects;
@Generated
public class VectorIndexStatus {
/** Index API Url to be used to perform operations on the index */
@JsonProperty("index_url")
private String indexUrl;
/** Number of rows indexed */
@JsonProperty("indexed_row_count")
private Long indexedRowCount;
/** Message associated with the index status */
@JsonProperty("message")
private String message;
/** Whether the index is ready for search */
@JsonProperty("ready")
private Boolean ready;
public VectorIndexStatus setIndexUrl(String indexUrl) {
this.indexUrl = indexUrl;
return this;
}
public String getIndexUrl() {
return indexUrl;
}
public VectorIndexStatus setIndexedRowCount(Long indexedRowCount) {
this.indexedRowCount = indexedRowCount;
return this;
}
public Long getIndexedRowCount() {
return indexedRowCount;
}
public VectorIndexStatus setMessage(String message) {
this.message = message;
return this;
}
public String getMessage() {
return message;
}
public VectorIndexStatus setReady(Boolean ready) {
this.ready = ready;
return this;
}
public Boolean getReady() {
return ready;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
VectorIndexStatus that = (VectorIndexStatus) o;
return Objects.equals(indexUrl, that.indexUrl)
&& Objects.equals(indexedRowCount, that.indexedRowCount)
&& Objects.equals(message, that.message)
&& Objects.equals(ready, that.ready);
}
@Override
public int hashCode() {
return Objects.hash(indexUrl, indexedRowCount, message, ready);
}
@Override
public String toString() {
return new ToStringer(VectorIndexStatus.class)
.add("indexUrl", indexUrl)
.add("indexedRowCount", indexedRowCount)
.add("message", message)
.add("ready", ready)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy