Class ContainerRegistryArtifactEventTarget

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

public final class ContainerRegistryArtifactEventTarget extends Object implements com.azure.json.JsonSerializable<ContainerRegistryArtifactEventTarget>
The target of the event.
  • Method Details

    • getMediaType

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

      public Long getSize()
      Get the size property: The size in bytes of the artifact.
      Returns:
      the size value.
    • getDigest

      public String getDigest()
      Get the digest property: The digest of the artifact.
      Returns:
      the digest value.
    • getRepository

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

      public String getTag()
      Get the tag property: The tag of the artifact.
      Returns:
      the tag value.
    • getName

      public String getName()
      Get the name property: The name of the artifact.
      Returns:
      the name value.
    • getVersion

      public String getVersion()
      Get the version property: The version of the artifact.
      Returns:
      the version value.
    • toJson

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

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