public static class DetectConfiguration.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DetectConfiguration |
build() |
DetectConfiguration.Builder |
copy(DetectConfiguration model) |
DetectConfiguration.Builder |
exclusions(List<String> exclusions)
The list of dependencies to be ignored by the recommendation algorithm.
|
DetectConfiguration.Builder |
maxPermissibleCvssV2Score(Float maxPermissibleCvssV2Score)
The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score.
|
DetectConfiguration.Builder |
maxPermissibleCvssV3Score(Float maxPermissibleCvssV3Score)
The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score.
|
DetectConfiguration.Builder |
maxPermissibleSeverity(ConfigSeverity maxPermissibleSeverity)
The maximum ADM Severity.
|
DetectConfiguration.Builder |
upgradePolicy(DetectConfiguration.UpgradePolicy upgradePolicy)
The upgrade policy for recommendations.
|
public DetectConfiguration.Builder exclusions(List<String> exclusions)
The list of dependencies to be ignored by the recommendation algorithm. The dependency pattern is matched against the ‘group:artifact:version’ or the purl of a dependency. An asterisk (*) at the end in the dependency pattern acts as a wildcard and matches zero or more characters.
exclusions
- the value to setpublic DetectConfiguration.Builder upgradePolicy(DetectConfiguration.UpgradePolicy upgradePolicy)
The upgrade policy for recommendations. The Nearest
upgrade policy upgrades a
dependency to the oldest version that meets both of the following criteria: it is newer
than the current version and it is not affected by a vulnerability.
upgradePolicy
- the value to setpublic DetectConfiguration.Builder maxPermissibleCvssV2Score(Float maxPermissibleCvssV2Score)
The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score. An artifact with a CVSS V2 score below this value is not considered for patching.
maxPermissibleCvssV2Score
- the value to setpublic DetectConfiguration.Builder maxPermissibleCvssV3Score(Float maxPermissibleCvssV3Score)
The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score. An artifact with a CVSS V3 score below this value is not considered for patching.
maxPermissibleCvssV3Score
- the value to setpublic DetectConfiguration.Builder maxPermissibleSeverity(ConfigSeverity maxPermissibleSeverity)
The maximum ADM Severity. An artifact with an ADM Severity below this value is not considered for patching.
maxPermissibleSeverity
- the value to setpublic DetectConfiguration build()
public DetectConfiguration.Builder copy(DetectConfiguration model)
Copyright © 2016–2024. All rights reserved.