package com.github.dockerjava.api.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.github.dockerjava.core.RemoteApiVersion;


/**
 * @since {@link RemoteApiVersion#VERSION_1_24}
 */
public enum TaskState {

    NEW("new"),

    ALLOCATED("allocated"),

    PENDING("pending"),

    ASSIGNED("assigned"),

    ACCEPTED("accepted"),

    PREPARING("preparing"),

    READY("ready"),

    STARTING("starting"),

    RUNNING("running"),

    COMPLETE("complete"),

    SHUTDOWN("shutdown"),

    FAILED("failed"),

    REJECTED("rejected");

    private String value;

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

    public String getValue() {
        return value;
    }

    @JsonCreator
    public static TaskState forValue(String s) {
        return TaskState.valueOf(s.toUpperCase());
    }

    @Override
    public String toString() {
        return value;
    }
}

@@ -551,16 +551,66 @@
 jected%22)
+,%0A%0A    REMOVE(%22remove%22),%0A%0A    ORPHANED(%22orphaned%22)
 ;%0A%0A    p

Add new Task State