Class ApplicationDependencyVulnerabilitySummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • gav

        public ApplicationDependencyVulnerabilitySummary.Builder gav​(String gav)
        Group Artifact Version (GAV) identifier (Group:Artifact:Version).

        Example: org.graalvm.nativeimage:svm:21.1.0. “N/A” for non-maven artifacts.

        Parameters:
        gav - the value to set
        Returns:
        this builder
      • applicationDependencyNodeIds

        public ApplicationDependencyVulnerabilitySummary.Builder applicationDependencyNodeIds​(List<String> applicationDependencyNodeIds)
        List of application dependencies on which this application dependency depends, each identified by its nodeId.
        Parameters:
        applicationDependencyNodeIds - the value to set
        Returns:
        this builder
      • isFoundInKnowledgeBase

        public ApplicationDependencyVulnerabilitySummary.Builder isFoundInKnowledgeBase​(Boolean isFoundInKnowledgeBase)
        Indicates if the artifact is found in the knowledge base, this field is deprecated and will be removed in the future.
        Parameters:
        isFoundInKnowledgeBase - the value to set
        Returns:
        this builder
      • warnings

        public ApplicationDependencyVulnerabilitySummary.Builder warnings​(List<String> warnings)
        Potential issues in the artifact identifiers (purls) provided by the user, that the user is alerted about.

        ADM supports the following warnings: - MISSING_VERSION: Missing version

        • INCORRECT_FORMAT_VERSION: Version can not be parsed according to the ecosystem - UNKNOWN_ECOSYSTEM: The purl’s ecosystem is unknown to ADM - INCORRECT_FORMAT_EPOCH: Epoch qualifier can not be parsed according to the ecosystem - MISSING_DISTRO: The distro qualifier is required for the ecosystem, but was not provided in the purl - UNKNOWN_DISTRO: ADM does not have data for the provided distro value for the given ecosystem - MISSING_ARCH: The arch qualifier is required for the ecosystem and distro, but was not provided in the purl - UNKNOWN_ARCH: ADM does not have data for the provided arch value for the given ecosystem and distro - EPOCH_VALUE_MISMATCH: Epoch value in qualifier is not the same as the epoch value in version - INVALID_PURL: The provided PURL could not be parsed
        Parameters:
        warnings - the value to set
        Returns:
        this builder