Class AcsMessageReceivedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsMessageEventData
com.azure.messaging.eventgrid.systemevents.AcsMessageReceivedEventData
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsMessageEventData>
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic AcsMessageReceivedEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsMessageReceivedEventData from the JsonReader.Get the button property: Optional.Get the channelKind property: Required.Get the content property: Optional.Get the context property: Optional.com.azure.core.models.ResponseErrorgetError()Get the error property: The channel error code and message.Get the interactiveContent property: Optional.Get the mediaContent property: Optional.Get the messageId property: Optional.Get the messageType property: Required.Get the reaction property: Optional.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsMessageEventData
getFrom, getReceivedTimestamp, getToMethods 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
-
getContent
Get the content property: Optional. The message content.- Returns:
- the content value.
-
getMessageId
Get the messageId property: Optional. Message ID. Format is Guid as string.- Returns:
- the messageId value.
-
getChannelKind
Get the channelKind property: Required. The message channel type.- Returns:
- the channelKind value.
-
getMessageType
Get the messageType property: Required. Whatsapp message type.- Returns:
- the messageType value.
-
getMediaContent
Get the mediaContent property: Optional. The received message media content.- Returns:
- the mediaContent value.
-
getReaction
Get the reaction property: Optional. The received message reaction content.- Returns:
- the reaction value.
-
getContext
Get the context property: Optional. The received message context.- Returns:
- the context value.
-
getButton
Get the button property: Optional. The received message button content.- Returns:
- the button value.
-
getInteractiveContent
Get the interactiveContent property: Optional. The received message interactive content.- Returns:
- the interactiveContent value.
-
getError
public com.azure.core.models.ResponseError getError()Get the error property: The channel error code and message.- Overrides:
getErrorin classAcsMessageEventData- Returns:
- the error value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AcsMessageEventData>- Overrides:
toJsonin classAcsMessageEventData- Throws:
IOException
-
fromJson
public static AcsMessageReceivedEventData fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AcsMessageReceivedEventData from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AcsMessageReceivedEventData 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 AcsMessageReceivedEventData.
-