// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** The resource state of the streaming endpoint. */
public final class StreamingEndpointResourceState extends ExpandableStringEnum<StreamingEndpointResourceState> {
    /** Static value Stopped for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState STOPPED = fromString("Stopped");

    /** Static value Starting for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState STARTING = fromString("Starting");

    /** Static value Running for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState RUNNING = fromString("Running");

    /** Static value Stopping for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState STOPPING = fromString("Stopping");

    /** Static value Deleting for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState DELETING = fromString("Deleting");

    /** Static value Scaling for StreamingEndpointResourceState. */
    public static final StreamingEndpointResourceState SCALING = fromString("Scaling");

    /**
     * Creates a new instance of StreamingEndpointResourceState value.
     *
     * @deprecated Use the {@link #fromString(String)} factory method.
     */
    @Deprecated
    public StreamingEndpointResourceState() {
    }

    /**
     * Creates or finds a StreamingEndpointResourceState from its string representation.
     *
     * @param name a name to look for.
     * @return the corresponding StreamingEndpointResourceState.
     */
    @JsonCreator
    public static StreamingEndpointResourceState fromString(String name) {
        return fromString(name, StreamingEndpointResourceState.class);
    }

    /**
     * Gets known StreamingEndpointResourceState values.
     *
     * @return known StreamingEndpointResourceState values.
     */
    public static Collection<StreamingEndpointResourceState> values() {
        return values(StreamingEndpointResourceState.class);
    }
}
