Interface Vulnerability.Builder

    • Method Detail

      • filePath

        Vulnerability.Builder filePath​(FilePath filePath)

        An object that describes the location of the detected security vulnerability in your code.

        Parameters:
        filePath - An object that describes the location of the detected security vulnerability in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • id

        Vulnerability.Builder id​(String id)

        The identifier for the vulnerability.

        Parameters:
        id - The identifier for the vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • itemCount

        Vulnerability.Builder itemCount​(Integer itemCount)

        The number of times the vulnerability appears in your code.

        Parameters:
        itemCount - The number of times the vulnerability appears in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        Vulnerability.Builder referenceUrls​(Collection<String> referenceUrls)

        One or more URL addresses that contain details about a vulnerability.

        Parameters:
        referenceUrls - One or more URL addresses that contain details about a vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        Vulnerability.Builder referenceUrls​(String... referenceUrls)

        One or more URL addresses that contain details about a vulnerability.

        Parameters:
        referenceUrls - One or more URL addresses that contain details about a vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedVulnerabilities

        Vulnerability.Builder relatedVulnerabilities​(Collection<String> relatedVulnerabilities)

        One or more vulnerabilities that are related to the vulnerability being described.

        Parameters:
        relatedVulnerabilities - One or more vulnerabilities that are related to the vulnerability being described.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • relatedVulnerabilities

        Vulnerability.Builder relatedVulnerabilities​(String... relatedVulnerabilities)

        One or more vulnerabilities that are related to the vulnerability being described.

        Parameters:
        relatedVulnerabilities - One or more vulnerabilities that are related to the vulnerability being described.
        Returns:
        Returns a reference to this object so that method calls can be chained together.