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 Summary
Modifier and TypeMethodDescriptionstatic AcsMessageMediaContentfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AcsMessageMediaContent from the JsonReader.Get the caption property: Optional.Get the fileName property: Optional.Get the mediaId property: Required.Get the mimeType property: Required.Get the animated property: Optional.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
-
Method Details
-
getMimeType
Get the mimeType property: Required. The MIME type of the file this media represents.- Returns:
- the mimeType value.
-
getMediaId
Get the mediaId property: Required. The media identifier.- Returns:
- the mediaId value.
-
getFileName
Get the fileName property: Optional. The filename of the underlying media file as specified when uploaded.- Returns:
- the fileName value.
-
getCaption
Get the caption property: Optional. The caption for the media object, if supported and provided.- Returns:
- the caption value.
-
isAnimated
Get the animated property: Optional. Set to true if the sticker is animated; false otherwise.- Returns:
- the animated value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-