Class IncidentInfo


  • public final class IncidentInfo
    extends Object
    Describes related incident information for the bookmark.
    • Constructor Detail

      • IncidentInfo

        public IncidentInfo()
    • Method Detail

      • incidentId

        public String incidentId()
        Get the incidentId property: Incident Id.
        Returns:
        the incidentId value.
      • withIncidentId

        public IncidentInfo withIncidentId​(String incidentId)
        Set the incidentId property: Incident Id.
        Parameters:
        incidentId - the incidentId value to set.
        Returns:
        the IncidentInfo object itself.
      • severity

        public IncidentSeverity severity()
        Get the severity property: The severity of the incident.
        Returns:
        the severity value.
      • withSeverity

        public IncidentInfo withSeverity​(IncidentSeverity severity)
        Set the severity property: The severity of the incident.
        Parameters:
        severity - the severity value to set.
        Returns:
        the IncidentInfo object itself.
      • title

        public String title()
        Get the title property: The title of the incident.
        Returns:
        the title value.
      • withTitle

        public IncidentInfo withTitle​(String title)
        Set the title property: The title of the incident.
        Parameters:
        title - the title value to set.
        Returns:
        the IncidentInfo object itself.
      • relationName

        public String relationName()
        Get the relationName property: Relation Name.
        Returns:
        the relationName value.
      • withRelationName

        public IncidentInfo withRelationName​(String relationName)
        Set the relationName property: Relation Name.
        Parameters:
        relationName - the relationName value to set.
        Returns:
        the IncidentInfo object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.