Class IncidentOwnerInfo


  • public final class IncidentOwnerInfo
    extends Object
    Information on the user an incident is assigned to.
    • Constructor Detail

      • IncidentOwnerInfo

        public IncidentOwnerInfo()
    • 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.