Interface Finding.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Finding.Builder,
,Finding> SdkBuilder<Finding.Builder,
,Finding> SdkPojo
- Enclosing class:
Finding
-
Method Summary
Modifier and TypeMethodDescriptionThe time when the finding was created.description
(String description) A description of the finding.detectorId
(String detectorId) The identifier for the detector that detected the finding in your code.detectorName
(String detectorName) The name of the detector that identified the security vulnerability in your code.detectorTags
(String... detectorTags) One or more tags or categorizations that are associated with a detector.detectorTags
(Collection<String> detectorTags) One or more tags or categorizations that are associated with a detector.generatorId
(String generatorId) The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.The identifier for a finding.default Finding.Builder
remediation
(Consumer<Remediation.Builder> remediation) An object that contains the details about how to remediate a finding.remediation
(Remediation remediation) An object that contains the details about how to remediate a finding.default Finding.Builder
resource
(Consumer<Resource.Builder> resource) The resource where Amazon CodeGuru Security detected a finding.The resource where Amazon CodeGuru Security detected a finding.The identifier for the rule that generated the finding.The severity of the finding.The severity of the finding.The status of the finding.The status of the finding.The title of the finding.The type of finding.The time when the finding was last updated.default Finding.Builder
vulnerability
(Consumer<Vulnerability.Builder> vulnerability) An object that describes the detected security vulnerability.vulnerability
(Vulnerability vulnerability) An object that describes the detected security vulnerability.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
-
createdAt
The time when the finding was created.
- Parameters:
createdAt
- The time when the finding was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the finding.
- Parameters:
description
- A description of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorId
The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.
- Parameters:
detectorId
- The identifier for the detector that detected the finding in your code. A detector is a defined rule based on industry standards and AWS best practices.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorName
The name of the detector that identified the security vulnerability in your code.
- Parameters:
detectorName
- The name of the detector that identified the security vulnerability in your code.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorTags
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
- Parameters:
detectorTags
- One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
detectorTags
One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.
- Parameters:
detectorTags
- One or more tags or categorizations that are associated with a detector. These tags are defined by type, programming language, or other classification such as maintainability or consistency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
generatorId
The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.
- Parameters:
generatorId
- The identifier for the component that generated a finding such as AWSCodeGuruSecurity or AWSInspector.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The identifier for a finding.
- Parameters:
id
- The identifier for a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediation
An object that contains the details about how to remediate a finding.
- Parameters:
remediation
- An object that contains the details about how to remediate a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remediation
An object that contains the details about how to remediate a finding.
This is a convenience method that creates an instance of theRemediation.Builder
avoiding the need to create one manually viaRemediation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toremediation(Remediation)
.- Parameters:
remediation
- a consumer that will call methods onRemediation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resource
The resource where Amazon CodeGuru Security detected a finding.
- Parameters:
resource
- The resource where Amazon CodeGuru Security detected a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
The resource where Amazon CodeGuru Security detected a finding.
This is a convenience method that creates an instance of theResource.Builder
avoiding the need to create one manually viaResource.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresource(Resource)
.- Parameters:
resource
- a consumer that will call methods onResource.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleId
The identifier for the rule that generated the finding.
- Parameters:
ruleId
- The identifier for the rule that generated the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The severity of the finding.
- Parameters:
severity
- The severity of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
The severity of the finding.
- Parameters:
severity
- The severity of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the finding. A finding status can be open or closed.
- Parameters:
status
- The status of the finding. A finding status can be open or closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The status of the finding. A finding status can be open or closed.
- Parameters:
status
- The status of the finding. A finding status can be open or closed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
title
The title of the finding.
- Parameters:
title
- The title of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
The type of finding.
- Parameters:
type
- The type of finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.
- Parameters:
updatedAt
- The time when the finding was last updated. Findings are updated when you remediate them or when the finding code location changes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerability
An object that describes the detected security vulnerability.
- Parameters:
vulnerability
- An object that describes the detected security vulnerability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vulnerability
An object that describes the detected security vulnerability.
This is a convenience method that creates an instance of theVulnerability.Builder
avoiding the need to create one manually viaVulnerability.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovulnerability(Vulnerability)
.- Parameters:
vulnerability
- a consumer that will call methods onVulnerability.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-