Sdílet prostřednictvím


Actor Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.Actor

Implements

public final class Actor
implements JsonSerializable<Actor>

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

Constructor Summary

Constructor Description
Actor()

Creates an instance of Actor class.

Method Summary

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

Reads an instance of Actor from the JsonReader.

String name()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Actor withName(String name)

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

Methods inherited from java.lang.Object

Constructor Details

Actor

public Actor()

Creates an instance of Actor class.

Method Details

fromJson

public static Actor fromJson(JsonReader jsonReader)

Reads an instance of Actor from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

name

public String name()

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

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withName

public Actor withName(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 Actor object itself.

Applies to