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>

public final class AcsMessageReceivedEventData extends AcsMessageEventData
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.AdvancedMessageReceived event.
  • Method Details

    • getContent

      public String getContent()
      Get the content property: Optional. The message content.
      Returns:
      the content value.
    • getMessageId

      public String getMessageId()
      Get the messageId property: Optional. Message ID. Format is Guid as string.
      Returns:
      the messageId value.
    • getChannelKind

      public AcsMessageChannelKind getChannelKind()
      Get the channelKind property: Required. The message channel type.
      Returns:
      the channelKind value.
    • getMessageType

      public String getMessageType()
      Get the messageType property: Required. Whatsapp message type.
      Returns:
      the messageType value.
    • getMediaContent

      public AcsMessageMediaContent getMediaContent()
      Get the mediaContent property: Optional. The received message media content.
      Returns:
      the mediaContent value.
    • getReaction

      public AcsMessageReactionContent getReaction()
      Get the reaction property: Optional. The received message reaction content.
      Returns:
      the reaction value.
    • getContext

      public AcsMessageContext getContext()
      Get the context property: Optional. The received message context.
      Returns:
      the context value.
    • getButton

      public AcsMessageButtonContent getButton()
      Get the button property: Optional. The received message button content.
      Returns:
      the button value.
    • getInteractiveContent

      public AcsMessageInteractiveContent 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:
      getError in class AcsMessageEventData
      Returns:
      the error value.
    • toJson

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