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

com.microsoft.azure.management.monitor.MetricAlertStatus Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Monitor SDK. This package has been deprecated. A replacement package com.azure.resourcemanager:azure-resourcemanager-monitor is available as of 31-March-2022. We strongly encourage you to upgrade to continue receiving updates. See Migration Guide https://aka.ms/java-track2-migration-guide for guidance on upgrading. Refer to our deprecation policy https://azure.github.io/azure-sdk/policies_support.html for more details.

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.monitor;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * An alert status.
 */
public class MetricAlertStatus {
    /**
     * The status name.
     */
    @JsonProperty(value = "name")
    private String name;

    /**
     * The alert rule arm id.
     */
    @JsonProperty(value = "id")
    private String id;

    /**
     * The extended resource type name.
     */
    @JsonProperty(value = "type")
    private String type;

    /**
     * The alert status properties of the metric alert status.
     */
    @JsonProperty(value = "properties")
    private MetricAlertStatusProperties properties;

    /**
     * Get the status name.
     *
     * @return the name value
     */
    public String name() {
        return this.name;
    }

    /**
     * Set the status name.
     *
     * @param name the name value to set
     * @return the MetricAlertStatus object itself.
     */
    public MetricAlertStatus withName(String name) {
        this.name = name;
        return this;
    }

    /**
     * Get the alert rule arm id.
     *
     * @return the id value
     */
    public String id() {
        return this.id;
    }

    /**
     * Set the alert rule arm id.
     *
     * @param id the id value to set
     * @return the MetricAlertStatus object itself.
     */
    public MetricAlertStatus withId(String id) {
        this.id = id;
        return this;
    }

    /**
     * Get the extended resource type name.
     *
     * @return the type value
     */
    public String type() {
        return this.type;
    }

    /**
     * Set the extended resource type name.
     *
     * @param type the type value to set
     * @return the MetricAlertStatus object itself.
     */
    public MetricAlertStatus withType(String type) {
        this.type = type;
        return this;
    }

    /**
     * Get the alert status properties of the metric alert status.
     *
     * @return the properties value
     */
    public MetricAlertStatusProperties properties() {
        return this.properties;
    }

    /**
     * Set the alert status properties of the metric alert status.
     *
     * @param properties the properties value to set
     * @return the MetricAlertStatus object itself.
     */
    public MetricAlertStatus withProperties(MetricAlertStatusProperties properties) {
        this.properties = properties;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy