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

com.microsoft.azure.eventgrid.models.MediaJobState Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.eventgrid.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Defines values for MediaJobState.
 */
public enum MediaJobState {
    /** The job was canceled. This is a final state for the job. */
    CANCELED("Canceled"),

    /** The job is in the process of being canceled. This is a transient state for the job. */
    CANCELING("Canceling"),

    /** The job has encountered an error. This is a final state for the job. */
    ERROR("Error"),

    /** The job is finished. This is a final state for the job. */
    FINISHED("Finished"),

    /** The job is processing. This is a transient state for the job. */
    PROCESSING("Processing"),

    /** The job is in a queued state, waiting for resources to become available. This is a transient state. */
    QUEUED("Queued"),

    /** The job is being scheduled to run on an available resource. This is a transient state, between queued and processing states. */
    SCHEDULED("Scheduled");

    /** The actual serialized value for a MediaJobState instance. */
    private String value;

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

    /**
     * Parses a serialized value to a MediaJobState instance.
     *
     * @param value the serialized value to parse.
     * @return the parsed MediaJobState object, or null if unable to parse.
     */
    @JsonCreator
    public static MediaJobState fromString(String value) {
        MediaJobState[] items = MediaJobState.values();
        for (MediaJobState item : items) {
            if (item.toString().equalsIgnoreCase(value)) {
                return item;
            }
        }
        return null;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy