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

com.nextbreakpoint.flink.client.model.JobDetailsInfo 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.JobDetailsVertexInfo;
import com.nextbreakpoint.flink.client.model.JobStatus;
import com.nextbreakpoint.flink.client.model.JobType;
import com.nextbreakpoint.flink.client.model.RawJson;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * JobDetailsInfo
 */

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

public class JobDetailsInfo {
  @SerializedName("duration")
  private Long duration = null;

  @SerializedName("end-time")
  private Long endTime = null;

  @SerializedName("isStoppable")
  private Boolean isStoppable = null;

  @SerializedName("jid")
  private String jid = null;

  @SerializedName("job-type")
  private JobType jobType = null;

  @SerializedName("maxParallelism")
  private Long maxParallelism = null;

  @SerializedName("name")
  private String name = null;

  @SerializedName("now")
  private Long now = null;

  @SerializedName("plan")
  private RawJson plan = null;

  @SerializedName("start-time")
  private Long startTime = null;

  @SerializedName("state")
  private JobStatus state = null;

  @SerializedName("status-counts")
  private Map statusCounts = null;

  @SerializedName("timestamps")
  private Map timestamps = null;

  @SerializedName("vertices")
  private List vertices = null;

  public JobDetailsInfo duration(Long duration) {
    this.duration = duration;
    return this;
  }

   /**
   * Get duration
   * @return duration
  **/
  @Schema(description = "")
  public Long getDuration() {
    return duration;
  }

  public void setDuration(Long duration) {
    this.duration = duration;
  }

  public JobDetailsInfo endTime(Long endTime) {
    this.endTime = endTime;
    return this;
  }

   /**
   * Get endTime
   * @return endTime
  **/
  @Schema(description = "")
  public Long getEndTime() {
    return endTime;
  }

  public void setEndTime(Long endTime) {
    this.endTime = endTime;
  }

  public JobDetailsInfo isStoppable(Boolean isStoppable) {
    this.isStoppable = isStoppable;
    return this;
  }

   /**
   * Get isStoppable
   * @return isStoppable
  **/
  @Schema(description = "")
  public Boolean isIsStoppable() {
    return isStoppable;
  }

  public void setIsStoppable(Boolean isStoppable) {
    this.isStoppable = isStoppable;
  }

  public JobDetailsInfo jid(String jid) {
    this.jid = jid;
    return this;
  }

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

  public void setJid(String jid) {
    this.jid = jid;
  }

  public JobDetailsInfo jobType(JobType jobType) {
    this.jobType = jobType;
    return this;
  }

   /**
   * Get jobType
   * @return jobType
  **/
  @Schema(description = "")
  public JobType getJobType() {
    return jobType;
  }

  public void setJobType(JobType jobType) {
    this.jobType = jobType;
  }

  public JobDetailsInfo maxParallelism(Long maxParallelism) {
    this.maxParallelism = maxParallelism;
    return this;
  }

   /**
   * Get maxParallelism
   * @return maxParallelism
  **/
  @Schema(description = "")
  public Long getMaxParallelism() {
    return maxParallelism;
  }

  public void setMaxParallelism(Long maxParallelism) {
    this.maxParallelism = maxParallelism;
  }

  public JobDetailsInfo name(String name) {
    this.name = name;
    return this;
  }

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

  public void setName(String name) {
    this.name = name;
  }

  public JobDetailsInfo now(Long now) {
    this.now = now;
    return this;
  }

   /**
   * Get now
   * @return now
  **/
  @Schema(description = "")
  public Long getNow() {
    return now;
  }

  public void setNow(Long now) {
    this.now = now;
  }

  public JobDetailsInfo plan(RawJson plan) {
    this.plan = plan;
    return this;
  }

   /**
   * Get plan
   * @return plan
  **/
  @Schema(description = "")
  public RawJson getPlan() {
    return plan;
  }

  public void setPlan(RawJson plan) {
    this.plan = plan;
  }

  public JobDetailsInfo startTime(Long startTime) {
    this.startTime = startTime;
    return this;
  }

   /**
   * Get startTime
   * @return startTime
  **/
  @Schema(description = "")
  public Long getStartTime() {
    return startTime;
  }

  public void setStartTime(Long startTime) {
    this.startTime = startTime;
  }

