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

package com.azure.resourcemanager.cdn.models;

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

/** describes if the policy is in enabled state or disabled state. */
public final class PolicyEnabledState extends ExpandableStringEnum<PolicyEnabledState> {
    /** Static value Disabled for PolicyEnabledState. */
    public static final PolicyEnabledState DISABLED = fromString("Disabled");

    /** Static value Enabled for PolicyEnabledState. */
    public static final PolicyEnabledState ENABLED = fromString("Enabled");

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

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