AlertModificationItem Class

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

Implements

public final class AlertModificationItem
implements JsonSerializable<AlertModificationItem>

Alert modification item.

Constructor Summary

Constructor Description
AlertModificationItem()

Creates an instance of AlertModificationItem class.

Method Summary

Modifier and Type Method and Description
String comments()

Get the comments property: Modification comments.

String description()

Get the description property: Description of the modification.

static AlertModificationItem fromJson(JsonReader jsonReader)

Reads an instance of AlertModificationItem from the JsonReader.

AlertModificationEvent modificationEvent()

Get the modificationEvent property: Reason for the modification.

String modifiedAt()

Get the modifiedAt property: Modified date and time.

String modifiedBy()

Get the modifiedBy property: Modified user details (Principal client name).

String newValue()

Get the newValue property: New value.

String oldValue()

Get the oldValue property: Old value.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AlertModificationItem withComments(String comments)

Set the comments property: Modification comments.

AlertModificationItem withDescription(String description)

Set the description property: Description of the modification.

AlertModificationItem withModificationEvent(AlertModificationEvent modificationEvent)

Set the modificationEvent property: Reason for the modification.

AlertModificationItem withModifiedAt(String modifiedAt)

Set the modifiedAt property: Modified date and time.

AlertModificationItem withModifiedBy(String modifiedBy)

Set the modifiedBy property: Modified user details (Principal client name).

AlertModificationItem withNewValue(String newValue)

Set the newValue property: New value.

AlertModificationItem withOldValue(String oldValue)

Set the oldValue property: Old value.

Methods inherited from java.lang.Object

Constructor Details

AlertModificationItem

public AlertModificationItem()

Creates an instance of AlertModificationItem class.

Method Details

comments

public String comments()

Get the comments property: Modification comments.

Returns:

the comments value.

description

public String description()

Get the description property: Description of the modification.

Returns:

the description value.

fromJson

public static AlertModificationItem fromJson(JsonReader jsonReader)

Reads an instance of AlertModificationItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

modificationEvent

public AlertModificationEvent modificationEvent()

Get the modificationEvent property: Reason for the modification.

Returns:

the modificationEvent value.

modifiedAt

public String modifiedAt()

Get the modifiedAt property: Modified date and time.

Returns:

the modifiedAt value.

modifiedBy

public String modifiedBy()

Get the modifiedBy property: Modified user details (Principal client name).

Returns:

the modifiedBy value.

newValue

public String newValue()

Get the newValue property: New value.

Returns:

the newValue value.

oldValue

public String oldValue()

Get the oldValue property: Old value.

Returns:

the oldValue value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withComments

public AlertModificationItem withComments(String comments)

Set the comments property: Modification comments.

Parameters:

comments - the comments value to set.

Returns:

the AlertModificationItem object itself.

withDescription

public AlertModificationItem withDescription(String description)

Set the description property: Description of the modification.

Parameters:

description - the description value to set.

Returns:

the AlertModificationItem object itself.

withModificationEvent

public AlertModificationItem withModificationEvent(AlertModificationEvent modificationEvent)

Set the modificationEvent property: Reason for the modification.

Parameters:

modificationEvent - the modificationEvent value to set.

Returns:

the AlertModificationItem object itself.

withModifiedAt

public AlertModificationItem withModifiedAt(String modifiedAt)

Set the modifiedAt property: Modified date and time.

Parameters:

modifiedAt - the modifiedAt value to set.

Returns:

the AlertModificationItem object itself.

withModifiedBy

public AlertModificationItem withModifiedBy(String modifiedBy)

Set the modifiedBy property: Modified user details (Principal client name).

Parameters:

modifiedBy - the modifiedBy value to set.

Returns:

the AlertModificationItem object itself.

withNewValue

public AlertModificationItem withNewValue(String newValue)

Set the newValue property: New value.

Parameters:

newValue - the newValue value to set.

Returns:

the AlertModificationItem object itself.

withOldValue

public AlertModificationItem withOldValue(String oldValue)

Set the oldValue property: Old value.

Parameters:

oldValue - the oldValue value to set.

Returns:

the AlertModificationItem object itself.

Applies to