AcsSmsDeliveryAttemptProperties Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.AcsSmsDeliveryAttemptProperties

Implements

public final class AcsSmsDeliveryAttemptProperties
implements JsonSerializable<AcsSmsDeliveryAttemptProperties>

Schema for details of a delivery attempt.

Constructor Summary

Constructor Description
AcsSmsDeliveryAttemptProperties()

Creates an instance of AcsSmsDeliveryAttemptProperties class.

Method Summary

Modifier and Type Method and Description
static AcsSmsDeliveryAttemptProperties fromJson(JsonReader jsonReader)

Reads an instance of AcsSmsDeliveryAttemptProperties from the JsonReader.

Integer getSegmentsFailed()

Get the segmentsFailed property: Number of segments whose delivery failed.

Integer getSegmentsSucceeded()

Get the segmentsSucceeded property: Number of segments that were successfully delivered.

OffsetDateTime getTimestamp()

Get the timestamp property: TimeStamp when delivery was attempted.

AcsSmsDeliveryAttemptProperties setSegmentsFailed(Integer segmentsFailed)

Set the segmentsFailed property: Number of segments whose delivery failed.

AcsSmsDeliveryAttemptProperties setSegmentsSucceeded(Integer segmentsSucceeded)

Set the segmentsSucceeded property: Number of segments that were successfully delivered.

AcsSmsDeliveryAttemptProperties setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: TimeStamp when delivery was attempted.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

AcsSmsDeliveryAttemptProperties

public AcsSmsDeliveryAttemptProperties()

Creates an instance of AcsSmsDeliveryAttemptProperties class.

Method Details

fromJson

public static AcsSmsDeliveryAttemptProperties fromJson(JsonReader jsonReader)

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:

IOException

- If an error occurs while reading the AcsSmsDeliveryAttemptProperties.

getSegmentsFailed

public Integer getSegmentsFailed()

Get the segmentsFailed property: Number of segments whose delivery failed.

Returns:

the segmentsFailed value.

getSegmentsSucceeded

public Integer getSegmentsSucceeded()

Get the segmentsSucceeded property: Number of segments that were successfully delivered.

Returns:

the segmentsSucceeded value.

getTimestamp

public OffsetDateTime getTimestamp()

Get the timestamp property: TimeStamp when delivery was attempted.

Returns:

the timestamp value.

setSegmentsFailed

public AcsSmsDeliveryAttemptProperties setSegmentsFailed(Integer segmentsFailed)

Set the segmentsFailed property: Number of segments whose delivery failed.

Parameters:

segmentsFailed - the segmentsFailed value to set.

Returns:

the AcsSmsDeliveryAttemptProperties object itself.

setSegmentsSucceeded

public AcsSmsDeliveryAttemptProperties setSegmentsSucceeded(Integer segmentsSucceeded)

Set the segmentsSucceeded property: Number of segments that were successfully delivered.

Parameters:

segmentsSucceeded - the segmentsSucceeded value to set.

Returns:

the AcsSmsDeliveryAttemptProperties object itself.

setTimestamp

public AcsSmsDeliveryAttemptProperties setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: TimeStamp when delivery was attempted.

Parameters:

timestamp - the timestamp value to set.

Returns:

the AcsSmsDeliveryAttemptProperties object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to