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

com.azure.resourcemanager.elastic.models.MonitoringStatus Maven / Gradle / Ivy

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

package com.azure.resourcemanager.elastic.models;

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

/** Flag specifying if the resource monitoring is enabled or disabled. */
public final class MonitoringStatus extends ExpandableStringEnum {
    /** Static value Enabled for MonitoringStatus. */
    public static final MonitoringStatus ENABLED = fromString("Enabled");

    /** Static value Disabled for MonitoringStatus. */
    public static final MonitoringStatus DISABLED = fromString("Disabled");

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy