Principal Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. models. Principal
- com.
Implements
public final class Principal
implements JsonSerializable<Principal>
The name of the entity last modified it.
Constructor Summary
Constructor | Description |
---|---|
Principal() |
Creates an instance of Principal class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
displayName()
Get the display |
String |
email()
Get the email property: Email of principal. |
static Principal |
fromJson(JsonReader jsonReader)
Reads an instance of Principal from the Json |
String |
id()
Get the id property: The id of the principal made changes. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Type of principal such as user , group etc. |
void |
validate()
Validates the instance. |
Principal |
withDisplayName(String displayName)
Set the display |
Principal |
withEmail(String email)
Set the email property: Email of principal. |
Principal |
withId(String id)
Set the id property: The id of the principal made changes. |
Principal |
withType(String type)
Set the type property: Type of principal such as user , group etc. |
Methods inherited from java.lang.Object
Constructor Details
Principal
public Principal()
Creates an instance of Principal class.
Method Details
displayName
public String displayName()
Get the displayName property: The name of the principal made changes.
Returns:
public String email()
Get the email property: Email of principal.
Returns:
fromJson
public static Principal fromJson(JsonReader jsonReader)
Reads an instance of Principal from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The id of the principal made changes.
Returns:
toJson
type
public String type()
Get the type property: Type of principal such as user , group etc.
Returns:
validate
public void validate()
Validates the instance.
withDisplayName
public Principal withDisplayName(String displayName)
Set the displayName property: The name of the principal made changes.
Parameters:
Returns:
withEmail
public Principal withEmail(String email)
Set the email property: Email of principal.
Parameters:
Returns:
withId
public Principal withId(String id)
Set the id property: The id of the principal made changes.
Parameters:
Returns:
withType
public Principal withType(String type)
Set the type property: Type of principal such as user , group etc.
Parameters:
Returns:
Applies to
Azure SDK for Java