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 Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsSmsDeliveryAttemptProperties from the JsonReader.Get the segmentsFailed property: Number of segments whose delivery failed.Get the segmentsSucceeded property: Number of segments that were successfully delivered.Get the timestamp property: TimeStamp when delivery was attempted.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods 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
-
getTimestamp
Get the timestamp property: TimeStamp when delivery was attempted.- Returns:
- the timestamp value.
-
getSegmentsSucceeded
Get the segmentsSucceeded property: Number of segments that were successfully delivered.- Returns:
- the segmentsSucceeded value.
-
getSegmentsFailed
Get the segmentsFailed property: Number of segments whose delivery failed.- Returns:
- the segmentsFailed value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-