Class Principal
- java.lang.Object
-
- com.azure.resourcemanager.authorization.models.Principal
-
public final class Principal extends Object
The name of the entity last modified it.
-
-
Constructor Summary
Constructors Constructor Description Principal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayName()
Get the displayName property: The name of the principal made changes.String
email()
Get the email property: Email of principal.String
id()
Get the id property: The id of the principal made changes.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 displayName property: The name of the principal made changes.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.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The id of the principal made changes.- Returns:
- the id value.
-
withId
public Principal withId(String id)
Set the id property: The id of the principal made changes.- Parameters:
id
- the id value to set.- Returns:
- the Principal object itself.
-
displayName
public String displayName()
Get the displayName property: The name of the principal made changes.- Returns:
- the displayName value.
-
withDisplayName
public Principal withDisplayName(String displayName)
Set the displayName property: The name of the principal made changes.- Parameters:
displayName
- the displayName value to set.- Returns:
- the Principal object itself.
-
type
public String type()
Get the type property: Type of principal such as user , group etc.- Returns:
- the type value.
-
withType
public Principal withType(String type)
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
public String email()
Get the email property: Email of principal.- Returns:
- the email value.
-
withEmail
public Principal withEmail(String email)
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.
-
-