Class DetectConfiguration


  • @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).
    • Method Detail

      • getExclusions

        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.

        Returns:
        the value
      • getUpgradePolicy

        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.

        Returns:
        the value
      • getMaxPermissibleCvssV2Score

        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.

        Returns:
        the value
      • getMaxPermissibleCvssV3Score

        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.

        Returns:
        the value
      • getMaxPermissibleSeverity

        public ConfigSeverity getMaxPermissibleSeverity()
        The maximum ADM Severity.

        An artifact with an ADM Severity below this value is not considered for patching.

        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • toString

        public 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
      • equals

        public boolean equals​(Object o)
        Overrides:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel