Class AcsSmsDeliveryAttemptProperties

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

public final class AcsSmsDeliveryAttemptProperties extends Object implements com.azure.json.JsonSerializable<AcsSmsDeliveryAttemptProperties>
Schema for details of a delivery attempt.
  • Method Details

    • getTimestamp

      public OffsetDateTime getTimestamp()
      Get the timestamp property: TimeStamp when delivery was attempted.
      Returns:
      the timestamp value.
    • getSegmentsSucceeded

      public Integer getSegmentsSucceeded()
      Get the segmentsSucceeded property: Number of segments that were successfully delivered.
      Returns:
      the segmentsSucceeded value.
    • getSegmentsFailed

      public Integer getSegmentsFailed()
      Get the segmentsFailed property: Number of segments whose delivery failed.
      Returns:
      the segmentsFailed value.
    • toJson

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

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