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>

public final class AcsSmsReceivedEventData extends AcsSmsEventBaseProperties
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.SMSReceived event.
  • Method Details

    • getMessage

      public String getMessage()
      Get the message property: The SMS content.
      Returns:
      the message value.
    • getReceivedTimestamp

      public OffsetDateTime 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

      public String getTo()
      Get the to property: The identity of SMS message receiver.
      Overrides:
      getTo in class AcsSmsEventBaseProperties
      Returns:
      the to value.
    • getFrom

      public String getFrom()
      Get the from property: The identity of SMS message sender.
      Overrides:
      getFrom in class AcsSmsEventBaseProperties
      Returns:
      the from value.
    • getMessageId

      public String getMessageId()
      Get the messageId property: The identity of the SMS message.
      Overrides:
      getMessageId in class AcsSmsEventBaseProperties
      Returns:
      the messageId value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsSmsEventBaseProperties>
      Overrides:
      toJson in class AcsSmsEventBaseProperties
      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.