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
ConstructorsModifierConstructorDescriptionprotectedCreates an instance of AcsSmsEventBaseProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic AcsSmsEventBasePropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsSmsEventBaseProperties from the JsonReader.getFrom()Get the from property: The identity of SMS message sender.Get the messageId property: The identity of the SMS 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
-
Constructor Details
-
AcsSmsEventBaseProperties
protected AcsSmsEventBaseProperties()Creates an instance of AcsSmsEventBaseProperties class.
-
-
Method Details
-
getMessageId
Get the messageId property: The identity of the SMS message.- Returns:
- the messageId value.
-
getFrom
Get the from property: The identity of SMS message sender.- Returns:
- the from value.
-
getTo
Get the to property: The identity of SMS message receiver.- Returns:
- the to value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-