AcsChatThreadPropertiesUpdatedEventData Class

public final class AcsChatThreadPropertiesUpdatedEventData
extends AcsChatThreadEventInThreadBaseProperties

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

Constructor Summary

Constructor Description
AcsChatThreadPropertiesUpdatedEventData()

Creates an instance of AcsChatThreadPropertiesUpdatedEventData class.

Method Summary

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

Reads an instance of AcsChatThreadPropertiesUpdatedEventData from the JsonReader.

OffsetDateTime getEditTime()

Get the editTime property: The time at which the properties of the thread were updated.

CommunicationIdentifierModel getEditedByCommunicationIdentifier()

Get the editedByCommunicationIdentifier property: The communication identifier of the user who updated the thread properties.

Map<String,String> getMetadata()

Get the metadata property: The thread metadata.

Map<String,Object> getProperties()

Get the properties property: The updated thread properties.

AcsChatThreadPropertiesUpdatedEventData setCreateTime(OffsetDateTime createTime)

Set the createTime property: The original creation time of the thread.

AcsChatThreadPropertiesUpdatedEventData setEditTime(OffsetDateTime editTime)

Set the editTime property: The time at which the properties of the thread were updated.

AcsChatThreadPropertiesUpdatedEventData setEditedByCommunicationIdentifier(CommunicationIdentifierModel editedByCommunicationIdentifier)

Set the editedByCommunicationIdentifier property: The communication identifier of the user who updated the thread properties.

AcsChatThreadPropertiesUpdatedEventData setMetadata(Map<String,String> metadata)

Set the metadata property: The thread metadata.

AcsChatThreadPropertiesUpdatedEventData setProperties(Map<String,Object> properties)

Set the properties property: The updated thread properties.

AcsChatThreadPropertiesUpdatedEventData setThreadId(String threadId)

Set the threadId property: The chat thread id.

AcsChatThreadPropertiesUpdatedEventData setTransactionId(String transactionId)

Set the transactionId property: The transaction id will be used as co-relation vector.

AcsChatThreadPropertiesUpdatedEventData setVersion(Long version)

Set the version property: The version of the thread.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from AcsChatEventInThreadBaseProperties

Methods inherited from AcsChatThreadEventInThreadBaseProperties

Methods inherited from java.lang.Object

Constructor Details

AcsChatThreadPropertiesUpdatedEventData

public AcsChatThreadPropertiesUpdatedEventData()

Creates an instance of AcsChatThreadPropertiesUpdatedEventData class.

Method Details

fromJson

public static AcsChatThreadPropertiesUpdatedEventData fromJson(JsonReader jsonReader)

Reads an instance of AcsChatThreadPropertiesUpdatedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AcsChatThreadPropertiesUpdatedEventData 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 AcsChatThreadPropertiesUpdatedEventData.

getEditTime

public OffsetDateTime getEditTime()

Get the editTime property: The time at which the properties of the thread were updated.

Returns:

the editTime value.

getEditedByCommunicationIdentifier

public CommunicationIdentifierModel getEditedByCommunicationIdentifier()

Get the editedByCommunicationIdentifier property: The communication identifier of the user who updated the thread properties.

Returns:

the editedByCommunicationIdentifier value.

getMetadata

public Map getMetadata()

Get the metadata property: The thread metadata.

Returns:

the metadata value.

getProperties

public Map getProperties()

Get the properties property: The updated thread properties.

Returns:

the properties value.

setCreateTime

public AcsChatThreadPropertiesUpdatedEventData setCreateTime(OffsetDateTime createTime)

Set the createTime property: The original creation time of the thread.

Overrides:

AcsChatThreadPropertiesUpdatedEventData.setCreateTime(OffsetDateTime createTime)

Parameters:

createTime

setEditTime

public AcsChatThreadPropertiesUpdatedEventData setEditTime(OffsetDateTime editTime)

Set the editTime property: The time at which the properties of the thread were updated.

Parameters:

editTime - the editTime value to set.

Returns:

the AcsChatThreadPropertiesUpdatedEventData object itself.

setEditedByCommunicationIdentifier

public AcsChatThreadPropertiesUpdatedEventData setEditedByCommunicationIdentifier(CommunicationIdentifierModel editedByCommunicationIdentifier)

Set the editedByCommunicationIdentifier property: The communication identifier of the user who updated the thread properties.

Parameters:

editedByCommunicationIdentifier - the editedByCommunicationIdentifier value to set.

Returns:

the AcsChatThreadPropertiesUpdatedEventData object itself.

setMetadata

public AcsChatThreadPropertiesUpdatedEventData setMetadata(Map metadata)

Set the metadata property: The thread metadata.

Parameters:

metadata - the metadata value to set.

Returns:

the AcsChatThreadPropertiesUpdatedEventData object itself.

setProperties

public AcsChatThreadPropertiesUpdatedEventData setProperties(Map properties)

Set the properties property: The updated thread properties.

Parameters:

properties - the properties value to set.

Returns:

the AcsChatThreadPropertiesUpdatedEventData object itself.

setThreadId

public AcsChatThreadPropertiesUpdatedEventData setThreadId(String threadId)

Set the threadId property: The chat thread id.

Overrides:

AcsChatThreadPropertiesUpdatedEventData.setThreadId(String threadId)

Parameters:

threadId

setTransactionId

public AcsChatThreadPropertiesUpdatedEventData setTransactionId(String transactionId)

Set the transactionId property: The transaction id will be used as co-relation vector.

Overrides:

AcsChatThreadPropertiesUpdatedEventData.setTransactionId(String transactionId)

Parameters:

transactionId

setVersion

public AcsChatThreadPropertiesUpdatedEventData setVersion(Long version)

Set the version property: The version of the thread.

Overrides:

AcsChatThreadPropertiesUpdatedEventData.setVersion(Long version)

Parameters:

version

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

AcsChatThreadPropertiesUpdatedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to