Class AcsEmailDeliveryReportReceivedEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsEmailDeliveryReportReceivedEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsEmailDeliveryReportReceivedEventData>

public final class AcsEmailDeliveryReportReceivedEventData extends Object implements com.azure.json.JsonSerializable<AcsEmailDeliveryReportReceivedEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.EmailDeliveryReportReceived event.
  • Method Details

    • getSender

      public String getSender()
      Get the sender property: The Sender Email Address.
      Returns:
      the sender value.
    • getRecipient

      public String getRecipient()
      Get the recipient property: The recipient Email Address.
      Returns:
      the recipient value.
    • getInternetMessageId

      public String getInternetMessageId()
      Get the internetMessageId property: The Internet Message Id of the email that has been sent.
      Returns:
      the internetMessageId value.
    • getMessageId

      public String getMessageId()
      Get the messageId property: The Id of the email that has been sent.
      Returns:
      the messageId value.
    • getStatus

      public AcsEmailDeliveryReportStatus getStatus()
      Get the status property: The status of the email. Any value other than Delivered is considered failed.
      Returns:
      the status value.
    • getDeliveryStatusDetails

      public AcsEmailDeliveryReportStatusDetails getDeliveryStatusDetails()
      Get the deliveryStatusDetails property: Detailed information about the status if any.
      Returns:
      the deliveryStatusDetails value.
    • getDeliveryAttemptTimestamp

      public OffsetDateTime getDeliveryAttemptTimestamp()
      Get the deliveryAttemptTimestamp property: The time at which the email delivery report received timestamp.
      Returns:
      the deliveryAttemptTimestamp value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsEmailDeliveryReportReceivedEventData>
      Throws:
      IOException
    • fromJson

      public static AcsEmailDeliveryReportReceivedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsEmailDeliveryReportReceivedEventData from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsEmailDeliveryReportReceivedEventData 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 AcsEmailDeliveryReportReceivedEventData.