Share via


MonitoringSettings Class

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

Implements

public final class MonitoringSettings
implements JsonSerializable<MonitoringSettings>

Monitoring Settings.

Constructor Summary

Constructor Description
MonitoringSettings()

Creates an instance of MonitoringSettings class.

Method Summary

Modifier and Type Method and Description
AzureMonitorAlertSettings azureMonitorAlertSettings()

Get the azureMonitorAlertSettings property: Settings for Azure Monitor based alerts.

static MonitoringSettings fromJson(JsonReader jsonReader)

Reads an instance of MonitoringSettings from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
MonitoringSettings withAzureMonitorAlertSettings(AzureMonitorAlertSettings azureMonitorAlertSettings)

Set the azureMonitorAlertSettings property: Settings for Azure Monitor based alerts.

Methods inherited from java.lang.Object

Constructor Details

MonitoringSettings

public MonitoringSettings()

Creates an instance of MonitoringSettings class.

Method Details

azureMonitorAlertSettings

public AzureMonitorAlertSettings azureMonitorAlertSettings()

Get the azureMonitorAlertSettings property: Settings for Azure Monitor based alerts.

Returns:

the azureMonitorAlertSettings value.

fromJson

public static MonitoringSettings fromJson(JsonReader jsonReader)

Reads an instance of MonitoringSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MonitoringSettings 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 MonitoringSettings.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

withAzureMonitorAlertSettings

public MonitoringSettings withAzureMonitorAlertSettings(AzureMonitorAlertSettings azureMonitorAlertSettings)

Set the azureMonitorAlertSettings property: Settings for Azure Monitor based alerts.

Parameters:

azureMonitorAlertSettings - the azureMonitorAlertSettings value to set.

Returns:

the MonitoringSettings object itself.

Applies to