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

com.nextbreakpoint.flink.client.model.LatestCheckpoints Maven / Gradle / Ivy

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 com.nextbreakpoint.flink.client.model.CompletedCheckpointStatistics;
import com.nextbreakpoint.flink.client.model.FailedCheckpointStatistics;
import com.nextbreakpoint.flink.client.model.RestoredCheckpointStatistics;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
 * LatestCheckpoints
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-12-19T19:01:19.933513Z[Europe/London]")

public class LatestCheckpoints {
  @SerializedName("completed")
  private CompletedCheckpointStatistics completed = null;

  @SerializedName("failed")
  private FailedCheckpointStatistics failed = null;

  @SerializedName("restored")
  private RestoredCheckpointStatistics restored = null;

  @SerializedName("savepoint")
  private CompletedCheckpointStatistics savepoint = null;

  public LatestCheckpoints completed(CompletedCheckpointStatistics completed) {
    this.completed = completed;
    return this;
  }

   /**
   * Get completed
   * @return completed
  **/
  @Schema(description = "")
  public CompletedCheckpointStatistics getCompleted() {
    return completed;
  }

  public void setCompleted(CompletedCheckpointStatistics completed) {
    this.completed = completed;
  }

  public LatestCheckpoints failed(FailedCheckpointStatistics failed) {
    this.failed = failed;
    return this;
  }

   /**
   * Get failed
   * @return failed
  **/
  @Schema(description = "")
  public FailedCheckpointStatistics getFailed() {
    return failed;
  }

  public void setFailed(FailedCheckpointStatistics failed) {
    this.failed = failed;
  }

  public LatestCheckpoints restored(RestoredCheckpointStatistics restored) {
    this.restored = restored;
    return this;
  }

   /**
   * Get restored
   * @return restored
  **/
  @Schema(description = "")
  public RestoredCheckpointStatistics getRestored() {
    return restored;
  }

  public void setRestored(RestoredCheckpointStatistics restored) {
    this.restored = restored;
  }

  public LatestCheckpoints savepoint(CompletedCheckpointStatistics savepoint) {
    this.savepoint = savepoint;
    return this;
  }

   /**
   * Get savepoint
   * @return savepoint
  **/
  @Schema(description = "")
  public CompletedCheckpointStatistics getSavepoint() {
    return savepoint;
  }

  public void setSavepoint(CompletedCheckpointStatistics savepoint) {
    this.savepoint = savepoint;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    LatestCheckpoints latestCheckpoints = (LatestCheckpoints) o;
    return Objects.equals(this.completed, latestCheckpoints.completed) &&
        Objects.equals(this.failed, latestCheckpoints.failed) &&
        Objects.equals(this.restored, latestCheckpoints.restored) &&
        Objects.equals(this.savepoint, latestCheckpoints.savepoint);
  }

  @Override
  public int hashCode() {
    return Objects.hash(completed, failed, restored, savepoint);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class LatestCheckpoints {\n");
    
    sb.append("    completed: ").append(toIndentedString(completed)).append("\n");
    sb.append("    failed: ").append(toIndentedString(failed)).append("\n");
    sb.append("    restored: ").append(toIndentedString(restored)).append("\n");
    sb.append("    savepoint: ").append(toIndentedString(savepoint)).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