Class AcsSmsReceivedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsSmsEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AcsSmsReceivedEventData class. -
Method Summary
Modifier and TypeMethodDescriptionGet the message property: The SMS content.Get the receivedTimestamp property: The time at which the SMS was received.Set the from property: The identity of SMS message sender.setMessage(String message) Set the message property: The SMS content.setMessageId(String messageId) Set the messageId property: The identity of the SMS message.setReceivedTimestamp(OffsetDateTime receivedTimestamp) Set the receivedTimestamp property: The time at which the SMS was received.Set the to property: The identity of SMS message receiver.Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsSmsEventBaseProperties
getFrom, getMessageId, getTo
-
Constructor Details
-
AcsSmsReceivedEventData
public AcsSmsReceivedEventData()Creates an instance of AcsSmsReceivedEventData class.
-
-
Method Details
-
getMessage
Get the message property: The SMS content.- Returns:
- the message value.
-
setMessage
Set the message property: The SMS content.- Parameters:
message- the message value to set.- Returns:
- the AcsSmsReceivedEventData object itself.
-
getReceivedTimestamp
Get the receivedTimestamp property: The time at which the SMS was received.- Returns:
- the receivedTimestamp value.
-
setReceivedTimestamp
Set the receivedTimestamp property: The time at which the SMS was received.- Parameters:
receivedTimestamp- the receivedTimestamp value to set.- Returns:
- the AcsSmsReceivedEventData object itself.
-
setMessageId
Set the messageId property: The identity of the SMS message.- Overrides:
setMessageIdin classAcsSmsEventBaseProperties- Parameters:
messageId- the messageId value to set.- Returns:
- the AcsSmsEventBaseProperties object itself.
-
setFrom
Set the from property: The identity of SMS message sender.- Overrides:
setFromin classAcsSmsEventBaseProperties- Parameters:
from- the from value to set.- Returns:
- the AcsSmsEventBaseProperties object itself.
-
setTo
Set the to property: The identity of SMS message receiver.- Overrides:
setToin classAcsSmsEventBaseProperties- Parameters:
to- the to value to set.- Returns:
- the AcsSmsEventBaseProperties object itself.
-