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

com.nextbreakpoint.flink.client.model.JobVertexBackPressureInfo 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.SubtaskBackPressureInfo;
import com.nextbreakpoint.flink.client.model.VertexBackPressureLevel;
import com.nextbreakpoint.flink.client.model.VertexBackPressureStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
 * JobVertexBackPressureInfo
 */

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

public class JobVertexBackPressureInfo {
  @SerializedName("backpressureLevel")
  private VertexBackPressureLevel backpressureLevel = null;

  @SerializedName("end-timestamp")
  private Long endTimestamp = null;

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

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

  public JobVertexBackPressureInfo backpressureLevel(VertexBackPressureLevel backpressureLevel) {
    this.backpressureLevel = backpressureLevel;
    return this;
  }

   /**
   * Get backpressureLevel
   * @return backpressureLevel
  **/
  @Schema(description = "")
  public VertexBackPressureLevel getBackpressureLevel() {
    return backpressureLevel;
  }

  public void setBackpressureLevel(VertexBackPressureLevel backpressureLevel) {
    this.backpressureLevel = backpressureLevel;
  }

  public JobVertexBackPressureInfo endTimestamp(Long endTimestamp) {
    this.endTimestamp = endTimestamp;
    return this;
  }

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

  public void setEndTimestamp(Long endTimestamp) {
    this.endTimestamp = endTimestamp;
  }

  public JobVertexBackPressureInfo status(VertexBackPressureStatus status) {
    this.status = status;
    return this;
  }

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

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

  public JobVertexBackPressureInfo subtasks(List subtasks) {
    this.subtasks = subtasks;
    return this;
  }

  public JobVertexBackPressureInfo addSubtasksItem(SubtaskBackPressureInfo subtasksItem) {
    if (this.subtasks == null) {
      this.subtasks = new ArrayList<>();
    }
    this.subtasks.add(subtasksItem);
    return this;
  }

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

  public void setSubtasks(List subtasks) {
    this.subtasks = subtasks;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    JobVertexBackPressureInfo jobVertexBackPressureInfo = (JobVertexBackPressureInfo) o;
    return Objects.equals(this.backpressureLevel, jobVertexBackPressureInfo.backpressureLevel) &&
        Objects.equals(this.endTimestamp, jobVertexBackPressureInfo.endTimestamp) &&
        Objects.equals(this.status, jobVertexBackPressureInfo.status) &&
        Objects.equals(this.subtasks, jobVertexBackPressureInfo.subtasks);
  }

  @Override
  public int hashCode() {
    return Objects.hash(backpressureLevel, endTimestamp, status, subtasks);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class JobVertexBackPressureInfo {\n");
    
    sb.append("    backpressureLevel: ").append(toIndentedString(backpressureLevel)).append("\n");
    sb.append("    endTimestamp: ").append(toIndentedString(endTimestamp)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    subtasks: ").append(toIndentedString(subtasks)).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