Class ClientInfo
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.ClientInfo
-
public final class ClientInfo extends Object
Information on the client (user or application) that made some action.
-
-
Constructor Summary
Constructors Constructor Description ClientInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
email()
Get the email property: The email of the client.String
name()
Get the name property: The name of the client.UUID
objectId()
Get the objectId property: The object id of the client.String
userPrincipalName()
Get the userPrincipalName property: The user principal name of the client.void
validate()
Validates the instance.ClientInfo
withEmail(String email)
Set the email property: The email of the client.ClientInfo
withName(String name)
Set the name property: The name of the client.ClientInfo
withObjectId(UUID objectId)
Set the objectId property: The object id of the client.ClientInfo
withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name of the client.
-
-
-
Method Detail
-
email
public String email()
Get the email property: The email of the client.- Returns:
- the email value.
-
withEmail
public ClientInfo withEmail(String email)
Set the email property: The email of the client.- Parameters:
email
- the email value to set.- Returns:
- the ClientInfo object itself.
-
name
public String name()
Get the name property: The name of the client.- Returns:
- the name value.
-
withName
public ClientInfo withName(String name)
Set the name property: The name of the client.- Parameters:
name
- the name value to set.- Returns:
- the ClientInfo object itself.
-
objectId
public UUID objectId()
Get the objectId property: The object id of the client.- Returns:
- the objectId value.
-
withObjectId
public ClientInfo withObjectId(UUID objectId)
Set the objectId property: The object id of the client.- Parameters:
objectId
- the objectId value to set.- Returns:
- the ClientInfo object itself.
-
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name of the client.- Returns:
- the userPrincipalName value.
-
withUserPrincipalName
public ClientInfo withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name of the client.- Parameters:
userPrincipalName
- the userPrincipalName value to set.- Returns:
- the ClientInfo object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-