Udostępnij za pośrednictwem


ContainerRegistryImagePushedEventData Class

@Deprecated
public final class ContainerRegistryImagePushedEventData
extends ContainerRegistryEventData

Note

This class has been deprecated. This class is deprecated and may be removed in future releases. System events are now available in the azure-messaging-eventgrid-systemevents package.

Schema of the Data property of an EventGridEvent for a Microsoft.ContainerRegistry.ImagePushed event.

Constructor Summary

Constructor Description
ContainerRegistryImagePushedEventData()

Creates an instance of ContainerRegistryImagePushedEventData class.

Method Summary

Modifier and Type Method and Description
static ContainerRegistryImagePushedEventData fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryImagePushedEventData from the JsonReader.

ContainerRegistryImagePushedEventData setAction(String action)

Set the action property: The action that encompasses the provided event.

ContainerRegistryImagePushedEventData setActor(ContainerRegistryEventActor actor)

Set the actor property: The agent that initiated the event.

ContainerRegistryImagePushedEventData setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

Set the connectedRegistry property: The connected registry information if the event is generated by a connected registry.

ContainerRegistryImagePushedEventData setId(String id)

Set the id property: The event ID.

ContainerRegistryImagePushedEventData setLocation(String location)

Set the location property: The location of the event.

ContainerRegistryImagePushedEventData setRequest(ContainerRegistryEventRequest request)

Set the request property: The request that generated the event.

ContainerRegistryImagePushedEventData setSource(ContainerRegistryEventSource source)

Set the source property: The registry node that generated the event.

ContainerRegistryImagePushedEventData setTarget(ContainerRegistryEventTarget target)

Set the target property: The target of the event.

ContainerRegistryImagePushedEventData setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time at which the event occurred.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from ContainerRegistryEventData

Methods inherited from java.lang.Object

Constructor Details

ContainerRegistryImagePushedEventData

public ContainerRegistryImagePushedEventData()

Creates an instance of ContainerRegistryImagePushedEventData class.

Method Details

fromJson

public static ContainerRegistryImagePushedEventData fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryImagePushedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerRegistryImagePushedEventData 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 ContainerRegistryImagePushedEventData.

setAction

public ContainerRegistryImagePushedEventData setAction(String action)

Set the action property: The action that encompasses the provided event.

Overrides:

ContainerRegistryImagePushedEventData.setAction(String action)

Parameters:

action

setActor

public ContainerRegistryImagePushedEventData setActor(ContainerRegistryEventActor actor)

Set the actor property: The agent that initiated the event. For most situations, this could be from the authorization context of the request.

Overrides:

ContainerRegistryImagePushedEventData.setActor(ContainerRegistryEventActor actor)

Parameters:

actor

setConnectedRegistry

public ContainerRegistryImagePushedEventData setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

Set the connectedRegistry property: The connected registry information if the event is generated by a connected registry.

Overrides:

ContainerRegistryImagePushedEventData.setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

Parameters:

connectedRegistry

setId

public ContainerRegistryImagePushedEventData setId(String id)

Set the id property: The event ID.

Overrides:

ContainerRegistryImagePushedEventData.setId(String id)

Parameters:

id

setLocation

public ContainerRegistryImagePushedEventData setLocation(String location)

Set the location property: The location of the event.

Overrides:

ContainerRegistryImagePushedEventData.setLocation(String location)

Parameters:

location

setRequest

public ContainerRegistryImagePushedEventData setRequest(ContainerRegistryEventRequest request)

Set the request property: The request that generated the event.

Overrides:

ContainerRegistryImagePushedEventData.setRequest(ContainerRegistryEventRequest request)

Parameters:

request

setSource

public ContainerRegistryImagePushedEventData setSource(ContainerRegistryEventSource source)

Set the source property: The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it.

Overrides:

ContainerRegistryImagePushedEventData.setSource(ContainerRegistryEventSource source)

Parameters:

source

setTarget

public ContainerRegistryImagePushedEventData setTarget(ContainerRegistryEventTarget target)

Set the target property: The target of the event.

Overrides:

ContainerRegistryImagePushedEventData.setTarget(ContainerRegistryEventTarget target)

Parameters:

target

setTimestamp

public ContainerRegistryImagePushedEventData setTimestamp(OffsetDateTime timestamp)

Set the timestamp property: The time at which the event occurred.

Overrides:

ContainerRegistryImagePushedEventData.setTimestamp(OffsetDateTime timestamp)

Parameters:

timestamp

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContainerRegistryImagePushedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to