com.nextbreakpoint.flink.client.model.VertexBackPressureStatus 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.annotations.SerializedName;
import java.io.IOException;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
/**
* Gets or Sets VertexBackPressureStatus
*/
@JsonAdapter(VertexBackPressureStatus.Adapter.class)
public enum VertexBackPressureStatus {
@SerializedName("deprecated")
DEPRECATED("deprecated"),
@SerializedName("ok")
OK("ok");
private String value;
VertexBackPressureStatus(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static VertexBackPressureStatus fromValue(String input) {
for (VertexBackPressureStatus b : VertexBackPressureStatus.values()) {
if (b.value.equals(input)) {
return b;
}
}
return null;
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final VertexBackPressureStatus enumeration) throws IOException {
jsonWriter.value(String.valueOf(enumeration.getValue()));
}
@Override
public VertexBackPressureStatus read(final JsonReader jsonReader) throws IOException {
Object value = jsonReader.nextString();
return VertexBackPressureStatus.fromValue((String)(value));
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy