Class Sighting.Builder

  • Enclosing class:
    Sighting

    public static class Sighting.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Sighting.Builder id​(String id)
        Unique identifier for the sighting
        Parameters:
        id - the value to set
        Returns:
        this builder
      • description

        public Sighting.Builder description​(String description)
        Description of the sighting
        Parameters:
        description - the value to set
        Returns:
        this builder
      • problemId

        public Sighting.Builder problemId​(String problemId)
        Problem ID associated the sighting
        Parameters:
        problemId - the value to set
        Returns:
        this builder
      • compartmentId

        public Sighting.Builder compartmentId​(String compartmentId)
        Compartment OCID where the resource is created
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • actorPrincipalId

        public Sighting.Builder actorPrincipalId​(String actorPrincipalId)
        Unique identifier for principal actor
        Parameters:
        actorPrincipalId - the value to set
        Returns:
        this builder
      • actorPrincipalName

        public Sighting.Builder actorPrincipalName​(String actorPrincipalName)
        Name of the principal actor
        Parameters:
        actorPrincipalName - the value to set
        Returns:
        this builder
      • actorPrincipalType

        public Sighting.Builder actorPrincipalType​(String actorPrincipalType)
        Type of the principal actor
        Parameters:
        actorPrincipalType - the value to set
        Returns:
        this builder
      • classificationStatus

        public Sighting.Builder classificationStatus​(ClassificationStatus classificationStatus)
        Classification status of the sighting
        Parameters:
        classificationStatus - the value to set
        Returns:
        this builder
      • sightingType

        public Sighting.Builder sightingType​(String sightingType)
        Type of sighting
        Parameters:
        sightingType - the value to set
        Returns:
        this builder
      • sightingTypeDisplayName

        public Sighting.Builder sightingTypeDisplayName​(String sightingTypeDisplayName)
        Display name of the sighting type
        Parameters:
        sightingTypeDisplayName - the value to set
        Returns:
        this builder
      • tacticName

        public Sighting.Builder tacticName​(String tacticName)
        Name of the MITRE ATT@CK framework tactic
        Parameters:
        tacticName - the value to set
        Returns:
        this builder
      • techniqueName

        public Sighting.Builder techniqueName​(String techniqueName)
        Name of the MITRE ATT@CK framework technique
        Parameters:
        techniqueName - the value to set
        Returns:
        this builder
      • sightingScore

        public Sighting.Builder sightingScore​(Integer sightingScore)
        Score for the sighting
        Parameters:
        sightingScore - the value to set
        Returns:
        this builder
      • severity

        public Sighting.Builder severity​(Severity severity)
        Severity of the sighting
        Parameters:
        severity - the value to set
        Returns:
        this builder
      • confidence

        public Sighting.Builder confidence​(Confidence confidence)
        Level of confidence that the sighting is not a false positive
        Parameters:
        confidence - the value to set
        Returns:
        this builder
      • timeFirstDetected

        public Sighting.Builder timeFirstDetected​(Date timeFirstDetected)
        Time the activities were first detected.

        Format defined by RFC3339.

        Parameters:
        timeFirstDetected - the value to set
        Returns:
        this builder
      • timeLastDetected

        public Sighting.Builder timeLastDetected​(Date timeLastDetected)
        Time the activities were last detected.

        Format defined by RFC3339.

        Parameters:
        timeLastDetected - the value to set
        Returns:
        this builder
      • timeFirstOccurred

        public Sighting.Builder timeFirstOccurred​(Date timeFirstOccurred)
        Time the activities were first performed.

        Format defined by RFC3339.

        Parameters:
        timeFirstOccurred - the value to set
        Returns:
        this builder
      • timeLastOccurred

        public Sighting.Builder timeLastOccurred​(Date timeLastOccurred)
        Time the activities were last performed.

        Format defined by RFC3339.

        Parameters:
        timeLastOccurred - the value to set
        Returns:
        this builder
      • regions

        public Sighting.Builder regions​(List<String> regions)
        List of regions involved in the sighting
        Parameters:
        regions - the value to set
        Returns:
        this builder
      • additionalDetails

        public Sighting.Builder additionalDetails​(Map<String,​String> additionalDetails)
        The additional details for the sighting
        Parameters:
        additionalDetails - the value to set
        Returns:
        this builder
      • locks

        public Sighting.Builder locks​(List<ResourceLock> locks)
        Locks associated with this resource.
        Parameters:
        locks - the value to set
        Returns:
        this builder