// 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 PolicyStatesResource. */
public final class PolicyStatesResource extends ExpandableStringEnum<PolicyStatesResource> {
    /** Static value default for PolicyStatesResource. */
    public static final PolicyStatesResource DEFAULT = fromString("default");

    /** Static value latest for PolicyStatesResource. */
    public static final PolicyStatesResource LATEST = fromString("latest");

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

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