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

package com.azure.resourcemanager.cdn.models;

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

/** Provisioning status. */
public final class AfdProvisioningState extends ExpandableStringEnum<AfdProvisioningState> {
    /** Static value Succeeded for AfdProvisioningState. */
    public static final AfdProvisioningState SUCCEEDED = fromString("Succeeded");

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

    /** Static value Updating for AfdProvisioningState. */
    public static final AfdProvisioningState UPDATING = fromString("Updating");

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

    /** Static value Creating for AfdProvisioningState. */
    public static final AfdProvisioningState CREATING = fromString("Creating");

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

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