Class AcsSmsReceivedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsSmsEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsSmsReceivedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsSmsEventBaseProperties>
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AcsSmsReceivedEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsSmsReceivedEventData from the JsonReader.getFrom()Get the from property: The identity of SMS message sender.Get the message property: The SMS content.Get the messageId property: The identity of the SMS message.Get the receivedTimestamp property: The time at which the SMS was received.intGet the segmentCount property: Number of segments in the message.getTo()Get the to property: The identity of SMS message receiver.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
-
getMessage
Get the message property: The SMS content.- Returns:
- the message value.
-
getReceivedTimestamp
Get the receivedTimestamp property: The time at which the SMS was received.- Returns:
- the receivedTimestamp value.
-
getSegmentCount
public int getSegmentCount()Get the segmentCount property: Number of segments in the message.- Returns:
- the segmentCount value.
-
getTo
Get the to property: The identity of SMS message receiver.- Overrides:
getToin classAcsSmsEventBaseProperties- Returns:
- the to value.
-
getFrom
Get the from property: The identity of SMS message sender.- Overrides:
getFromin classAcsSmsEventBaseProperties- Returns:
- the from value.
-
getMessageId
Get the messageId property: The identity of the SMS message.- Overrides:
getMessageIdin classAcsSmsEventBaseProperties- Returns:
- the messageId value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsSmsEventBaseProperties>- Overrides:
toJsonin classAcsSmsEventBaseProperties- Throws:
IOException
-
fromJson
public static AcsSmsReceivedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsSmsReceivedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsSmsReceivedEventData 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 AcsSmsReceivedEventData.
-