Class EventContent

java.lang.Object
com.azure.resourcemanager.containerregistry.models.EventContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<EventContent>

public final class EventContent extends Object implements com.azure.json.JsonSerializable<EventContent>
The content of the event request message.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the action property: The action that encompasses the provided event.
    Get the actor property: The agent that initiated the event.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of EventContent from the JsonReader.
    id()
    Get the id property: The event ID.
    Get the request property: The request that generated the event.
    Get the source property: The registry node that generated the event.
    Get the target property: The target of the event.
    Get the timestamp property: The time at which the event occurred.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class 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

    • id

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

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

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

      public Target target()
      Get the target property: The target of the event.
      Returns:
      the target value.
    • request

      public Request request()
      Get the request property: The request that generated the event.
      Returns:
      the request value.
    • actor

      public Actor actor()
      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.
    • source

      public Source source()
      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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

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

      public static EventContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of EventContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of EventContent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the EventContent.