Class AcsMessageDeliveryStatusUpdatedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsMessageEventData
com.azure.messaging.eventgrid.systemevents.AcsMessageDeliveryStatusUpdatedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsMessageEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated
event.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsMessageDeliveryStatusUpdatedEventData from the JsonReader.Get the channelKind property: The updated message channel type.com.azure.core.models.ResponseErrorgetError()Get the error property: The channel error code and message.Get the messageId property: The message id.Get the status property: The updated message status.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsMessageEventData
getFrom, getReceivedTimestamp, getToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getMessageId
Get the messageId property: The message id.- Returns:
- the messageId value.
-
getStatus
Get the status property: The updated message status.- Returns:
- the status value.
-
getChannelKind
Get the channelKind property: The updated message channel type.- Returns:
- the channelKind value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: The channel error code and message.- Overrides:
getErrorin classAcsMessageEventData- Returns:
- the error value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsMessageEventData>- Overrides:
toJsonin classAcsMessageEventData- Throws:
IOException
-
fromJson
public static AcsMessageDeliveryStatusUpdatedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsMessageDeliveryStatusUpdatedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsMessageDeliveryStatusUpdatedEventData if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the AcsMessageDeliveryStatusUpdatedEventData.
-