Package com.oracle.bmc.adm.model
Class DetectConfiguration
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.adm.model.DetectConfiguration
 
 
- 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20220421") public final class DetectConfiguration extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelA configuration to define the constraints when detecting vulnerable dependencies and recommending remediations.
 Note: Objects should always be created or deserialized using theDetectConfiguration.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 theDetectConfiguration.Builder, which maintain a set of all explicitly set fields calledDetectConfiguration.Builder.__explicitlySet__. ThehashCode()andequals(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).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDetectConfiguration.Builderstatic classDetectConfiguration.UpgradePolicyThe upgrade policy for recommendations.
 - 
Constructor SummaryConstructors Constructor Description DetectConfiguration(List<String> exclusions, DetectConfiguration.UpgradePolicy upgradePolicy, Float maxPermissibleCvssV2Score, Float maxPermissibleCvssV3Score, ConfigSeverity maxPermissibleSeverity)Deprecated.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DetectConfiguration.Builderbuilder()Create a new builder.booleanequals(Object o)List<String>getExclusions()The list of dependencies to be ignored by the recommendation algorithm.FloatgetMaxPermissibleCvssV2Score()The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score.FloatgetMaxPermissibleCvssV3Score()The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score.ConfigSeveritygetMaxPermissibleSeverity()The maximum ADM Severity.DetectConfiguration.UpgradePolicygetUpgradePolicy()The upgrade policy for recommendations.inthashCode()DetectConfiguration.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
DetectConfiguration@Deprecated @ConstructorProperties({"exclusions","upgradePolicy","maxPermissibleCvssV2Score","maxPermissibleCvssV3Score","maxPermissibleSeverity"}) public DetectConfiguration(List<String> exclusions, DetectConfiguration.UpgradePolicy upgradePolicy, Float maxPermissibleCvssV2Score, Float maxPermissibleCvssV3Score, ConfigSeverity maxPermissibleSeverity) Deprecated.
 
- 
 - 
Method Detail- 
builderpublic static DetectConfiguration.Builder builder() Create a new builder.
 - 
toBuilderpublic DetectConfiguration.Builder toBuilder() 
 - 
getExclusionspublic 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. - Returns:
- the value
 
 - 
getUpgradePolicypublic 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. - Returns:
- the value
 
 - 
getMaxPermissibleCvssV2Scorepublic Float getMaxPermissibleCvssV2Score() The maximum Common Vulnerability Scoring System Version 2 (CVSS V2) score.A vulnerability with a CVSS V2 score below this value is not considered for remediation. - Returns:
- the value
 
 - 
getMaxPermissibleCvssV3Scorepublic Float getMaxPermissibleCvssV3Score() The maximum Common Vulnerability Scoring System Version 3 (CVSS V3) score.A vulnerability with a CVSS V3 score below this value is not considered for patching. - Returns:
- the value
 
 - 
getMaxPermissibleSeveritypublic ConfigSeverity getMaxPermissibleSeverity() The maximum ADM Severity.A vulnerability with an severity below this value is not considered for remediation. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-