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

com.nextbreakpoint.flinkclient.model.JobVertexTaskManagerInfo Maven / Gradle / Ivy

The newest version!
/*
 * This file is part of FlinkClient
 * https://github.com/nextbreakpoint/flinkclient
 *
 * 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.flinkclient.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.flinkclient.model.AggregatedTaskDetailsInfo;
import com.nextbreakpoint.flinkclient.model.ExecutionState;
import com.nextbreakpoint.flinkclient.model.IOMetricsInfo;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
 * JobVertexTaskManagerInfo
 */

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-11-23T19:15:53.419913Z[Europe/London]")

public class JobVertexTaskManagerInfo {
  @SerializedName("aggregated")
  private AggregatedTaskDetailsInfo aggregated = null;

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

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

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

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

  @SerializedName("metrics")
  private IOMetricsInfo metrics = null;

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

  @SerializedName("status")
  private ExecutionState status = null;

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

  @SerializedName("taskmanager-id")
  private String taskmanagerId = null;

  public JobVertexTaskManagerInfo aggregated(AggregatedTaskDetailsInfo aggregated) {
    this.aggregated = aggregated;
    return this;
  }

   /**
   * Get aggregated
   * @return aggregated
  **/
  @Schema(description = "")
  public AggregatedTaskDetailsInfo getAggregated() {
    return aggregated;
  }

  public void setAggregated(AggregatedTaskDetailsInfo aggregated) {
    this.aggregated = aggregated;
  }

  public JobVertexTaskManagerInfo 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 JobVertexTaskManagerInfo 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 JobVertexTaskManagerInfo endpoint(String endpoint) {
    this.endpoint = endpoint;
    return this;
  }

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

  public void setEndpoint(String endpoint) {
    this.endpoint = endpoint;
  }

  public JobVertexTaskManagerInfo host(String host) {
    this.host = host;
    return this;
  }

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

  public void setHost(String host) {
    this.host = host;
  }

  public JobVertexTaskManagerInfo metrics(IOMetricsInfo metrics) {
    this.metrics = metrics;
    return this;
  }

   /**
   * Get metrics
   * @return metrics
  **/
  @Schema(description = "")
  public IOMetricsInfo getMetrics() {
    return metrics;
  }

  public void setMetrics(IOMetricsInfo metrics) {
    this.metrics = metrics;
  }

  public JobVertexTaskManagerInfo 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 JobVertexTaskManagerInfo status(ExecutionState status) {
    this.status = status;
    return this;
  }

   /**
   * Get status
   * @return status
  **/
  @Schema(description = "")
  public ExecutionState getStatus() {
    return status;
  }

  public void setStatus(ExecutionState status) {
    this.status = status;
  }

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

  public JobVertexTaskManagerInfo 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 JobVertexTaskManagerInfo taskmanagerId(String taskmanagerId) {
    this.taskmanagerId = taskmanagerId;
    return this;
  }

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

  public void setTaskmanagerId(String taskmanagerId) {
    this.taskmanagerId = taskmanagerId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobVertexTaskManagerInfo jobVertexTaskManagerInfo = (JobVertexTaskManagerInfo) o;
    return Objects.equals(this.aggregated, jobVertexTaskManagerInfo.aggregated) &&
        Objects.equals(this.duration, jobVertexTaskManagerInfo.duration) &&
        Objects.equals(this.endTime, jobVertexTaskManagerInfo.endTime) &&
        Objects.equals(this.endpoint, jobVertexTaskManagerInfo.endpoint) &&
        Objects.equals(this.host, jobVertexTaskManagerInfo.host) &&
        Objects.equals(this.metrics, jobVertexTaskManagerInfo.metrics) &&
        Objects.equals(this.startTime, jobVertexTaskManagerInfo.startTime) &&
        Objects.equals(this.status, jobVertexTaskManagerInfo.status) &&
        Objects.equals(this.statusCounts, jobVertexTaskManagerInfo.statusCounts) &&
        Objects.equals(this.taskmanagerId, jobVertexTaskManagerInfo.taskmanagerId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(aggregated, duration, endTime, endpoint, host, metrics, startTime, status, statusCounts, taskmanagerId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobVertexTaskManagerInfo {\n");
    
    sb.append("    aggregated: ").append(toIndentedString(aggregated)).append("\n");
    sb.append("    duration: ").append(toIndentedString(duration)).append("\n");
    sb.append("    endTime: ").append(toIndentedString(endTime)).append("\n");
    sb.append("    endpoint: ").append(toIndentedString(endpoint)).append("\n");
    sb.append("    host: ").append(toIndentedString(host)).append("\n");
    sb.append("    metrics: ").append(toIndentedString(metrics)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    statusCounts: ").append(toIndentedString(statusCounts)).append("\n");
    sb.append("    taskmanagerId: ").append(toIndentedString(taskmanagerId)).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 - 2025 Weber Informatics LLC | Privacy Policy