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

com.azure.resourcemanager.securityinsights.models.AvailabilityStatus Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for SecurityInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider. Package tag package-preview-2021-09.

There is a newer version: 1.0.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.securityinsights.models;

/**
 * The connector Availability Status.
 */
public enum AvailabilityStatus {
    /**
     * Enum value 1.
     */
    ONE(1);

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy