Interface InventoryFinding.Builder

  • Method Details

    • findingId

      InventoryFinding.Builder findingId(String findingId)

      Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.

      Parameters:
      findingId - Identifies the finding. It stays the same for the same rule and the same evaluated subject, across evaluations and pages. Use it to recognize a finding that is returned again. It is opaque: do not parse it or build one.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • certificateIdentifier

      InventoryFinding.Builder certificateIdentifier(String certificateIdentifier)

      The identifier of the certificate whose findings were requested.

      Parameters:
      certificateIdentifier - The identifier of the certificate whose findings were requested.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • ruleId

      The rule that produced the finding.

      Parameters:
      ruleId - The rule that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ruleId

      The rule that produced the finding.

      Parameters:
      ruleId - The rule that produced the finding.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      InventoryFinding.Builder severity(String severity)

      How severe the finding is.

      Parameters:
      severity - How severe the finding is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • severity

      How severe the finding is.

      Parameters:
      severity - How severe the finding is.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scope

      What the rule evaluated.

      Parameters:
      scope - What the rule evaluated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • scope

      What the rule evaluated.

      This is a convenience method that creates an instance of the FindingScope.Builder avoiding the need to create one manually via FindingScope.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to scope(FindingScope).

      Parameters:
      scope - a consumer that will call methods on FindingScope.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.

      Parameters:
      reason - Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.

      Parameters:
      reason - Why the rule fired, for a rule with more than one cause. FindingReason lists which rules return which reasons. Absent for a rule with one cause.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • expected

      InventoryFinding.Builder expected(String expected)

      What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.

      Parameters:
      expected - What the rule requires, up to 1,024 characters. Absent when the rule does not describe it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actual

      What the rule found, up to 1,024 characters. Absent when the rule does not describe it.

      Parameters:
      actual - What the rule found, up to 1,024 characters. Absent when the rule does not describe it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • remediation

      InventoryFinding.Builder remediation(String remediation)

      How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.

      Parameters:
      remediation - How to resolve the finding, up to 1,024 characters. Absent when the rule does not describe it.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatedAt

      InventoryFinding.Builder evaluatedAt(Instant evaluatedAt)

      When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.

      Parameters:
      evaluatedAt - When the finding was opened or its content last changed, to the second. A change in severity counts as a change in content. Evaluating an unchanged finding again does not change this time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.