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 Summary
ConstructorsModifierConstructorDescriptionprotectedContainerRegistryEventData(String id, OffsetDateTime timestamp, String action, String location, ContainerRegistryEventTarget target) Creates an instance of ContainerRegistryEventData class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContainerRegistryEventDatafromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryEventData from the JsonReader.Get the action property: The action that encompasses the provided event.getActor()Get the actor property: The agent that initiated the event.Get the connectedRegistry property: The connected registry information if the event is generated by a connected registry.getId()Get the id property: The event ID.Get the location property: The location of the event.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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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
Get the id property: The event ID.- Returns:
- the id value.
-
getTimestamp
Get the timestamp property: The time at which the event occurred.- Returns:
- the timestamp value.
-
getAction
Get the action property: The action that encompasses the provided event.- Returns:
- the action value.
-
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.
-
getRequest
Get the request property: The request that generated the event.- Returns:
- the request value.
-
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
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
Get the connectedRegistry property: The connected registry information if the event is generated by a connected registry.- Returns:
- the connectedRegistry value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-