com.microsoft.azure.management.monitor.MetricAlertStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-monitor Show documentation
Show all versions of azure-mgmt-monitor Show documentation
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.
/**
* 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;
}
}