// 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 available sub plans. */
public final class SubPlan extends ExpandableStringEnum<SubPlan> {
    /** Static value P1 for SubPlan. */
    public static final SubPlan P1 = fromString("P1");

    /** Static value P2 for SubPlan. */
    public static final SubPlan P2 = fromString("P2");

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

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

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