Interface CodeVulnerabilityDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CodeVulnerabilityDetails.Builder,
,CodeVulnerabilityDetails> SdkBuilder<CodeVulnerabilityDetails.Builder,
,CodeVulnerabilityDetails> SdkPojo
- Enclosing class:
CodeVulnerabilityDetails
-
Method Summary
Modifier and TypeMethodDescriptionThe Common Weakness Enumeration (CWE) item associated with the detected vulnerability.cwes
(Collection<String> cwes) The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.detectorId
(String detectorId) The ID for the Amazon CodeGuru detector associated with the finding.detectorName
(String detectorName) The name of the detector used to identify the code vulnerability.detectorTags
(String... detectorTags) The detector tag associated with the vulnerability.detectorTags
(Collection<String> detectorTags) The detector tag associated with the vulnerability.default CodeVulnerabilityDetails.Builder
filePath
(Consumer<CodeFilePath.Builder> filePath) Contains information on where the code vulnerability is located in your code.filePath
(CodeFilePath filePath) Contains information on where the code vulnerability is located in your code.referenceUrls
(String... referenceUrls) A URL containing supporting documentation about the code vulnerability detected.referenceUrls
(Collection<String> referenceUrls) A URL containing supporting documentation about the code vulnerability detected.The identifier for a rule that was used to detect the code vulnerability.sourceLambdaLayerArn
(String sourceLambdaLayerArn) The Amazon Resource Name (ARN) of the Lambda layer that the code vulnerability was detected in.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
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
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
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
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
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 theCodeFilePath.Builder
avoiding the need to create one manually viaCodeFilePath.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilePath(CodeFilePath)
.- Parameters:
filePath
- a consumer that will call methods onCodeFilePath.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-