@Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class VulnerabilityAuditConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Configuration for a vulnerability audit. A vulnerable application dependency is ignored if its
name does match any of the items in exclusions
, or all of the associated Vulnerabilies
have a CVSS v2 score below maxPermissibleCvssV2Score
and a CVSS v3 score below maxPermissibleCvssV3Score
. type: object
Note: Objects should always be created or deserialized using the VulnerabilityAuditConfiguration.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 VulnerabilityAuditConfiguration.Builder
, which maintain a
set of all explicitly set fields called VulnerabilityAuditConfiguration.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 |
VulnerabilityAuditConfiguration.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
VulnerabilityAuditConfiguration(Float maxPermissibleCvssV2Score,
Float maxPermissibleCvssV3Score,
ConfigSeverity maxPermissibleSeverity,
List<String> exclusions)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static VulnerabilityAuditConfiguration.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<String> |
getExclusions()
A vulnerable application dependency is ignored if its name matches any of the items in
exclusions . |
Float |
getMaxPermissibleCvssV2Score()
A vulnerable application dependency is ignored if the score of its associated Vulnerability
is below maxPermissibleCvssV2Score and below maxPermissibleCvssV3Score.
|
Float |
getMaxPermissibleCvssV3Score()
A vulnerable application dependency is ignored if the score of its associated Vulnerability
is below maxPermissibleCvssV2Score and below maxPermissibleCvssV3Score.
|
ConfigSeverity |
getMaxPermissibleSeverity()
A vulnerable application dependency is ignored if the score of its associated Vulnerability
is below maxPermissibleSeverity.
|
int |
hashCode() |
VulnerabilityAuditConfiguration.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"maxPermissibleCvssV2Score","maxPermissibleCvssV3Score","maxPermissibleSeverity","exclusions"}) public VulnerabilityAuditConfiguration(Float maxPermissibleCvssV2Score, Float maxPermissibleCvssV3Score, ConfigSeverity maxPermissibleSeverity, List<String> exclusions)
public static VulnerabilityAuditConfiguration.Builder builder()
Create a new builder.
public VulnerabilityAuditConfiguration.Builder toBuilder()
public Float getMaxPermissibleCvssV2Score()
A vulnerable application dependency is ignored if the score of its associated Vulnerability is below maxPermissibleCvssV2Score and below maxPermissibleCvssV3Score.
public Float getMaxPermissibleCvssV3Score()
A vulnerable application dependency is ignored if the score of its associated Vulnerability is below maxPermissibleCvssV2Score and below maxPermissibleCvssV3Score.
public ConfigSeverity getMaxPermissibleSeverity()
A vulnerable application dependency is ignored if the score of its associated Vulnerability is below maxPermissibleSeverity.
public List<String> getExclusions()
A vulnerable application dependency is ignored if its name matches any of the items in exclusions
. An asterisk (*) in the dependency pattern acts as a wildcard and matches zero or
more characters.
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.