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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CodeVulnerabilityDetails.Buildercwes(String... cwes)The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.CodeVulnerabilityDetails.Buildercwes(Collection<String> cwes)The Common Weakness Enumeration (CWE) item associated with the detected vulnerability.CodeVulnerabilityDetails.BuilderdetectorId(String detectorId)The ID for the Amazon CodeGuru detector associated with the finding.CodeVulnerabilityDetails.BuilderdetectorName(String detectorName)The name of the detector used to identify the code vulnerability.CodeVulnerabilityDetails.BuilderdetectorTags(String... detectorTags)The detector tag associated with the vulnerability.CodeVulnerabilityDetails.BuilderdetectorTags(Collection<String> detectorTags)The detector tag associated with the vulnerability.default CodeVulnerabilityDetails.BuilderfilePath(Consumer<CodeFilePath.Builder> filePath)Contains information on where the code vulnerability is located in your code.CodeVulnerabilityDetails.BuilderfilePath(CodeFilePath filePath)Contains information on where the code vulnerability is located in your code.CodeVulnerabilityDetails.BuilderreferenceUrls(String... referenceUrls)A URL containing supporting documentation about the code vulnerability detected.CodeVulnerabilityDetails.BuilderreferenceUrls(Collection<String> referenceUrls)A URL containing supporting documentation about the code vulnerability detected.CodeVulnerabilityDetails.BuilderruleId(String ruleId)The identifier for a rule that was used to detect the code vulnerability.CodeVulnerabilityDetails.BuildersourceLambdaLayerArn(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 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.
-
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
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.
-
filePath
default CodeVulnerabilityDetails.Builder filePath(Consumer<CodeFilePath.Builder> filePath)
Contains information on where the code vulnerability is located in your code.
This is a convenience method that creates an instance of theCodeFilePath.Builderavoiding the need to create one manually viaCodeFilePath.builder().When the
Consumercompletes,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:
filePath(CodeFilePath)
-
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.
-
-