org.openapitools.client.model.RetriesDto 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;
/**
* RetriesDto
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-12-12T10:12:39.945259+01:00[Europe/Berlin]")
public class RetriesDto {
public static final String SERIALIZED_NAME_RETRIES = "retries";
@SerializedName(SERIALIZED_NAME_RETRIES)
private Integer retries;
public RetriesDto retries(Integer retries) {
this.retries = retries;
return this;
}
/**
* The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null.
* @return retries
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of retries to set for the resource. Must be >= 0. If this is 0, an incident is created and the task, or job, cannot be fetched, or acquired anymore unless the retries are increased again. Can not be null.")
public Integer getRetries() {
return retries;
}
public void setRetries(Integer retries) {
this.retries = retries;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RetriesDto retriesDto = (RetriesDto) o;
return Objects.equals(this.retries, retriesDto.retries);
}
@Override
public int hashCode() {
return Objects.hash(retries);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RetriesDto {\n");
sb.append(" retries: ").append(toIndentedString(retries)).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 ");
}
}