Interface Vulnerability.Builder

  • Method Details

    • 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.
    • filePath

      default Vulnerability.Builder filePath(Consumer<FilePath.Builder> filePath)

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

      This is a convenience method that creates an instance of the FilePath.Builder avoiding the need to create one manually via FilePath.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to filePath(FilePath).

      Parameters:
      filePath - a consumer that will call methods on FilePath.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      Deprecated.
      This shape is not used.

      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.