Interface PackageDecisionSummary.Builder

  • Method Details

    • decisionId

      PackageDecisionSummary.Builder decisionId(String decisionId)

      The ID of the decision.

      Parameters:
      decisionId - The ID of the decision.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatedAt

      PackageDecisionSummary.Builder evaluatedAt(Instant evaluatedAt)

      The time the package was evaluated. Policy exceptions are applied based on this time.

      Parameters:
      evaluatedAt - The time the package was evaluated. Policy exceptions are applied based on this time.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • completedAt

      PackageDecisionSummary.Builder completedAt(Instant completedAt)

      The time the decision was recorded.

      Parameters:
      completedAt - The time the decision was recorded.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • canonicalPurl

      PackageDecisionSummary.Builder canonicalPurl(String canonicalPurl)

      The package URL (purl) that was evaluated, as accepted by the service.

      Parameters:
      canonicalPurl - The package URL (purl) that was evaluated, as accepted by the service.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • evaluatedAction

      PackageDecisionSummary.Builder evaluatedAction(String evaluatedAction)

      The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

      Parameters:
      evaluatedAction - The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • evaluatedAction

      PackageDecisionSummary.Builder evaluatedAction(PackageAction evaluatedAction)

      The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.

      Parameters:
      evaluatedAction - The result of policy evaluation: DENY when the malicious-package baseline or a deny rule matched and no policy exception suppressed it, otherwise ALLOW.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • enforcementAction

      PackageDecisionSummary.Builder enforcementAction(String enforcementAction)

      The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.

      Parameters:
      enforcementAction - The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • enforcementAction

      PackageDecisionSummary.Builder enforcementAction(PackageAction enforcementAction)

      The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.

      Parameters:
      enforcementAction - The action the caller was told to take. It differs from evaluatedAction only when enforcementMode is AUDIT.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • enforcementMode

      PackageDecisionSummary.Builder enforcementMode(String enforcementMode)

      The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

      Parameters:
      enforcementMode - The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • enforcementMode

      PackageDecisionSummary.Builder enforcementMode(EnforcementMode enforcementMode)

      The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.

      Parameters:
      enforcementMode - The strongest enforcement mode among matches that a policy exception didn't suppress: ENFORCE for the malicious-package baseline or an enforced rule, AUDIT for an audit-mode rule. NONE when there is no such match, including when policy exceptions suppressed every match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      Why the decision was made.

      Parameters:
      reason - Why the decision was made.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reason

      Why the decision was made.

      Parameters:
      reason - Why the decision was made.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: