Interface CreatePackageDecisionResponse.Builder

  • Method Details

    • decisionId

      The ID of the decision. Use it with GetPackageDecision and ListDecisionEvidence.

      Parameters:
      decisionId - The ID of the decision. Use it with GetPackageDecision and ListDecisionEvidence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • canonicalPurl

      CreatePackageDecisionResponse.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

      CreatePackageDecisionResponse.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

      CreatePackageDecisionResponse.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

      CreatePackageDecisionResponse.Builder enforcementAction(String enforcementAction)

      The action to take. It differs from evaluatedAction only when enforcementMode is AUDIT: evaluatedAction is then DENY and enforcementAction is ALLOW.

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

      CreatePackageDecisionResponse.Builder enforcementAction(PackageAction enforcementAction)

      The action to take. It differs from evaluatedAction only when enforcementMode is AUDIT: evaluatedAction is then DENY and enforcementAction is ALLOW.

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

      CreatePackageDecisionResponse.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

      CreatePackageDecisionResponse.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: