Class AcsMessageMediaContent

java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsMessageMediaContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<AcsMessageMediaContent>

public final class AcsMessageMediaContent extends Object implements com.azure.json.JsonSerializable<AcsMessageMediaContent>
Message Media Content.
  • Method Details

    • getMimeType

      public String getMimeType()
      Get the mimeType property: Required. The MIME type of the file this media represents.
      Returns:
      the mimeType value.
    • getMediaId

      public String getMediaId()
      Get the mediaId property: Required. The media identifier.
      Returns:
      the mediaId value.
    • getFileName

      public String getFileName()
      Get the fileName property: Optional. The filename of the underlying media file as specified when uploaded.
      Returns:
      the fileName value.
    • getCaption

      public String getCaption()
      Get the caption property: Optional. The caption for the media object, if supported and provided.
      Returns:
      the caption value.
    • isAnimated

      public Boolean isAnimated()
      Get the animated property: Optional. Set to true if the sticker is animated; false otherwise.
      Returns:
      the animated value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AcsMessageMediaContent>
      Throws:
      IOException
    • fromJson

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