AlertModificationProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.alertsmanagement.models.AlertModificationProperties

Implements

public final class AlertModificationProperties
implements JsonSerializable<AlertModificationProperties>

Properties of the alert modification item.

Constructor Summary

Constructor Description
AlertModificationProperties()

Creates an instance of AlertModificationProperties class.

Method Summary

Modifier and Type Method and Description
String alertId()

Get the alertId property: Unique Id of the alert for which the history is being retrieved.

static AlertModificationProperties fromJson(JsonReader jsonReader)

Reads an instance of AlertModificationProperties from the JsonReader.

List<AlertModificationItem> modifications()

Get the modifications property: Modification details.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertModificationProperties withModifications(List<AlertModificationItem> modifications)

Set the modifications property: Modification details.

Methods inherited from java.lang.Object

Constructor Details

AlertModificationProperties

public AlertModificationProperties()

Creates an instance of AlertModificationProperties class.

Method Details

alertId

public String alertId()

Get the alertId property: Unique Id of the alert for which the history is being retrieved.

Returns:

the alertId value.

fromJson

public static AlertModificationProperties fromJson(JsonReader jsonReader)

Reads an instance of AlertModificationProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

modifications

public List<AlertModificationItem> modifications()

Get the modifications property: Modification details.

Returns:

the modifications value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withModifications

public AlertModificationProperties withModifications(List<AlertModificationItem> modifications)

Set the modifications property: Modification details.

Parameters:

modifications - the modifications value to set.

Returns:

the AlertModificationProperties object itself.

Applies to