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

package com.azure.resourcemanager.delegatednetwork.models;

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

/** The current state of orchestratorInstance resource. */
public final class OrchestratorInstanceState extends ExpandableStringEnum<OrchestratorInstanceState> {
    /** Static value Deleting for OrchestratorInstanceState. */
    public static final OrchestratorInstanceState DELETING = fromString("Deleting");

    /** Static value Succeeded for OrchestratorInstanceState. */
    public static final OrchestratorInstanceState SUCCEEDED = fromString("Succeeded");

    /** Static value Failed for OrchestratorInstanceState. */
    public static final OrchestratorInstanceState FAILED = fromString("Failed");

    /** Static value Provisioning for OrchestratorInstanceState. */
    public static final OrchestratorInstanceState PROVISIONING = fromString("Provisioning");

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

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

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