@Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class DetectConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A configuration to define the constraints when detecting vulnerable dependencies.
Note: Objects should always be created or deserialized using the DetectConfiguration.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the DetectConfiguration.Builder
, which maintain a
set of all explicitly set fields called DetectConfiguration.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
DetectConfiguration.Builder |
static class |
DetectConfiguration.UpgradePolicy
The upgrade policy for recommendations.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DetectConfiguration(List<String> exclusions,
DetectConfiguration.UpgradePolicy upgradePolicy,
Float maxPermissibleCvssV2Score,
Float maxPermissibleCvssV3Score,
ConfigSeverity maxPermissibleSeverity)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DetectConfiguration.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<String> |
getExclusions()
The list of dependencies to be ignored by the recommendation algorithm.
|
Float |
getMaxPermissibleCvssV2Score()
The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score.
|
Float |
getMaxPermissibleCvssV3Score()
The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score.
|
ConfigSeverity |
getMaxPermissibleSeverity()
The maximum ADM Severity.
|
DetectConfiguration.UpgradePolicy |
getUpgradePolicy()
The upgrade policy for recommendations.
|
int |
hashCode() |
DetectConfiguration.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"exclusions","upgradePolicy","maxPermissibleCvssV2Score","maxPermissibleCvssV3Score","maxPermissibleSeverity"}) public DetectConfiguration(List<String> exclusions, DetectConfiguration.UpgradePolicy upgradePolicy, Float maxPermissibleCvssV2Score, Float maxPermissibleCvssV3Score, ConfigSeverity maxPermissibleSeverity)
public static DetectConfiguration.Builder builder()
Create a new builder.
public DetectConfiguration.Builder toBuilder()
public List<String> getExclusions()
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.
public DetectConfiguration.UpgradePolicy getUpgradePolicy()
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.
public Float getMaxPermissibleCvssV2Score()
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.
public Float getMaxPermissibleCvssV3Score()
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.
public ConfigSeverity getMaxPermissibleSeverity()
The maximum ADM Severity. An artifact with an ADM Severity below this value is not considered for patching.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.