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

com.logicmonitor.logs.model.LogEntry Maven / Gradle / Ivy

There is a newer version: 1.2
Show newest version
/*
 * LM Logs API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.1
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package com.logicmonitor.logs.model;

import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * LogEntry
 */
@JsonPropertyOrder({
  LogEntry.JSON_PROPERTY_MESSAGE,
  LogEntry.JSON_PROPERTY_TIMESTAMP,
  LogEntry.JSON_PROPERTY_LM_RESOURCE_ID
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-08-12T13:44:06.676505+02:00[Europe/Warsaw]")
public class LogEntry {
  public static final String JSON_PROPERTY_MESSAGE = "message";
  private String message;

  public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
  private Long timestamp;

  public static final String JSON_PROPERTY_LM_RESOURCE_ID = "_lm.resourceId";
  private Map lmResourceId = new HashMap<>();


  public LogEntry message(String message) {
    
    this.message = message;
    return this;
  }

   /**
   * Get message
   * @return message
  **/
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_MESSAGE)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public String getMessage() {
    return message;
  }


  public void setMessage(String message) {
    this.message = message;
  }


  public LogEntry timestamp(Long timestamp) {
    
    this.timestamp = timestamp;
    return this;
  }

   /**
   * Get timestamp
   * minimum: 0
   * @return timestamp
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")
  @JsonProperty(JSON_PROPERTY_TIMESTAMP)
  @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

  public Long getTimestamp() {
    return timestamp;
  }


  public void setTimestamp(Long timestamp) {
    this.timestamp = timestamp;
  }


  public LogEntry lmResourceId(Map lmResourceId) {
    
    this.lmResourceId = lmResourceId;
    return this;
  }

  public LogEntry putLmResourceIdItem(String key, String lmResourceIdItem) {
    this.lmResourceId.put(key, lmResourceIdItem);
    return this;
  }

   /**
   * Get lmResourceId
   * @return lmResourceId
  **/
  @ApiModelProperty(required = true, value = "")
  @JsonProperty(JSON_PROPERTY_LM_RESOURCE_ID)
  @JsonInclude(value = JsonInclude.Include.ALWAYS)

  public Map getLmResourceId() {
    return lmResourceId;
  }


  public void setLmResourceId(Map lmResourceId) {
    this.lmResourceId = lmResourceId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LogEntry logEntry = (LogEntry) o;
    return Objects.equals(this.message, logEntry.message) &&
        Objects.equals(this.timestamp, logEntry.timestamp) &&
        Objects.equals(this.lmResourceId, logEntry.lmResourceId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(message, timestamp, lmResourceId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LogEntry {\n");
    sb.append("    message: ").append(toIndentedString(message)).append("\n");
    sb.append("    timestamp: ").append(toIndentedString(timestamp)).append("\n");
    sb.append("    lmResourceId: ").append(toIndentedString(lmResourceId)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy