All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.network.models.FirewallPolicyIdpsSignatureSeverity Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Network Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 2.44.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.network.models;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low.
 */
public enum FirewallPolicyIdpsSignatureSeverity {
    /**
     * Enum value 1.
     */
    ONE(1),

    /**
     * Enum value 2.
     */
    TWO(2),

    /**
     * Enum value 3.
     */
    THREE(3);

    /**
     * The actual serialized value for a FirewallPolicyIdpsSignatureSeverity instance.
     */
    private final int value;

    FirewallPolicyIdpsSignatureSeverity(int value) {
        this.value = value;
    }

    /**
     * Parses a serialized value to a FirewallPolicyIdpsSignatureSeverity instance.
     * 
     * @param value the serialized value to parse.
     * @return the parsed FirewallPolicyIdpsSignatureSeverity object, or null if unable to parse.
     */
    @JsonCreator
    public static FirewallPolicyIdpsSignatureSeverity fromInt(int value) {
        FirewallPolicyIdpsSignatureSeverity[] items = FirewallPolicyIdpsSignatureSeverity.values();
        for (FirewallPolicyIdpsSignatureSeverity item : items) {
            if (item.toInt() == value) {
                return item;
            }
        }
        return null;
    }

    /**
     * De-serializes the instance to int value.
     * 
     * @return the int value.
     */
    @JsonValue
    public int toInt() {
        return this.value;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy