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

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

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