Principal Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.models.Principal

Implements

public final class Principal
implements JsonSerializable<Principal>

The name of the entity last modified it.

Method Summary

Modifier and Type Method and Description
String displayName()

Get the displayName property: The name of the principal made changes.

String email()

Get the email property: Email of principal.

static Principal fromJson(JsonReader jsonReader)

Reads an instance of Principal from the JsonReader.

String id()

Get the id property: The id of the principal made changes.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of principal such as user , group etc.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

displayName

public String displayName()

Get the displayName property: The name of the principal made changes.

Returns:

the displayName value.

email

public String email()

Get the email property: Email of principal.

Returns:

the email value.

fromJson

public static Principal fromJson(JsonReader jsonReader)

Reads an instance of Principal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The id of the principal made changes.

Returns:

the id value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of principal such as user , group etc.

Returns:

the type value.

validate

public void validate()

Validates the instance.

Applies to