Lezen in het Engels

Delen via


AcsMessageDeliveryStatusUpdatedEventData Class

public final class AcsMessageDeliveryStatusUpdatedEventData
extends AcsMessageEventData

Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageDeliveryStatusUpdated event.

Constructor Summary

Constructor Description
AcsMessageDeliveryStatusUpdatedEventData()

Creates an instance of AcsMessageDeliveryStatusUpdatedEventData class.

Method Summary

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

Reads an instance of AcsMessageDeliveryStatusUpdatedEventData from the JsonReader.

AcsMessageChannelKind getChannelKind()

Get the channelKind property: The updated message channel type.

String getMessageId()

Get the messageId property: The message id.

AcsMessageDeliveryStatus getStatus()

Get the status property: The updated message status.

AcsMessageDeliveryStatusUpdatedEventData setChannelKind(AcsMessageChannelKind channelKind)

Set the channelKind property: The updated message channel type.

AcsMessageDeliveryStatusUpdatedEventData setError(ResponseError error)

Set the error property: The channel error code and message.

AcsMessageDeliveryStatusUpdatedEventData setFrom(String from)

Set the from property: The message sender.

AcsMessageDeliveryStatusUpdatedEventData setMessageId(String messageId)

Set the messageId property: The message id.

AcsMessageDeliveryStatusUpdatedEventData setReceivedTimestamp(OffsetDateTime receivedTimestamp)

Set the receivedTimestamp property: The time message was received.

AcsMessageDeliveryStatusUpdatedEventData setStatus(AcsMessageDeliveryStatus status)

Set the status property: The updated message status.

AcsMessageDeliveryStatusUpdatedEventData setTo(String to)

Set the to property: The message recipient.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AcsMessageEventData

Methods inherited from java.lang.Object

Constructor Details

AcsMessageDeliveryStatusUpdatedEventData

public AcsMessageDeliveryStatusUpdatedEventData()

Creates an instance of AcsMessageDeliveryStatusUpdatedEventData class.

Method Details

fromJson

public static AcsMessageDeliveryStatusUpdatedEventData fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

getChannelKind

public AcsMessageChannelKind getChannelKind()

Get the channelKind property: The updated message channel type.

Returns:

the channelKind value.

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.

setChannelKind

public AcsMessageDeliveryStatusUpdatedEventData setChannelKind(AcsMessageChannelKind channelKind)

Set the channelKind property: The updated message channel type.

Parameters:

channelKind - the channelKind value to set.

Returns:

the AcsMessageDeliveryStatusUpdatedEventData object itself.

setError

public AcsMessageDeliveryStatusUpdatedEventData setError(ResponseError error)

Set the error property: The channel error code and message.

Overrides:

AcsMessageDeliveryStatusUpdatedEventData.setError(ResponseError error)

Parameters:

error - The ResponseError object containing error code and message.

Returns:

the AcsMessageDeliveryStatusUpdatedEventData object itself.

setFrom

public AcsMessageDeliveryStatusUpdatedEventData setFrom(String from)

Set the from property: The message sender.

Overrides:

AcsMessageDeliveryStatusUpdatedEventData.setFrom(String from)

Parameters:

from

setMessageId

public AcsMessageDeliveryStatusUpdatedEventData setMessageId(String messageId)

Set the messageId property: The message id.

Parameters:

messageId - the messageId value to set.

Returns:

the AcsMessageDeliveryStatusUpdatedEventData object itself.

setReceivedTimestamp

public AcsMessageDeliveryStatusUpdatedEventData setReceivedTimestamp(OffsetDateTime receivedTimestamp)

Set the receivedTimestamp property: The time message was received.

Overrides:

AcsMessageDeliveryStatusUpdatedEventData.setReceivedTimestamp(OffsetDateTime receivedTimestamp)

Parameters:

receivedTimestamp

setStatus

public AcsMessageDeliveryStatusUpdatedEventData setStatus(AcsMessageDeliveryStatus status)

Set the status property: The updated message status.

Parameters:

status - the status value to set.

Returns:

the AcsMessageDeliveryStatusUpdatedEventData object itself.

setTo

public AcsMessageDeliveryStatusUpdatedEventData setTo(String to)

Set the to property: The message recipient.

Overrides:

AcsMessageDeliveryStatusUpdatedEventData.setTo(String to)

Parameters:

to

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AcsMessageDeliveryStatusUpdatedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest