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

package com.azure.resourcemanager.policyinsights.models;

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

/** Defines values for PolicyEventsResourceType. */
public final class PolicyEventsResourceType extends ExpandableStringEnum<PolicyEventsResourceType> {
    /** Static value default for PolicyEventsResourceType. */
    public static final PolicyEventsResourceType DEFAULT = fromString("default");

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

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