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 Summary
ConstructorsModifierConstructorDescriptionprotectedContainerRegistryArtifactEventData(String id, OffsetDateTime timestamp, String action, String location, ContainerRegistryArtifactEventTarget target) Creates an instance of ContainerRegistryArtifactEventData class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerRegistryArtifactEventData from the JsonReader.Get the action property: The action that encompasses the provided 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 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
-
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
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.
-
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<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.
-