com.nextbreakpoint.flink.client.model.Counts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.nextbreakpoint.flink.client Show documentation
Show all versions of com.nextbreakpoint.flink.client Show documentation
Java client for managing Apache Flink via REST API
The newest version!
/*
* This file is part of Flink Client
* https://github.com/nextbreakpoint/flink-client
*
* OpenAPI spec version: v1/1.20-SNAPSHOT
* Contact: [email protected]
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package com.nextbreakpoint.flink.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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
* Counts
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-12-19T19:01:19.933513Z[Europe/London]")
public class Counts {
@SerializedName("completed")
private Long completed = null;
@SerializedName("failed")
private Long failed = null;
@SerializedName("in_progress")
private Integer inProgress = null;
@SerializedName("restored")
private Long restored = null;
@SerializedName("total")
private Long total = null;
public Counts completed(Long completed) {
this.completed = completed;
return this;
}
/**
* Get completed
* @return completed
**/
@Schema(description = "")
public Long getCompleted() {
return completed;
}
public void setCompleted(Long completed) {
this.completed = completed;
}
public Counts failed(Long failed) {
this.failed = failed;
return this;
}
/**
* Get failed
* @return failed
**/
@Schema(description = "")
public Long getFailed() {
return failed;
}
public void setFailed(Long failed) {
this.failed = failed;
}
public Counts inProgress(Integer inProgress) {
this.inProgress = inProgress;
return this;
}
/**
* Get inProgress
* @return inProgress
**/
@Schema(description = "")
public Integer getInProgress() {
return inProgress;
}
public void setInProgress(Integer inProgress) {
this.inProgress = inProgress;
}
public Counts restored(Long restored) {
this.restored = restored;
return this;
}
/**
* Get restored
* @return restored
**/
@Schema(description = "")
public Long getRestored() {
return restored;
}
public void setRestored(Long restored) {
this.restored = restored;
}
public Counts total(Long total) {
this.total = total;
return this;
}
/**
* Get total
* @return total
**/
@Schema(description = "")
public Long getTotal() {
return total;
}
public void setTotal(Long total) {
this.total = total;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Counts counts = (Counts) o;
return Objects.equals(this.completed, counts.completed) &&
Objects.equals(this.failed, counts.failed) &&
Objects.equals(this.inProgress, counts.inProgress) &&
Objects.equals(this.restored, counts.restored) &&
Objects.equals(this.total, counts.total);
}
@Override
public int hashCode() {
return Objects.hash(completed, failed, inProgress, restored, total);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Counts {\n");
sb.append(" completed: ").append(toIndentedString(completed)).append("\n");
sb.append(" failed: ").append(toIndentedString(failed)).append("\n");
sb.append(" inProgress: ").append(toIndentedString(inProgress)).append("\n");
sb.append(" restored: ").append(toIndentedString(restored)).append("\n");
sb.append(" total: ").append(toIndentedString(total)).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