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 Type
    Method
    Description
    fromJson(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.
    Get the size property: The number of bytes of the content.
    Get the tag property: The tag name.
    Get the url property: The direct URL to the content.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • getMediaType

      public String getMediaType()
      Get the mediaType property: The MIME type of the referenced object.
      Returns:
      the mediaType value.
    • getSize

      public Long getSize()
      Get the size property: The number of bytes of the content. Same as Length field.
      Returns:
      the size value.
    • getDigest

      public String getDigest()
      Get the digest property: The digest of the content, as defined by the Registry V2 HTTP API Specification.
      Returns:
      the digest value.
    • getLength

      public Long getLength()
      Get the length property: The number of bytes of the content. Same as Size field.
      Returns:
      the length value.
    • getRepository

      public String getRepository()
      Get the repository property: The repository name.
      Returns:
      the repository value.
    • getUrl

      public String getUrl()
      Get the url property: The direct URL to the content.
      Returns:
      the url value.
    • getTag

      public String getTag()
      Get the tag property: The tag name.
      Returns:
      the tag value.
    • toJson

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