Interface CodeVulnerabilityDetails.Builder

    • Method Detail

      • cwes

        CodeVulnerabilityDetails.Builder cwes​(Collection<String> cwes)

        The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.

        Parameters:
        cwes - The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • cwes

        CodeVulnerabilityDetails.Builder cwes​(String... cwes)

        The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.

        Parameters:
        cwes - The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • detectorName

        CodeVulnerabilityDetails.Builder detectorName​(String detectorName)

        The name of the detector used to identify the code vulnerability. For more information on detectors see CodeGuru Detector Library.

        Parameters:
        detectorName - The name of the detector used to identify the code vulnerability. For more information on detectors see CodeGuru Detector Library.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • detectorTags

        CodeVulnerabilityDetails.Builder detectorTags​(Collection<String> detectorTags)

        The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.

        Parameters:
        detectorTags - The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • detectorTags

        CodeVulnerabilityDetails.Builder detectorTags​(String... detectorTags)

        The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.

        Parameters:
        detectorTags - The detector tag associated with the vulnerability. Detector tags group related vulnerabilities by common themes or tactics. For a list of available tags by programming language, see Java tags, or Python tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filePath

        CodeVulnerabilityDetails.Builder filePath​(CodeFilePath filePath)

        Contains information on where the code vulnerability is located in your code.

        Parameters:
        filePath - Contains information on where the code vulnerability is located in your code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

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

        A URL containing supporting documentation about the code vulnerability detected.

        Parameters:
        referenceUrls - A URL containing supporting documentation about the code vulnerability detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • referenceUrls

        CodeVulnerabilityDetails.Builder referenceUrls​(String... referenceUrls)

        A URL containing supporting documentation about the code vulnerability detected.

        Parameters:
        referenceUrls - A URL containing supporting documentation about the code vulnerability detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ruleId

        CodeVulnerabilityDetails.Builder ruleId​(String ruleId)

        The identifier for a rule that was used to detect the code vulnerability.

        Parameters:
        ruleId - The identifier for a rule that was used to detect the code vulnerability.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sourceLambdaLayerArn

        CodeVulnerabilityDetails.Builder sourceLambdaLayerArn​(String sourceLambdaLayerArn)

        The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.

        Parameters:
        sourceLambdaLayerArn - The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.
        Returns:
        Returns a reference to this object so that method calls can be chained together.