Class AcsSmsEventBaseProperties

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsSmsEventBaseProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsSmsEventBaseProperties>
Direct Known Subclasses:
AcsSmsDeliveryReportReceivedEventData, AcsSmsReceivedEventData

public class AcsSmsEventBaseProperties extends Object implements com.azure.json.JsonSerializable<AcsSmsEventBaseProperties>
Schema of common properties of all SMS events.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates an instance of AcsSmsEventBaseProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AcsSmsEventBaseProperties from the JsonReader.
    Get the from property: The identity of SMS message sender.
    Get the messageId property: The identity of the SMS message.
    Get the to property: The identity of SMS message receiver.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AcsSmsEventBaseProperties

      protected AcsSmsEventBaseProperties()
      Creates an instance of AcsSmsEventBaseProperties class.
  • Method Details

    • getMessageId

      public String getMessageId()
      Get the messageId property: The identity of the SMS message.
      Returns:
      the messageId value.
    • getFrom

      public String getFrom()
      Get the from property: The identity of SMS message sender.
      Returns:
      the from value.
    • getTo

      public String getTo()
      Get the to property: The identity of SMS message receiver.
      Returns:
      the to 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>
      Throws:
      IOException
    • fromJson

      public static AcsSmsEventBaseProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AcsSmsEventBaseProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AcsSmsEventBaseProperties 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 AcsSmsEventBaseProperties.