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.
/** * 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.
/** * An alert status. */
public class MetricAlertStatus {
The status name.
/** * The status name. */
@JsonProperty(value = "name") private String name;
The alert rule arm id.
/** * The alert rule arm id. */
@JsonProperty(value = "id") private String id;
The extended resource type name.
/** * The extended resource type name. */
@JsonProperty(value = "type") private String type;
The alert status properties of the metric alert status.
/** * The alert status properties of the metric alert status. */
@JsonProperty(value = "properties") private MetricAlertStatusProperties properties;
Get the status name.
Returns:the name value
/** * Get the status name. * * @return the name value */
public String name() { return this.name; }
Set the status name.
Params:
  • name – the name value to set
Returns:the MetricAlertStatus object itself.
/** * 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.
Returns:the id value
/** * Get the alert rule arm id. * * @return the id value */
public String id() { return this.id; }
Set the alert rule arm id.
Params:
  • id – the id value to set
Returns:the MetricAlertStatus object itself.
/** * 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.
Returns:the type value
/** * Get the extended resource type name. * * @return the type value */
public String type() { return this.type; }
Set the extended resource type name.
Params:
  • type – the type value to set
Returns:the MetricAlertStatus object itself.
/** * 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.
Returns:the properties value
/** * 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.
Params:
  • properties – the properties value to set
Returns:the MetricAlertStatus object itself.
/** * 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; } }