Interface CodeVulnerabilityDetails.Builder

All Superinterfaces:
Buildable, CopyableBuilder<CodeVulnerabilityDetails.Builder,CodeVulnerabilityDetails>, SdkBuilder<CodeVulnerabilityDetails.Builder,CodeVulnerabilityDetails>, SdkPojo
Enclosing class:
CodeVulnerabilityDetails

public static interface CodeVulnerabilityDetails.Builder extends SdkPojo, CopyableBuilder<CodeVulnerabilityDetails.Builder,CodeVulnerabilityDetails>
  • Method Details

    • 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

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

      CodeVulnerabilityDetails.Builder detectorId(String detectorId)

      The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see Amazon CodeGuru Detector Library.

      Parameters:
      detectorId - The ID for the Amazon CodeGuru detector associated with the finding. For more information on detectors see Amazon CodeGuru Detector Library.
      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

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

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

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

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

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

      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.