Class ContainerRegistryEventData

java.lang.Object
com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventData
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerRegistryEventData>
Direct Known Subclasses:
ContainerRegistryImageDeletedEventData, ContainerRegistryImagePushedEventData

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

    • ContainerRegistryEventData

      protected ContainerRegistryEventData(String id, OffsetDateTime timestamp, String action, String location, ContainerRegistryEventTarget target)
      Creates an instance of ContainerRegistryEventData 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

      public ContainerRegistryEventTarget getTarget()
      Get the target property: The target of the event.
      Returns:
      the target value.
    • getRequest

      public ContainerRegistryEventRequest getRequest()
      Get the request property: The request that generated the event.
      Returns:
      the request value.
    • getActor

      public ContainerRegistryEventActor getActor()
      Get the actor property: The agent that initiated the event. For most situations, this could be from the authorization context of the request.
      Returns:
      the actor value.
    • getSource

      public ContainerRegistryEventSource getSource()
      Get the source property: The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.
      Returns:
      the source 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<ContainerRegistryEventData>
      Throws:
      IOException
    • fromJson

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