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

package com.azure.resourcemanager.security.models;

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

/** The type of security control (for example, BuiltIn). */
public final class ControlType extends ExpandableStringEnum<ControlType> {
    /** Static value BuiltIn for ControlType. */
    public static final ControlType BUILT_IN = fromString("BuiltIn");

    /** Static value Custom for ControlType. */
    public static final ControlType CUSTOM = fromString("Custom");

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

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

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