com.algolia.model.querysuggestions.ConfigStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of algoliasearch Show documentation
Show all versions of algoliasearch Show documentation
Java client for Algolia Search API
The newest version!
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.querysuggestions;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
import java.util.Objects;
/** ConfigStatus */
public class ConfigStatus {
@JsonProperty("indexName")
private String indexName;
@JsonProperty("isRunning")
private Boolean isRunning;
@JsonProperty("lastBuiltAt")
private String lastBuiltAt;
@JsonProperty("lastSuccessfulBuiltAt")
private String lastSuccessfulBuiltAt;
@JsonProperty("lastSuccessfulBuildDuration")
private String lastSuccessfulBuildDuration;
public ConfigStatus setIndexName(String indexName) {
this.indexName = indexName;
return this;
}
/** Name of the Query Suggestions index (case-sensitive). */
@javax.annotation.Nullable
public String getIndexName() {
return indexName;
}
public ConfigStatus setIsRunning(Boolean isRunning) {
this.isRunning = isRunning;
return this;
}
/** Whether the creation or update of the Query Suggestions index is in progress. */
@javax.annotation.Nullable
public Boolean getIsRunning() {
return isRunning;
}
public ConfigStatus setLastBuiltAt(String lastBuiltAt) {
this.lastBuiltAt = lastBuiltAt;
return this;
}
/** Date and time when the Query Suggestions index was last built, in RFC 3339 format. */
@javax.annotation.Nullable
public String getLastBuiltAt() {
return lastBuiltAt;
}
public ConfigStatus setLastSuccessfulBuiltAt(String lastSuccessfulBuiltAt) {
this.lastSuccessfulBuiltAt = lastSuccessfulBuiltAt;
return this;
}
/** Date and time when the Query Suggestions index was last updated successfully. */
@javax.annotation.Nullable
public String getLastSuccessfulBuiltAt() {
return lastSuccessfulBuiltAt;
}
public ConfigStatus setLastSuccessfulBuildDuration(String lastSuccessfulBuildDuration) {
this.lastSuccessfulBuildDuration = lastSuccessfulBuildDuration;
return this;
}
/** Duration of the last successful build in seconds. */
@javax.annotation.Nullable
public String getLastSuccessfulBuildDuration() {
return lastSuccessfulBuildDuration;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ConfigStatus configStatus = (ConfigStatus) o;
return (
Objects.equals(this.indexName, configStatus.indexName) &&
Objects.equals(this.isRunning, configStatus.isRunning) &&
Objects.equals(this.lastBuiltAt, configStatus.lastBuiltAt) &&
Objects.equals(this.lastSuccessfulBuiltAt, configStatus.lastSuccessfulBuiltAt) &&
Objects.equals(this.lastSuccessfulBuildDuration, configStatus.lastSuccessfulBuildDuration)
);
}
@Override
public int hashCode() {
return Objects.hash(indexName, isRunning, lastBuiltAt, lastSuccessfulBuiltAt, lastSuccessfulBuildDuration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ConfigStatus {\n");
sb.append(" indexName: ").append(toIndentedString(indexName)).append("\n");
sb.append(" isRunning: ").append(toIndentedString(isRunning)).append("\n");
sb.append(" lastBuiltAt: ").append(toIndentedString(lastBuiltAt)).append("\n");
sb.append(" lastSuccessfulBuiltAt: ").append(toIndentedString(lastSuccessfulBuiltAt)).append("\n");
sb.append(" lastSuccessfulBuildDuration: ").append(toIndentedString(lastSuccessfulBuildDuration)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy