org.openapitools.client.model.MetricsIntervalResultDto Maven / Gradle / Ivy
/*
* Camunda BPM REST API
* OpenApi Spec for Camunda BPM REST API.
*
* The version of the OpenAPI document: 7.13.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.openapitools.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.Date;
/**
* MetricsIntervalResultDto
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-05-19T21:06:35.118+02:00[Europe/Berlin]")
public class MetricsIntervalResultDto {
public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp";
@SerializedName(SERIALIZED_NAME_TIMESTAMP)
private Date timestamp;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_REPORTER = "reporter";
@SerializedName(SERIALIZED_NAME_REPORTER)
private String reporter;
public static final String SERIALIZED_NAME_VALUE = "value";
@SerializedName(SERIALIZED_NAME_VALUE)
private Long value;
public MetricsIntervalResultDto timestamp(Date timestamp) {
this.timestamp = timestamp;
return this;
}
/**
* The interval timestamp.
* @return timestamp
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The interval timestamp.")
public Date getTimestamp() {
return timestamp;
}
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
public MetricsIntervalResultDto name(String name) {
this.name = name;
return this;
}
/**
* The name of the metric.
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The name of the metric.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public MetricsIntervalResultDto reporter(String reporter) {
this.reporter = reporter;
return this;
}
/**
* The reporter of the metric. `null` if the metrics are aggregated by reporter.
* @return reporter
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The reporter of the metric. `null` if the metrics are aggregated by reporter.")
public String getReporter() {
return reporter;
}
public void setReporter(String reporter) {
this.reporter = reporter;
}
public MetricsIntervalResultDto value(Long value) {
this.value = value;
return this;
}
/**
* The value of the metric aggregated by the interval.
* @return value
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The value of the metric aggregated by the interval.")
public Long getValue() {
return value;
}
public void setValue(Long value) {
this.value = value;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetricsIntervalResultDto metricsIntervalResultDto = (MetricsIntervalResultDto) o;
return Objects.equals(this.timestamp, metricsIntervalResultDto.timestamp) &&
Objects.equals(this.name, metricsIntervalResultDto.name) &&
Objects.equals(this.reporter, metricsIntervalResultDto.reporter) &&
Objects.equals(this.value, metricsIntervalResultDto.value);
}
@Override
public int hashCode() {
return Objects.hash(timestamp, name, reporter, value);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetricsIntervalResultDto {\n");
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" reporter: ").append(toIndentedString(reporter)).append("\n");
sb.append(" value: ").append(toIndentedString(value)).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 ");
}
}