All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.algolia.model.querysuggestions.GetConfigStatus200Response Maven / Gradle / Ivy

There is a newer version: 4.10.2
Show 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 java.util.Objects;

/** GetConfigStatus200Response */
public class GetConfigStatus200Response {

  @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 GetConfigStatus200Response setIndexName(String indexName) {
    this.indexName = indexName;
    return this;
  }

  /** Query Suggestions index name. */
  @javax.annotation.Nullable
  public String getIndexName() {
    return indexName;
  }

  public GetConfigStatus200Response setIsRunning(Boolean isRunning) {
    this.isRunning = isRunning;
    return this;
  }

  /** Indicates whether the creation or update of the Query Suggestions is in progress. */
  @javax.annotation.Nullable
  public Boolean getIsRunning() {
    return isRunning;
  }

  public GetConfigStatus200Response setLastBuiltAt(String lastBuiltAt) {
    this.lastBuiltAt = lastBuiltAt;
    return this;
  }

  /**
   * Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions
   * index was last built.
   */
  @javax.annotation.Nullable
  public String getLastBuiltAt() {
    return lastBuiltAt;
  }

  public GetConfigStatus200Response setLastSuccessfulBuiltAt(String lastSuccessfulBuiltAt) {
    this.lastSuccessfulBuiltAt = lastSuccessfulBuiltAt;
    return this;
  }

  /**
   * Timestamp in [ISO-8601](https://wikipedia.org/wiki/ISO_8601) format when the Query Suggestions
   * index was last updated successfully.
   */
  @javax.annotation.Nullable
  public String getLastSuccessfulBuiltAt() {
    return lastSuccessfulBuiltAt;
  }

  public GetConfigStatus200Response 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;
    }
    GetConfigStatus200Response getConfigStatus200Response = (GetConfigStatus200Response) o;
    return (
      Objects.equals(this.indexName, getConfigStatus200Response.indexName) &&
      Objects.equals(this.isRunning, getConfigStatus200Response.isRunning) &&
      Objects.equals(this.lastBuiltAt, getConfigStatus200Response.lastBuiltAt) &&
      Objects.equals(this.lastSuccessfulBuiltAt, getConfigStatus200Response.lastSuccessfulBuiltAt) &&
      Objects.equals(this.lastSuccessfulBuildDuration, getConfigStatus200Response.lastSuccessfulBuildDuration)
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(indexName, isRunning, lastBuiltAt, lastSuccessfulBuiltAt, lastSuccessfulBuildDuration);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class GetConfigStatus200Response {\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