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

com.aliyun.datahub.client.model.ConnectorShardState Maven / Gradle / Ivy

There is a newer version: 2.25.6
Show newest version
package com.aliyun.datahub.client.model;

import com.fasterxml.jackson.annotation.JsonValue;

public enum ConnectorShardState {
    CREATED("CONTEXT_PLANNED"),
    EXECUTING("CONTEXT_EXECUTING"),

    @Deprecated
    HANGE("CONTEXT_HANG"),

    STOPPED("CONTEXT_PAUSED"),

    FINISHED("CONTEXT_FINISHED");

    ConnectorShardState(String value) {
        this.value = value;
    }

    private String value;

    @JsonValue
    public String getValue() {
        return value;
    }

    public static ConnectorShardState fromString(String text) {
        for (ConnectorShardState e : ConnectorShardState.values()) {
            if (e.value.equalsIgnoreCase(text)) {
                return e;
            }
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy