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>

public final class AcsMessageDeliveryStatusUpdatedEventData extends AcsMessageEventData
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event.
  • Method Details

    • getMessageId

      public String getMessageId()
      Get the messageId property: The message id.
      Returns:
      the messageId value.
    • getStatus

      public AcsMessageDeliveryStatus getStatus()
      Get the status property: The updated message status.
      Returns:
      the status value.
    • getChannelKind

      public AcsMessageChannelKind 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:
      getError in class AcsMessageEventData
      Returns:
      the error value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsMessageEventData>
      Overrides:
      toJson in class AcsMessageEventData
      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.