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

package com.azure.resourcemanager.hardwaresecuritymodules.models;

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

/** Defines values for JsonWebKeyType. */
public final class JsonWebKeyType extends ExpandableStringEnum<JsonWebKeyType> {
    /** Static value Succeeded for JsonWebKeyType. */
    public static final JsonWebKeyType SUCCEEDED = fromString("Succeeded");

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

    /** Static value Allocating for JsonWebKeyType. */
    public static final JsonWebKeyType ALLOCATING = fromString("Allocating");

    /** Static value Connecting for JsonWebKeyType. */
    public static final JsonWebKeyType CONNECTING = fromString("Connecting");

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

    /** Static value CheckingQuota for JsonWebKeyType. */
    public static final JsonWebKeyType CHECKING_QUOTA = fromString("CheckingQuota");

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

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

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