com.algolia.model.querysuggestions.LogFile 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;
/** LogFile */
public class LogFile {
@JsonProperty("timestamp")
private String timestamp;
@JsonProperty("level")
private LogLevel level;
@JsonProperty("message")
private String message;
@JsonProperty("contextLevel")
private Integer contextLevel;
public LogFile setTimestamp(String timestamp) {
this.timestamp = timestamp;
return this;
}
/** Date and time of the log entry, in RFC 3339 format. */
@javax.annotation.Nullable
public String getTimestamp() {
return timestamp;
}
public LogFile setLevel(LogLevel level) {
this.level = level;
return this;
}
/** Get level */
@javax.annotation.Nullable
public LogLevel getLevel() {
return level;
}
public LogFile setMessage(String message) {
this.message = message;
return this;
}
/** Details about this log entry. */
@javax.annotation.Nullable
public String getMessage() {
return message;
}
public LogFile setContextLevel(Integer contextLevel) {
this.contextLevel = contextLevel;
return this;
}
/**
* Level indicating the position of a suggestion in a hierarchy of records. For example, a
* `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with
* `contextLevel` 0.
*/
@javax.annotation.Nullable
public Integer getContextLevel() {
return contextLevel;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LogFile logFile = (LogFile) o;
return (
Objects.equals(this.timestamp, logFile.timestamp) &&
Objects.equals(this.level, logFile.level) &&
Objects.equals(this.message, logFile.message) &&
Objects.equals(this.contextLevel, logFile.contextLevel)
);
}
@Override
public int hashCode() {
return Objects.hash(timestamp, level, message, contextLevel);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LogFile {\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" level: ").append(toIndentedString(level)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" contextLevel: ").append(toIndentedString(contextLevel)).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