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

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

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

public class ClusterOverviewWithVersion {
  @SerializedName("flink-commit")
  private String flinkCommit = null;

  @SerializedName("flink-version")
  private String flinkVersion = null;

  @SerializedName("jobs-cancelled")
  private Integer jobsCancelled = null;

  @SerializedName("jobs-failed")
  private Integer jobsFailed = null;

  @SerializedName("jobs-finished")
  private Integer jobsFinished = null;

  @SerializedName("jobs-running")
  private Integer jobsRunning = null;

  @SerializedName("slots-available")
  private Integer slotsAvailable = null;

  @SerializedName("slots-free-and-blocked")
  private Integer slotsFreeAndBlocked = null;

  @SerializedName("slots-total")
  private Integer slotsTotal = null;

  @SerializedName("taskmanagers")
  private Integer taskmanagers = null;

  @SerializedName("taskmanagers-blocked")
  private Integer taskmanagersBlocked = null;

  public ClusterOverviewWithVersion flinkCommit(String flinkCommit) {
    this.flinkCommit = flinkCommit;
    return this;
  }

   /**
   * Get flinkCommit
   * @return flinkCommit
  **/
  @Schema(description = "")
  public String getFlinkCommit() {
    return flinkCommit;
  }

  public void setFlinkCommit(String flinkCommit) {
    this.flinkCommit = flinkCommit;
  }

  public ClusterOverviewWithVersion flinkVersion(String flinkVersion) {
    this.flinkVersion = flinkVersion;
    return this;
  }

   /**
   * Get flinkVersion
   * @return flinkVersion
  **/
  @Schema(description = "")
  public String getFlinkVersion() {
    return flinkVersion;
  }

  public void setFlinkVersion(String flinkVersion) {
    this.flinkVersion = flinkVersion;
  }

  public ClusterOverviewWithVersion jobsCancelled(Integer jobsCancelled) {
    this.jobsCancelled = jobsCancelled;
    return this;
  }

   /**
   * Get jobsCancelled
   * @return jobsCancelled
  **/
  @Schema(description = "")
  public Integer getJobsCancelled() {
    return jobsCancelled;
  }

  public void setJobsCancelled(Integer jobsCancelled) {
    this.jobsCancelled = jobsCancelled;
  }

  public ClusterOverviewWithVersion jobsFailed(Integer jobsFailed) {
    this.jobsFailed = jobsFailed;
    return this;
  }

   /**
   * Get jobsFailed
   * @return jobsFailed
  **/
  @Schema(description = "")
  public Integer getJobsFailed() {
    return jobsFailed;
  }

  public void setJobsFailed(Integer jobsFailed) {
    this.jobsFailed = jobsFailed;
  }

  public ClusterOverviewWithVersion jobsFinished(Integer jobsFinished) {
    this.jobsFinished = jobsFinished;
    return this;
  }

   /**
   * Get jobsFinished
   * @return jobsFinished
  **/
  @Schema(description = "")
  public Integer getJobsFinished() {
    return jobsFinished;
  }

  public void setJobsFinished(Integer jobsFinished) {
    this.jobsFinished = jobsFinished;
  }

  public ClusterOverviewWithVersion jobsRunning(Integer jobsRunning) {
    this.jobsRunning = jobsRunning;
    return this;
  }

   /**
   * Get jobsRunning
   * @return jobsRunning
  **/
  @Schema(description = "")
  public Integer getJobsRunning() {
    return jobsRunning;
  }

  public void setJobsRunning(Integer jobsRunning) {
    this.jobsRunning = jobsRunning;
  }

  public ClusterOverviewWithVersion slotsAvailable(Integer slotsAvailable) {
    this.slotsAvailable = slotsAvailable;
    return this;
  }

   /**
   * Get slotsAvailable
   * @return slotsAvailable
  **/
  @Schema(description = "")
  public Integer getSlotsAvailable() {
    return slotsAvailable;
  }

  public void setSlotsAvailable(Integer slotsAvailable) {
    this.slotsAvailable = slotsAvailable;
  }

  public ClusterOverviewWithVersion slotsFreeAndBlocked(Integer slotsFreeAndBlocked) {
    this.slotsFreeAndBlocked = slotsFreeAndBlocked;
    return this;
  }

   /**
   * Get slotsFreeAndBlocked
   * @return slotsFreeAndBlocked
  **/
  @Schema(description = "")
  public Integer getSlotsFreeAndBlocked() {
    return slotsFreeAndBlocked;
  }

