SmartGroupModificationItem Class

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

Implements

public final class SmartGroupModificationItem
implements JsonSerializable<SmartGroupModificationItem>

smartGroup modification item.

Constructor Summary

Constructor Description
SmartGroupModificationItem()

Creates an instance of SmartGroupModificationItem 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 SmartGroupModificationItem fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupModificationItem from the JsonReader.

SmartGroupModificationEvent 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.

SmartGroupModificationItem withComments(String comments)

Set the comments property: Modification comments.

SmartGroupModificationItem withDescription(String description)

Set the description property: Description of the modification.

SmartGroupModificationItem withModificationEvent(SmartGroupModificationEvent modificationEvent)

Set the modificationEvent property: Reason for the modification.

SmartGroupModificationItem withModifiedAt(String modifiedAt)

Set the modifiedAt property: Modified date and time.

SmartGroupModificationItem withModifiedBy(String modifiedBy)

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

SmartGroupModificationItem withNewValue(String newValue)

Set the newValue property: New value.

SmartGroupModificationItem withOldValue(String oldValue)

Set the oldValue property: Old value.

Methods inherited from java.lang.Object

Constructor Details

SmartGroupModificationItem

public SmartGroupModificationItem()

Creates an instance of SmartGroupModificationItem 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 SmartGroupModificationItem fromJson(JsonReader jsonReader)

Reads an instance of SmartGroupModificationItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

modificationEvent

public SmartGroupModificationEvent 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 SmartGroupModificationItem withComments(String comments)

Set the comments property: Modification comments.

Parameters:

comments - the comments value to set.

Returns:

the SmartGroupModificationItem object itself.

withDescription

public SmartGroupModificationItem withDescription(String description)

Set the description property: Description of the modification.

Parameters:

description - the description value to set.

Returns:

the SmartGroupModificationItem object itself.

withModificationEvent

public SmartGroupModificationItem withModificationEvent(SmartGroupModificationEvent modificationEvent)

Set the modificationEvent property: Reason for the modification.

Parameters:

modificationEvent - the modificationEvent value to set.

Returns:

the SmartGroupModificationItem object itself.

withModifiedAt

public SmartGroupModificationItem withModifiedAt(String modifiedAt)

Set the modifiedAt property: Modified date and time.

Parameters:

modifiedAt - the modifiedAt value to set.

Returns:

the SmartGroupModificationItem object itself.

withModifiedBy

public SmartGroupModificationItem withModifiedBy(String modifiedBy)

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

Parameters:

modifiedBy - the modifiedBy value to set.

Returns:

the SmartGroupModificationItem object itself.

withNewValue

public SmartGroupModificationItem withNewValue(String newValue)

Set the newValue property: New value.

Parameters:

newValue - the newValue value to set.

Returns:

the SmartGroupModificationItem object itself.

withOldValue

public SmartGroupModificationItem withOldValue(String oldValue)

Set the oldValue property: Old value.

Parameters:

oldValue - the oldValue value to set.

Returns:

the SmartGroupModificationItem object itself.

Applies to