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

package com.azure.security.keyvault.administration.models;

import com.azure.core.util.ExpandableStringEnum;
import java.util.Collection;

/** The role definition type. */
public final class KeyVaultRoleDefinitionType extends ExpandableStringEnum<KeyVaultRoleDefinitionType> {
    /** Static value Microsoft.Authorization/roleDefinitions for KeyVaultRoleDefinitionType. */
    public static final KeyVaultRoleDefinitionType MICROSOFT_AUTHORIZATION_ROLE_DEFINITIONS =
            fromString("Microsoft.Authorization/roleDefinitions");

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

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

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