com.nextbreakpoint.flink.client.model.ExecutionConfigInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.nextbreakpoint.flink.client Show documentation
Show all versions of com.nextbreakpoint.flink.client Show documentation
Java client for managing Apache Flink via REST API
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;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* ExecutionConfigInfo
*/
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-12-19T19:01:19.933513Z[Europe/London]")
public class ExecutionConfigInfo {
@SerializedName("execution-mode")
private String executionMode = null;
@SerializedName("job-parallelism")
private Integer jobParallelism = null;
@SerializedName("object-reuse-mode")
private Boolean objectReuseMode = null;
@SerializedName("restart-strategy")
private String restartStrategy = null;
@SerializedName("user-config")
private Map userConfig = null;
public ExecutionConfigInfo executionMode(String executionMode) {
this.executionMode = executionMode;
return this;
}
/**
* Get executionMode
* @return executionMode
**/
@Schema(description = "")
public String getExecutionMode() {
return executionMode;
}
public void setExecutionMode(String executionMode) {
this.executionMode = executionMode;
}
public ExecutionConfigInfo jobParallelism(Integer jobParallelism) {
this.jobParallelism = jobParallelism;
return this;
}
/**
* Get jobParallelism
* @return jobParallelism
**/
@Schema(description = "")
public Integer getJobParallelism() {
return jobParallelism;
}
public void setJobParallelism(Integer jobParallelism) {
this.jobParallelism = jobParallelism;
}
public ExecutionConfigInfo objectReuseMode(Boolean objectReuseMode) {
this.objectReuseMode = objectReuseMode;
return this;
}
/**
* Get objectReuseMode
* @return objectReuseMode
**/
@Schema(description = "")
public Boolean isObjectReuseMode() {
return objectReuseMode;
}
public void setObjectReuseMode(Boolean objectReuseMode) {
this.objectReuseMode = objectReuseMode;
}
public ExecutionConfigInfo restartStrategy(String restartStrategy) {
this.restartStrategy = restartStrategy;
return this;
}
/**
* Get restartStrategy
* @return restartStrategy
**/
@Schema(description = "")
public String getRestartStrategy() {
return restartStrategy;
}
public void setRestartStrategy(String restartStrategy) {
this.restartStrategy = restartStrategy;
}
public ExecutionConfigInfo userConfig(Map userConfig) {
this.userConfig = userConfig;
return this;
}
public ExecutionConfigInfo putUserConfigItem(String key, String userConfigItem) {
if (this.userConfig == null) {
this.userConfig = new HashMap<>();
}
this.userConfig.put(key, userConfigItem);
return this;
}
/**
* Get userConfig
* @return userConfig
**/
@Schema(description = "")
public Map getUserConfig() {
return userConfig;
}
public void setUserConfig(Map userConfig) {
this.userConfig = userConfig;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExecutionConfigInfo executionConfigInfo = (ExecutionConfigInfo) o;
return Objects.equals(this.executionMode, executionConfigInfo.executionMode) &&
Objects.equals(this.jobParallelism, executionConfigInfo.jobParallelism) &&
Objects.equals(this.objectReuseMode, executionConfigInfo.objectReuseMode) &&
Objects.equals(this.restartStrategy, executionConfigInfo.restartStrategy) &&
Objects.equals(this.userConfig, executionConfigInfo.userConfig);
}
@Override
public int hashCode() {
return Objects.hash(executionMode, jobParallelism, objectReuseMode, restartStrategy, userConfig);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExecutionConfigInfo {\n");
sb.append(" executionMode: ").append(toIndentedString(executionMode)).append("\n");
sb.append(" jobParallelism: ").append(toIndentedString(jobParallelism)).append("\n");
sb.append(" objectReuseMode: ").append(toIndentedString(objectReuseMode)).append("\n");
sb.append(" restartStrategy: ").append(toIndentedString(restartStrategy)).append("\n");
sb.append(" userConfig: ").append(toIndentedString(userConfig)).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