Interface CreatePackageDecisionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,ContinuumResponse.Builder,CopyableBuilder<CreatePackageDecisionResponse.Builder,,CreatePackageDecisionResponse> SdkBuilder<CreatePackageDecisionResponse.Builder,,CreatePackageDecisionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreatePackageDecisionResponse
-
Method Summary
Modifier and TypeMethodDescriptioncanonicalPurl(String canonicalPurl) The package URL (purl) that was evaluated, as accepted by the service.decisionId(String decisionId) The ID of the decision.enforcementAction(String enforcementAction) The action to take.enforcementAction(PackageAction enforcementAction) The action to take.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.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.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.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.Why the decision was made.reason(DecisionReason reason) Why the decision was made.Methods inherited from interface software.amazon.awssdk.services.continuum.model.ContinuumResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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
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
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
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
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
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
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
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:
-