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

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

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

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

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

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

  @SerializedName("last-modification")
  private Long lastModification = null;

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

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

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

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

  public JobDetails 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 JobDetails 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 JobDetails 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 JobDetails lastModification(Long lastModification) {
    this.lastModification = lastModification;
    return this;
  }

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

  public void setLastModification(Long lastModification) {
    this.lastModification = lastModification;
  }

  public JobDetails 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 JobDetails 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 JobDetails 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 JobDetails tasks(Map tasks) {
    this.tasks = tasks;
    return this;
  }

  public JobDetails putTasksItem(String key, Integer tasksItem) {
    if (this.tasks == null) {
      this.tasks = new HashMap<>();
    }
    this.tasks.put(key, tasksItem);
    return this;
  }

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

  public void setTasks(Map tasks) {
    this.tasks = tasks;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobDetails jobDetails = (JobDetails) o;
    return Objects.equals(this.duration, jobDetails.duration) &&
        Objects.equals(this.endTime, jobDetails.endTime) &&
        Objects.equals(this.jid, jobDetails.jid) &&
        Objects.equals(this.lastModification, jobDetails.lastModification) &&
        Objects.equals(this.name, jobDetails.name) &&
        Objects.equals(this.startTime, jobDetails.startTime) &&
        Objects.equals(this.state, jobDetails.state) &&
        Objects.equals(this.tasks, jobDetails.tasks);
  }

  @Override
  public int hashCode() {
    return Objects.hash(duration, endTime, jid, lastModification, name, startTime, state, tasks);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobDetails {\n");
    
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    jid: ").append(toIndentedString(jid)).append("\n");
    sb.append("    lastModification: ").append(toIndentedString(lastModification)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    state: ").append(toIndentedString(state)).append("\n");
    sb.append("    tasks: ").append(toIndentedString(tasks)).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