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

mn.foreman.api.model.DoneStatus Maven / Gradle / Ivy

There is a newer version: 1.78.0
Show newest version
package mn.foreman.api.model;

import com.fasterxml.jackson.annotation.JsonValue;

/** The status for the {@link CommandDone.Response}. */
public enum DoneStatus {

    /** The success status. */
    SUCCESS("success"),

    /** The failed status. */
    FAILED("failed");

    /** The status message. */
    private final String status;

    /**
     * The status.
     *
     * @param status The message.
     */
    DoneStatus(final String status) {
        this.status = status;
    }

    /**
     * Returns the status.
     *
     * @return The status.
     */
    @JsonValue
    public String getStatus() {
        return this.status;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy