ContainerRegistryEventActor Class

  • java.lang.Object
    • com.azure.messaging.eventgrid.systemevents.ContainerRegistryEventActor

Implements

public final class ContainerRegistryEventActor
implements JsonSerializable<ContainerRegistryEventActor>

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

Constructor Summary

Constructor Description
ContainerRegistryEventActor()

Creates an instance of ContainerRegistryEventActor class.

Method Summary

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

Reads an instance of ContainerRegistryEventActor from the JsonReader.

String getName()

Get the name property: The subject or username associated with the request context that generated the event.

ContainerRegistryEventActor setName(String name)

Set the name property: The subject or username associated with the request context that generated the event.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

ContainerRegistryEventActor

public ContainerRegistryEventActor()

Creates an instance of ContainerRegistryEventActor class.

Method Details

fromJson

public static ContainerRegistryEventActor fromJson(JsonReader jsonReader)

Reads an instance of ContainerRegistryEventActor from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getName

public String getName()

Get the name property: The subject or username associated with the request context that generated the event.

Returns:

the name value.

setName

public ContainerRegistryEventActor setName(String name)

Set the name property: The subject or username associated with the request context that generated the event.

Parameters:

name - the name value to set.

Returns:

the ContainerRegistryEventActor object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to

Azure SDK for Java

Latest