Class IncidentOwnerInfo
- java.lang.Object
-
- com.azure.resourcemanager.securityinsights.models.IncidentOwnerInfo
-
public final class IncidentOwnerInfo extends Object
Information on the user an incident is assigned to.
-
-
Constructor Summary
Constructors Constructor Description IncidentOwnerInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
assignedTo()
Get the assignedTo property: The name of the user the incident is assigned to.String
email()
Get the email property: The email of the user the incident is assigned to.UUID
objectId()
Get the objectId property: The object id of the user the incident is assigned to.OwnerType
ownerType()
Get the ownerType property: The type of the owner the incident is assigned to.String
userPrincipalName()
Get the userPrincipalName property: The user principal name of the user the incident is assigned to.void
validate()
Validates the instance.IncidentOwnerInfo
withAssignedTo(String assignedTo)
Set the assignedTo property: The name of the user the incident is assigned to.IncidentOwnerInfo
withEmail(String email)
Set the email property: The email of the user the incident is assigned to.IncidentOwnerInfo
withObjectId(UUID objectId)
Set the objectId property: The object id of the user the incident is assigned to.IncidentOwnerInfo
withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name of the user the incident is assigned to.
-
-
-
Method Detail
-
email
public String email()
Get the email property: The email of the user the incident is assigned to.- Returns:
- the email value.
-
withEmail
public IncidentOwnerInfo withEmail(String email)
Set the email property: The email of the user the incident is assigned to.- Parameters:
email
- the email value to set.- Returns:
- the IncidentOwnerInfo object itself.
-
assignedTo
public String assignedTo()
Get the assignedTo property: The name of the user the incident is assigned to.- Returns:
- the assignedTo value.
-
withAssignedTo
public IncidentOwnerInfo withAssignedTo(String assignedTo)
Set the assignedTo property: The name of the user the incident is assigned to.- Parameters:
assignedTo
- the assignedTo value to set.- Returns:
- the IncidentOwnerInfo object itself.
-
objectId
public UUID objectId()
Get the objectId property: The object id of the user the incident is assigned to.- Returns:
- the objectId value.
-
withObjectId
public IncidentOwnerInfo withObjectId(UUID objectId)
Set the objectId property: The object id of the user the incident is assigned to.- Parameters:
objectId
- the objectId value to set.- Returns:
- the IncidentOwnerInfo object itself.
-
userPrincipalName
public String userPrincipalName()
Get the userPrincipalName property: The user principal name of the user the incident is assigned to.- Returns:
- the userPrincipalName value.
-
withUserPrincipalName
public IncidentOwnerInfo withUserPrincipalName(String userPrincipalName)
Set the userPrincipalName property: The user principal name of the user the incident is assigned to.- Parameters:
userPrincipalName
- the userPrincipalName value to set.- Returns:
- the IncidentOwnerInfo object itself.
-
ownerType
public OwnerType ownerType()
Get the ownerType property: The type of the owner the incident is assigned to.- Returns:
- the ownerType value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-