AzureMonitorAlertSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.dataprotection.models.AzureMonitorAlertSettings

Implements

public final class AzureMonitorAlertSettings
implements JsonSerializable<AzureMonitorAlertSettings>

Settings for Azure Monitor based alerts.

Constructor Summary

Constructor Description
AzureMonitorAlertSettings()

Creates an instance of AzureMonitorAlertSettings class.

Method Summary

Modifier and Type Method and Description
AlertsState alertsForAllJobFailures()

Get the alertsForAllJobFailures property: The alertsForAllJobFailures property.

static AzureMonitorAlertSettings fromJson(JsonReader jsonReader)

Reads an instance of AzureMonitorAlertSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
AzureMonitorAlertSettings withAlertsForAllJobFailures(AlertsState alertsForAllJobFailures)

Set the alertsForAllJobFailures property: The alertsForAllJobFailures property.

Methods inherited from java.lang.Object

Constructor Details

AzureMonitorAlertSettings

public AzureMonitorAlertSettings()

Creates an instance of AzureMonitorAlertSettings class.

Method Details

alertsForAllJobFailures

public AlertsState alertsForAllJobFailures()

Get the alertsForAllJobFailures property: The alertsForAllJobFailures property.

Returns:

the alertsForAllJobFailures value.

fromJson

public static AzureMonitorAlertSettings fromJson(JsonReader jsonReader)

Reads an instance of AzureMonitorAlertSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AzureMonitorAlertSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the AzureMonitorAlertSettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAlertsForAllJobFailures

public AzureMonitorAlertSettings withAlertsForAllJobFailures(AlertsState alertsForAllJobFailures)

Set the alertsForAllJobFailures property: The alertsForAllJobFailures property.

Parameters:

alertsForAllJobFailures - the alertsForAllJobFailures value to set.

Returns:

the AzureMonitorAlertSettings object itself.

Applies to