Class Principal
java.lang.Object
com.azure.resourcemanager.authorization.models.Principal
The name of the entity last modified it.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the displayName property: The name of the principal made changes.email()Get the email property: Email of principal.id()Get the id property: The id of the principal made changes.type()Get the type property: Type of principal such as user , group etc.voidvalidate()Validates the instance.withDisplayName(String displayName) Set the displayName property: The name of the principal made changes.Set the email property: Email of principal.Set the id property: The id of the principal made changes.Set the type property: Type of principal such as user , group etc.
-
Constructor Details
-
Principal
public Principal()Creates an instance of Principal class.
-
-
Method Details
-
id
Get the id property: The id of the principal made changes.- Returns:
- the id value.
-
withId
Set the id property: The id of the principal made changes.- Parameters:
id- the id value to set.- Returns:
- the Principal object itself.
-
displayName
Get the displayName property: The name of the principal made changes.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The name of the principal made changes.- Parameters:
displayName- the displayName value to set.- Returns:
- the Principal object itself.
-
type
Get the type property: Type of principal such as user , group etc.- Returns:
- the type value.
-
withType
Set the type property: Type of principal such as user , group etc.- Parameters:
type- the type value to set.- Returns:
- the Principal object itself.
-
email
Get the email property: Email of principal.- Returns:
- the email value.
-
withEmail
Set the email property: Email of principal.- Parameters:
email- the email value to set.- Returns:
- the Principal object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-