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

package com.azure.resourcemanager.resources.models;

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

/** The option whether validate the exemption is at or under the assignment scope. */
public final class AssignmentScopeValidation extends ExpandableStringEnum<AssignmentScopeValidation> {
    /** Static value Default for AssignmentScopeValidation. */
    public static final AssignmentScopeValidation DEFAULT = fromString("Default");

    /** Static value DoNotValidate for AssignmentScopeValidation. */
    public static final AssignmentScopeValidation DO_NOT_VALIDATE = fromString("DoNotValidate");

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

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

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