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

package com.azure.resourcemanager.kubernetesconfiguration.models;

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

/** Scope at which the operator will be installed. */
public final class OperatorScopeType extends ExpandableStringEnum<OperatorScopeType> {
    /** Static value cluster for OperatorScopeType. */
    public static final OperatorScopeType CLUSTER = fromString("cluster");

    /** Static value namespace for OperatorScopeType. */
    public static final OperatorScopeType NAMESPACE = fromString("namespace");

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

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

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