  public void setSlotsFreeAndBlocked(Integer slotsFreeAndBlocked) {
    this.slotsFreeAndBlocked = slotsFreeAndBlocked;
  }

  public ClusterOverviewWithVersion slotsTotal(Integer slotsTotal) {
    this.slotsTotal = slotsTotal;
    return this;
  }

   /**
   * Get slotsTotal
   * @return slotsTotal
  **/
  @Schema(description = "")
  public Integer getSlotsTotal() {
    return slotsTotal;
  }

  public void setSlotsTotal(Integer slotsTotal) {
    this.slotsTotal = slotsTotal;
  }

  public ClusterOverviewWithVersion taskmanagers(Integer taskmanagers) {
    this.taskmanagers = taskmanagers;
    return this;
  }

   /**
   * Get taskmanagers
   * @return taskmanagers
  **/
  @Schema(description = "")
  public Integer getTaskmanagers() {
    return taskmanagers;
  }

  public void setTaskmanagers(Integer taskmanagers) {
    this.taskmanagers = taskmanagers;
  }

  public ClusterOverviewWithVersion taskmanagersBlocked(Integer taskmanagersBlocked) {
    this.taskmanagersBlocked = taskmanagersBlocked;
    return this;
  }

   /**
   * Get taskmanagersBlocked
   * @return taskmanagersBlocked
  **/
  @Schema(description = "")
  public Integer getTaskmanagersBlocked() {
    return taskmanagersBlocked;
  }

  public void setTaskmanagersBlocked(Integer taskmanagersBlocked) {
    this.taskmanagersBlocked = taskmanagersBlocked;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ClusterOverviewWithVersion clusterOverviewWithVersion = (ClusterOverviewWithVersion) o;
    return Objects.equals(this.flinkCommit, clusterOverviewWithVersion.flinkCommit) &&
        Objects.equals(this.flinkVersion, clusterOverviewWithVersion.flinkVersion) &&
        Objects.equals(this.jobsCancelled, clusterOverviewWithVersion.jobsCancelled) &&
        Objects.equals(this.jobsFailed, clusterOverviewWithVersion.jobsFailed) &&
        Objects.equals(this.jobsFinished, clusterOverviewWithVersion.jobsFinished) &&
        Objects.equals(this.jobsRunning, clusterOverviewWithVersion.jobsRunning) &&
        Objects.equals(this.slotsAvailable, clusterOverviewWithVersion.slotsAvailable) &&
        Objects.equals(this.slotsFreeAndBlocked, clusterOverviewWithVersion.slotsFreeAndBlocked) &&
        Objects.equals(this.slotsTotal, clusterOverviewWithVersion.slotsTotal) &&
        Objects.equals(this.taskmanagers, clusterOverviewWithVersion.taskmanagers) &&
        Objects.equals(this.taskmanagersBlocked, clusterOverviewWithVersion.taskmanagersBlocked);
  }

  @Override
  public int hashCode() {
    return Objects.hash(flinkCommit, flinkVersion, jobsCancelled, jobsFailed, jobsFinished, jobsRunning, slotsAvailable, slotsFreeAndBlocked, slotsTotal, taskmanagers, taskmanagersBlocked);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ClusterOverviewWithVersion {\n");
    
    sb.append("    flinkCommit: ").append(toIndentedString(flinkCommit)).append("\n");
    sb.append("    flinkVersion: ").append(toIndentedString(flinkVersion)).append("\n");
    sb.append("    jobsCancelled: ").append(toIndentedString(jobsCancelled)).append("\n");
    sb.append("    jobsFailed: ").append(toIndentedString(jobsFailed)).append("\n");
    sb.append("    jobsFinished: ").append(toIndentedString(jobsFinished)).append("\n");
    sb.append("    jobsRunning: ").append(toIndentedString(jobsRunning)).append("\n");
    sb.append("    slotsAvailable: ").append(toIndentedString(slotsAvailable)).append("\n");
    sb.append("    slotsFreeAndBlocked: ").append(toIndentedString(slotsFreeAndBlocked)).append("\n");
    sb.append("    slotsTotal: ").append(toIndentedString(slotsTotal)).append("\n");
    sb.append("    taskmanagers: ").append(toIndentedString(taskmanagers)).append("\n");
    sb.append("    taskmanagersBlocked: ").append(toIndentedString(taskmanagersBlocked)).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