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

package com.azure.resourcemanager.storage.models;

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

/**
 * Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of
 * Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.
 */
public final class Bypass extends ExpandableStringEnum<Bypass> {
    /** Static value None for Bypass. */
    public static final Bypass NONE = fromString("None");

    /** Static value Logging for Bypass. */
    public static final Bypass LOGGING = fromString("Logging");

    /** Static value Metrics for Bypass. */
    public static final Bypass METRICS = fromString("Metrics");

    /** Static value AzureServices for Bypass. */
    public static final Bypass AZURE_SERVICES = fromString("AzureServices");

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

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