Class ContainerRegistryEventTarget
java.lang.Object
com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventTarget
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryEventTarget>
public final class ContainerRegistryEventTarget
extends Object
implements com.azure.json.JsonSerializable<ContainerRegistryEventTarget>
The target of the event.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerRegistryEventTargetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryEventTarget from the JsonReader.Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.Get the length property: The number of bytes of the content.Get the mediaType property: The MIME type of the referenced object.Get the repository property: The repository name.getSize()Get the size property: The number of bytes of the content.getTag()Get the tag property: The tag name.getUrl()Get the url property: The direct URL to the content.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
-
getMediaType
Get the mediaType property: The MIME type of the referenced object.- Returns:
- the mediaType value.
-
getSize
Get the size property: The number of bytes of the content. Same as Length field.- Returns:
- the size value.
-
getDigest
Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.- Returns:
- the digest value.
-
getLength
Get the length property: The number of bytes of the content. Same as Size field.- Returns:
- the length value.
-
getRepository
Get the repository property: The repository name.- Returns:
- the repository value.
-
getUrl
Get the url property: The direct URL to the content.- Returns:
- the url value.
-
getTag
Get the tag property: The tag name.- Returns:
- the tag value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerRegistryEventTarget>- Throws:
IOException
-
fromJson
public static ContainerRegistryEventTarget fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerRegistryEventTarget from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerRegistryEventTarget 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 ContainerRegistryEventTarget.
-