Class ContainerRegistryArtifactEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.ContainerRegistryArtifactEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryArtifactEventData>
Direct Known Subclasses:
ContainerRegistryChartDeletedEventData, ContainerRegistryChartPushedEventData

public class ContainerRegistryArtifactEventData extends Object implements com.azure.json.JsonSerializable<ContainerRegistryArtifactEventData>
The content of the event request message.
  • Constructor Details

    • ContainerRegistryArtifactEventData

      protected ContainerRegistryArtifactEventData(String id, OffsetDateTime timestamp, String action, String location, ContainerRegistryArtifactEventTarget target)
      Creates an instance of ContainerRegistryArtifactEventData class.
      Parameters:
      id - the id value to set.
      timestamp - the timestamp value to set.
      action - the action value to set.
      location - the location value to set.
      target - the target value to set.
  • Method Details

    • getId

      public String getId()
      Get the id property: The event ID.
      Returns:
      the id value.
    • getTimestamp

      public OffsetDateTime getTimestamp()
      Get the timestamp property: The time at which the event occurred.
      Returns:
      the timestamp value.
    • getAction

      public String getAction()
      Get the action property: The action that encompasses the provided event.
      Returns:
      the action value.
    • getLocation

      public String getLocation()
      Get the location property: The location of the event.
      Returns:
      the location value.
    • getTarget

      Get the target property: The target of the event.
      Returns:
      the target value.
    • getConnectedRegistry

      public ContainerRegistryEventConnectedRegistry getConnectedRegistry()
      Get the connectedRegistry property: The connected registry information if the event is generated by a connected registry.
      Returns:
      the connectedRegistry value.
    • toJson

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

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