Actor Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. Actor
- com.
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 Json |
String |
name()
Get the name property: The subject or username associated with the request context that generated the event. |
Json |
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:
Returns:
Throws:
name
public String name()
Get the name property: The subject or username associated with the request context that generated the event.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java