  public JobDetailsInfo state(JobStatus state) {
    this.state = state;
    return this;
  }

   /**
   * Get state
   * @return state
  **/
  @Schema(description = "")
  public JobStatus getState() {
    return state;
  }

  public void setState(JobStatus state) {
    this.state = state;
  }

  public JobDetailsInfo statusCounts(Map statusCounts) {
    this.statusCounts = statusCounts;
    return this;
  }

  public JobDetailsInfo putStatusCountsItem(String key, Integer statusCountsItem) {
    if (this.statusCounts == null) {
      this.statusCounts = new HashMap<>();
    }
    this.statusCounts.put(key, statusCountsItem);
    return this;
  }

   /**
   * Get statusCounts
   * @return statusCounts
  **/
  @Schema(description = "")
  public Map getStatusCounts() {
    return statusCounts;
  }

  public void setStatusCounts(Map statusCounts) {
    this.statusCounts = statusCounts;
  }

  public JobDetailsInfo timestamps(Map timestamps) {
    this.timestamps = timestamps;
    return this;
  }

  public JobDetailsInfo putTimestampsItem(String key, Long timestampsItem) {
    if (this.timestamps == null) {
      this.timestamps = new HashMap<>();
    }
    this.timestamps.put(key, timestampsItem);
    return this;
  }

   /**
   * Get timestamps
   * @return timestamps
  **/
  @Schema(description = "")
  public Map getTimestamps() {
    return timestamps;
  }

  public void setTimestamps(Map timestamps) {
    this.timestamps = timestamps;
  }

  public JobDetailsInfo vertices(List vertices) {
    this.vertices = vertices;
    return this;
  }

  public JobDetailsInfo addVerticesItem(JobDetailsVertexInfo verticesItem) {
    if (this.vertices == null) {
      this.vertices = new ArrayList<>();
    }
    this.vertices.add(verticesItem);
    return this;
  }

   /**
   * Get vertices
   * @return vertices
  **/
  @Schema(description = "")
  public List getVertices() {
    return vertices;
  }

  public void setVertices(List vertices) {
    this.vertices = vertices;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobDetailsInfo jobDetailsInfo = (JobDetailsInfo) o;
    return Objects.equals(this.duration, jobDetailsInfo.duration) &&
        Objects.equals(this.endTime, jobDetailsInfo.endTime) &&
        Objects.equals(this.isStoppable, jobDetailsInfo.isStoppable) &&
        Objects.equals(this.jid, jobDetailsInfo.jid) &&
        Objects.equals(this.jobType, jobDetailsInfo.jobType) &&
        Objects.equals(this.maxParallelism, jobDetailsInfo.maxParallelism) &&
        Objects.equals(this.name, jobDetailsInfo.name) &&
        Objects.equals(this.now, jobDetailsInfo.now) &&
        Objects.equals(this.plan, jobDetailsInfo.plan) &&
        Objects.equals(this.startTime, jobDetailsInfo.startTime) &&
        Objects.equals(this.state, jobDetailsInfo.state) &&
        Objects.equals(this.statusCounts, jobDetailsInfo.statusCounts) &&
        Objects.equals(this.timestamps, jobDetailsInfo.timestamps) &&
        Objects.equals(this.vertices, jobDetailsInfo.vertices);
  }

  @Override
  public int hashCode() {
    return Objects.hash(duration, endTime, isStoppable, jid, jobType, maxParallelism, name, now, plan, startTime, state, statusCounts, timestamps, vertices);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobDetailsInfo {\n");
    
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    isStoppable: ").append(toIndentedString(isStoppable)).append("\n");
    sb.append("    jid: ").append(toIndentedString(jid)).append("\n");
    sb.append("    jobType: ").append(toIndentedString(jobType)).append("\n");
    sb.append("    maxParallelism: ").append(toIndentedString(maxParallelism)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    now: ").append(toIndentedString(now)).append("\n");
    sb.append("    plan: ").append(toIndentedString(plan)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    statusCounts: ").append(toIndentedString(statusCounts)).append("\n");
    sb.append("    timestamps: ").append(toIndentedString(timestamps)).append("\n");
    sb.append("    vertices: ").append(toIndentedString(vertices)).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