RedisPatchingCompletedEventData Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.RedisPatchingCompletedEventData

Implements

public final class RedisPatchingCompletedEventData
implements JsonSerializable<RedisPatchingCompletedEventData>

Schema of the Data property of an EventGridEvent for a Microsoft.Cache.PatchingCompleted event.

Constructor Summary

Constructor Description
RedisPatchingCompletedEventData()

Creates an instance of RedisPatchingCompletedEventData class.

Method Summary

Modifier and Type Method and Description
static RedisPatchingCompletedEventData fromJson(JsonReader jsonReader)

Reads an instance of RedisPatchingCompletedEventData from the JsonReader.

String getName()

Get the name property: The name of this event.

String getStatus()

Get the status property: The status of this event.

OffsetDateTime getTimestamp()

Get the timestamp property: The time at which the event occurred.

RedisPatchingCompletedEventData setName(String name)

Set the name property: The name of this event.

RedisPatchingCompletedEventData setStatus(String status)

Set the status property: The status of this event.

RedisPatchingCompletedEventData setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time at which the event occurred.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

RedisPatchingCompletedEventData

public RedisPatchingCompletedEventData()

Creates an instance of RedisPatchingCompletedEventData class.

Method Details

fromJson

public static RedisPatchingCompletedEventData fromJson(JsonReader jsonReader)

Reads an instance of RedisPatchingCompletedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getName

public String getName()

Get the name property: The name of this event.

Returns:

the name value.

getStatus

public String getStatus()

Get the status property: The status of this event. Failed or succeeded.

Returns:

the status value.

getTimestamp

public OffsetDateTime getTimestamp()

Get the timestamp property: The time at which the event occurred.

Returns:

the timestamp value.

setName

public RedisPatchingCompletedEventData setName(String name)

Set the name property: The name of this event.

Parameters:

name - the name value to set.

Returns:

the RedisPatchingCompletedEventData object itself.

setStatus

public RedisPatchingCompletedEventData setStatus(String status)

Set the status property: The status of this event. Failed or succeeded.

Parameters:

status - the status value to set.

Returns:

the RedisPatchingCompletedEventData object itself.

setTimestamp

public RedisPatchingCompletedEventData setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time at which the event occurred.

Parameters:

timestamp - the timestamp value to set.

Returns:

the RedisPatchingCompletedEventData object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to