org.openapitools.client.model.MetricsResultDto Maven / Gradle / Ivy
/*
* Camunda Platform REST API
* OpenApi Spec for Camunda Platform REST API.
*
* The version of the OpenAPI document: 7.19.0-alpha2
*
*
* 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;
/**
* MetricsResultDto
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-12-12T10:12:39.945259+01:00[Europe/Berlin]")
public class MetricsResultDto {
public static final String SERIALIZED_NAME_RESULT = "result";
@SerializedName(SERIALIZED_NAME_RESULT)
private Long result;
public MetricsResultDto result(Long result) {
this.result = result;
return this;
}
/**
* The current sum (count) for the selected metric.
* @return result
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The current sum (count) for the selected metric.")
public Long getResult() {
return result;
}
public void setResult(Long result) {
this.result = result;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MetricsResultDto metricsResultDto = (MetricsResultDto) o;
return Objects.equals(this.result, metricsResultDto.result);
}
@Override
public int hashCode() {
return Objects.hash(result);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MetricsResultDto {\n");
sb.append(" result: ").append(toIndentedString(result)).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 ");
}
}