Interface ThreatSummary.Builder

  • Method Details

    • threatId

      ThreatSummary.Builder threatId(String threatId)

      The unique identifier of the threat.

      Parameters:
      threatId - The unique identifier of the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatJobId

      ThreatSummary.Builder threatJobId(String threatJobId)

      The unique identifier of the threat model job that produced the threat.

      Parameters:
      threatJobId - The unique identifier of the threat model job that produced the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • title

      A short title summarizing the threat.

      Parameters:
      title - A short title summarizing the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statement

      ThreatSummary.Builder statement(String statement)

      The natural-language threat statement.

      Parameters:
      statement - The natural-language threat statement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • severity

      ThreatSummary.Builder severity(String severity)

      The severity level of the threat.

      Parameters:
      severity - The severity level of the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      The severity level of the threat.

      Parameters:
      severity - The severity level of the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      ThreatSummary.Builder status(String status)

      The current status of the threat.

      Parameters:
      status - The current status of the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the threat.

      Parameters:
      status - The current status of the threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • strideWithStrings

      ThreatSummary.Builder strideWithStrings(Collection<String> stride)

      The STRIDE categories applicable to this threat.

      Parameters:
      stride - The STRIDE categories applicable to this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • strideWithStrings

      ThreatSummary.Builder strideWithStrings(String... stride)

      The STRIDE categories applicable to this threat.

      Parameters:
      stride - The STRIDE categories applicable to this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stride

      The STRIDE categories applicable to this threat.

      Parameters:
      stride - The STRIDE categories applicable to this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stride

      The STRIDE categories applicable to this threat.

      Parameters:
      stride - The STRIDE categories applicable to this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      ThreatSummary.Builder createdBy(String createdBy)

      Who created this threat.

      Parameters:
      createdBy - Who created this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdBy

      ThreatSummary.Builder createdBy(ThreatActor createdBy)

      Who created this threat.

      Parameters:
      createdBy - Who created this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedBy

      ThreatSummary.Builder updatedBy(String updatedBy)

      Who last updated this threat.

      Parameters:
      updatedBy - Who last updated this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updatedBy

      ThreatSummary.Builder updatedBy(ThreatActor updatedBy)

      Who last updated this threat.

      Parameters:
      updatedBy - Who last updated this threat.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • createdAt

      ThreatSummary.Builder createdAt(Instant createdAt)

      The date and time the threat was created, in UTC format.

      Parameters:
      createdAt - The date and time the threat was created, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      ThreatSummary.Builder updatedAt(Instant updatedAt)

      The date and time the threat was last updated, in UTC format.

      Parameters:
      updatedAt - The date and time the threat was last updated, in UTC format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.