ContainerRegistryChartPushedEventData Class

public final class ContainerRegistryChartPushedEventData
extends ContainerRegistryArtifactEventData

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

Constructor Summary

Constructor Description
ContainerRegistryChartPushedEventData()

Creates an instance of ContainerRegistryChartPushedEventData class.

Method Summary

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

Reads an instance of ContainerRegistryChartPushedEventData from the JsonReader.

ContainerRegistryChartPushedEventData setAction(String action)

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

ContainerRegistryChartPushedEventData setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

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

ContainerRegistryChartPushedEventData setId(String id)

Set the id property: The event ID.

ContainerRegistryChartPushedEventData setLocation(String location)

Set the location property: The location of the event.

ContainerRegistryChartPushedEventData setTarget(ContainerRegistryArtifactEventTarget target)

Set the target property: The target of the event.

ContainerRegistryChartPushedEventData setTimestamp(OffsetDateTime timestamp)

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from ContainerRegistryArtifactEventData

Methods inherited from java.lang.Object

Constructor Details

ContainerRegistryChartPushedEventData

public ContainerRegistryChartPushedEventData()

Creates an instance of ContainerRegistryChartPushedEventData class.

Method Details

fromJson

public static ContainerRegistryChartPushedEventData fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryChartPushedEventData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

setAction

public ContainerRegistryChartPushedEventData setAction(String action)

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

Overrides:

ContainerRegistryChartPushedEventData.setAction(String action)

Parameters:

action

setConnectedRegistry

public ContainerRegistryChartPushedEventData setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

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

Overrides:

ContainerRegistryChartPushedEventData.setConnectedRegistry(ContainerRegistryEventConnectedRegistry connectedRegistry)

Parameters:

connectedRegistry

setId

public ContainerRegistryChartPushedEventData setId(String id)

Set the id property: The event ID.

Overrides:

ContainerRegistryChartPushedEventData.setId(String id)

Parameters:

id

setLocation

public ContainerRegistryChartPushedEventData setLocation(String location)

Set the location property: The location of the event.

Overrides:

ContainerRegistryChartPushedEventData.setLocation(String location)

Parameters:

location

setTarget

public ContainerRegistryChartPushedEventData setTarget(ContainerRegistryArtifactEventTarget target)

Set the target property: The target of the event.

Overrides:

ContainerRegistryChartPushedEventData.setTarget(ContainerRegistryArtifactEventTarget target)

Parameters:

target

setTimestamp

public ContainerRegistryChartPushedEventData setTimestamp(OffsetDateTime timestamp)

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

Overrides:

ContainerRegistryChartPushedEventData.setTimestamp(OffsetDateTime timestamp)

Parameters:

timestamp

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContainerRegistryChartPushedEventData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest